Home » date » 2010 » Aug » 19 »

Tijdreeks B - Stap 17

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 19 Aug 2010 20:33:38 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/19/t1282249979b5010p5g7sda0tw.htm/, Retrieved Thu, 19 Aug 2010 22:33:01 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Aug/19/t1282249979b5010p5g7sda0tw.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Gregory Goris
 
Dataseries X:
» Textbox « » Textfile « » CSV «
225 224 223 221 219 218 219 221 222 222 223 225 226 229 235 229 231 229 226 232 234 230 232 231 237 241 256 255 264 259 253 258 265 258 257 255 255 255 275 276 278 268 253 257 255 253 245 248 246 243 260 262 262 251 236 238 239 243 233 238 232 224 238 236 231 209 179 179 165 174 163 166 164 152 163 167 157 138 111 110 91 100 88 89
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.932728.54850
20.8599987.8820
30.788157.22350
40.712286.52820
50.6534015.98850
60.5889915.39820
70.5435454.98172e-06
80.5042484.62157e-06
90.4752374.35561.9e-05
100.446684.09394.9e-05
110.4054663.71620.000182
120.372043.40980.000501
130.3138832.87680.002546
140.2483172.27590.0127
150.1868231.71230.045269
160.1219481.11770.133446
170.0724310.66380.254305
180.0206670.18940.42511
19-0.007785-0.07140.471643
20-0.028166-0.25810.398461
21-0.042659-0.3910.348403
22-0.053338-0.48890.313109
23-0.075359-0.69070.245837
24-0.089743-0.82250.206559
25-0.114391-1.04840.148727
26-0.14637-1.34150.091686
27-0.17165-1.57320.059716
28-0.195278-1.78980.038548
29-0.213484-1.95660.026858
30-0.232329-2.12930.018077
31-0.236294-2.16570.016586
32-0.23921-2.19240.015559
33-0.240441-2.20370.015142
34-0.242239-2.22020.014551
35-0.255695-2.34350.010734
36-0.265174-2.43040.008606
37-0.280197-2.5680.005998
38-0.299627-2.74610.003688
39-0.313358-2.8720.002581
40-0.32142-2.94590.002083
41-0.321909-2.95030.002056
42-0.323327-2.96330.001979
43-0.308031-2.82310.002968
44-0.290092-2.65870.004695
45-0.271-2.48380.007494
46-0.252539-2.31460.011539
47-0.246257-2.2570.013302
48-0.238749-2.18820.015717


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.932728.54850
2-0.076653-0.70250.242144
3-0.03077-0.2820.389312
4-0.071901-0.6590.255854
50.0903170.82780.205074
6-0.091098-0.83490.203064
70.1171281.07350.14306
8-0.00966-0.08850.46483
90.0754260.69130.245644
10-0.056163-0.51470.304044
11-0.08065-0.73920.230931
120.024160.22140.412646
13-0.197377-1.8090.037015
14-0.073292-0.67170.251798
15-0.020156-0.18470.426941
16-0.03868-0.35450.361923
170.0159340.1460.442122
18-0.060989-0.5590.288832
190.1155241.05880.146365
20-0.020673-0.18950.425091
210.0300770.27570.391742
22-0.048101-0.44090.330226
23-0.025102-0.23010.4093
240.0068390.06270.475084
25-0.052324-0.47960.316395
26-0.045705-0.41890.33818
270.019570.17940.429042
280.0169070.1550.438614
29-0.059244-0.5430.294292
30-0.023563-0.2160.414771
310.0470340.43110.333759
32-0.065148-0.59710.276027
33-0.000924-0.00850.496633
34-0.071866-0.65870.255956
35-0.028529-0.26150.397184
36-0.030238-0.27710.391178
37-0.032547-0.29830.383106
38-0.035628-0.32650.372416
390.0135550.12420.450713
400.0162380.14880.441023
41-0.020738-0.19010.424857
42-0.019409-0.17790.42962
430.0818330.750.227672
44-0.021998-0.20160.420352
450.02270.2080.417847
46-0.036195-0.33170.37046
47-0.015772-0.14460.442703
48-0.027826-0.2550.399661
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282249979b5010p5g7sda0tw/1k5i11282250017.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282249979b5010p5g7sda0tw/1k5i11282250017.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282249979b5010p5g7sda0tw/2k5i11282250017.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282249979b5010p5g7sda0tw/2k5i11282250017.ps (open in new window)


 
Parameters (Session):
par1 = 0.01 ; par2 = 0.99 ; par3 = 0.01 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by