Home » date » 2009 » Dec » 19 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 19 Dec 2009 09:09:18 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239070vsup2py77kjxkhr.htm/, Retrieved Sat, 19 Dec 2009 17:11:12 +0100
 
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/2009/Dec/19/t1261239070vsup2py77kjxkhr.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
104.7 86 92.1 106.9 112.6 101.7 92 97.4 97 105.4 102.7 98.1 104.5 87.4 89.9 109.8 111.7 98.6 96.9 95.1 97 112.7 102.9 97.4 111.4 87.4 96.8 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1
 
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.2381832.22160.014452
2-0.072717-0.67830.249705
30.0962010.89730.186017
40.0522350.48720.313664
50.311572.90610.00232
60.3878823.61790.000249
70.2012651.87730.031916
80.0058740.05480.478216
9-0.05348-0.49880.30958
10-0.254099-2.37010.009997
110.0673170.62790.265861
120.5930225.53130
130.0009220.00860.496577
14-0.235596-2.19750.015321
15-0.14613-1.3630.088198
16-0.136179-1.27020.103702
170.1245691.16190.124226
180.1459551.36140.088454
190.0492810.45970.323451
20-0.10241-0.95520.171057
21-0.156839-1.46290.07355
22-0.290997-2.71420.004004
23-0.000875-0.00820.496752
240.4107293.8310.00012
25-0.051699-0.48220.315433
26-0.24446-2.28020.012521
27-0.179984-1.67880.048392
28-0.170108-1.58670.058108
290.0397010.37030.356028
300.0693550.64690.2597
310.0233780.21810.413949
32-0.123367-1.15070.126506
33-0.188632-1.75940.041009
34-0.251589-2.34670.010607
35-0.059623-0.55610.289775
360.3201952.98660.001832
37-0.041159-0.38390.350993
38-0.23373-2.18010.015976
39-0.167799-1.56510.060592
40-0.117134-1.09260.138803
410.0137120.12790.449261
420.062360.58170.281151
430.0271470.25320.400351
44-0.096524-0.90030.185218
45-0.122827-1.14570.12754
46-0.177788-1.65830.05043
47-0.017402-0.16230.435715
480.2730462.54680.006315
49-0.001151-0.01070.495731
50-0.175625-1.63810.052504
51-0.131362-1.22530.111892
52-0.079938-0.74560.228957
530.000690.00640.497439
540.0373170.34810.364313
55-0.000516-0.00480.498085
56-0.092915-0.86670.194259
57-0.115921-1.08120.14129
58-0.170857-1.59360.057321
59-0.038719-0.36110.359434
600.1837781.71420.045029


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2381832.22160.014452
2-0.137233-1.280.101969
30.1605441.49750.068947
4-0.030303-0.28260.389061
50.3701793.45280.000429
60.2357862.19930.015256
70.1993021.8590.033207
8-0.063189-0.58940.278566
9-0.075042-0.69990.242914
10-0.533266-4.9742e-06
11-0.062407-0.58210.281003
120.4946894.61427e-06
13-0.162046-1.51150.067148
14-0.051744-0.48260.315283
15-0.078032-0.72780.234334
160.1056040.9850.163676
17-0.092673-0.86440.194872
18-0.092875-0.86630.194359
190.0930290.86770.193969
20-0.076232-0.7110.239479
210.0522570.48740.313592
22-0.012885-0.12020.452306
230.0133330.12440.450658
24-0.011811-0.11020.456264
25-0.058956-0.54990.291896
26-0.039783-0.37110.355742
27-0.026905-0.25090.401222
28-0.097258-0.90720.183413
29-0.104402-0.97380.16643
300.0074390.06940.47242
310.0863130.80510.211487
32-0.009787-0.09130.463739
33-0.004628-0.04320.482834
340.1191331.11120.134772
35-0.137346-1.28110.101786
360.0400810.37390.354711
37-0.064204-0.59890.275414
38-0.060883-0.56790.28579
39-0.121766-1.13580.12959
400.1087141.0140.156693
41-0.033356-0.31110.378225
42-0.000275-0.00260.498979
43-0.071743-0.66920.252578
440.0961320.89670.186186
450.0068650.0640.474544
460.0167940.15660.437945
470.0508780.47460.318147
48-0.127485-1.18910.118817
490.018790.17530.430641
50-0.101667-0.94830.172804
51-0.056956-0.53130.2983
52-0.102347-0.95460.171205
53-0.085266-0.79530.2143
54-0.015487-0.14450.442739
55-0.044562-0.41560.339345
560.1130641.05460.147265
57-0.046009-0.42910.334442
580.0696550.64970.258801
59-0.004117-0.03840.484728
600.0143340.13370.446975
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239070vsup2py77kjxkhr/1n2on1261238956.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239070vsup2py77kjxkhr/1n2on1261238956.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239070vsup2py77kjxkhr/28xi11261238956.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239070vsup2py77kjxkhr/28xi11261238956.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; 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