Home » date » 2009 » Dec » 18 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 18 Dec 2009 05:57:48 -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/18/t12611411044jrsa584v5i8eyx.htm/, Retrieved Fri, 18 Dec 2009 13:58:26 +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/18/t12611411044jrsa584v5i8eyx.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 «
100.00 110.08 123.28 106.30 114.60 110.22 117.82 138.84 131.13 153.26 148.76 110.75 132.00 138.55 126.50 119.47 152.49 152.46 134.08 162.33 130.46 142.83 148.39 122.88 125.86 133.31 140.97 110.30 123.04 125.99 112.24 136.10 111.86 109.63 135.75 114.39 121.79 101.33 147.01 113.01 101.89 117.85 128.68 117.27 121.55 109.18 127.88 104.92 100.93 116.79 107.50 109.18 128.31 83.80 93.16 103.99 106.33 97.55 111.71 105.43 103.62
 
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.384523.00320.001935
20.3718722.90440.002559
30.5275024.11995.8e-05
40.3551042.77350.003674
50.2946852.30160.012395
60.2804972.19080.01615
70.2719682.12410.01886
80.2088661.63130.05399
90.2124741.65950.051077
100.2192621.71250.045943
110.0121760.09510.462273
120.2013261.57240.060515
130.0703990.54980.29222
14-0.001933-0.01510.494002
15-0.017721-0.13840.445189
16-0.056295-0.43970.330862
17-0.009324-0.07280.471092
18-0.060765-0.47460.318388
19-0.103943-0.81180.210025
20-0.065338-0.51030.305838
21-0.051451-0.40180.344601
22-0.069553-0.54320.294477
23-0.128234-1.00150.160262
24-0.055164-0.43080.334051
25-0.0699-0.54590.293551
26-0.098193-0.76690.223046
27-0.08649-0.67550.250952
28-0.170029-1.3280.094568
29-0.115123-0.89910.186058
30-0.115612-0.9030.185051
31-0.257316-2.00970.024446
32-0.183463-1.43290.078497
33-0.15191-1.18650.120022
34-0.242578-1.89460.031444
35-0.237142-1.85210.034423
36-0.172932-1.35060.090899
37-0.228516-1.78480.039636
38-0.314631-2.45730.008427
39-0.159551-1.24610.10874
40-0.180871-1.41260.081421
41-0.242056-1.89050.031721
42-0.082506-0.64440.260868
43-0.127498-0.99580.161642
44-0.145171-1.13380.130652
45-0.075225-0.58750.279509
46-0.10982-0.85770.197202
47-0.075733-0.59150.278188
48-0.024888-0.19440.423262
49-0.019939-0.15570.438379
50-0.005611-0.04380.482596
51-0.001822-0.01420.494347
520.0223860.17480.430892
530.0745910.58260.281164
540.081050.6330.264542
550.0529520.41360.34032
560.0525160.41020.341561
570.0483330.37750.353559
580.0195060.15230.439707
590.0306560.23940.405786
600.0216050.16870.43328


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.384523.00320.001935
20.2628852.05320.022174
30.4046823.16070.001225
40.0768770.60040.275224
5-0.006501-0.05080.479837
6-0.068755-0.5370.296614
70.0283850.22170.412646
8-0.00759-0.05930.47646
90.0488310.38140.352124
100.0463630.36210.359263
11-0.236468-1.84690.034809
120.1316251.0280.153999
13-0.109047-0.85170.19886
140.0089050.06960.47239
15-0.171137-1.33660.093155
16-0.064232-0.50170.308854
170.0575410.44940.327364
180.0553610.43240.333493
19-0.038512-0.30080.382301
20-0.02106-0.16450.434948
210.0609880.47630.31777
22-0.032161-0.25120.401256
230.0231540.18080.428547
24-0.026544-0.20730.418226
250.0385230.30090.382267
26-0.034457-0.26910.394373
27-0.019058-0.14890.441081
28-0.140244-1.09530.138836
29-0.024072-0.1880.425748
30-0.04743-0.37040.35617
31-0.178256-1.39220.084455
32-0.004142-0.03230.48715
33-0.008217-0.06420.474519
34-0.056024-0.43760.331625
35-0.058603-0.45770.324397
360.0507120.39610.346715
37-0.045192-0.3530.362666
38-0.143079-1.11750.134085
390.0685670.53550.297117
400.1235610.9650.169166
410.0554570.43310.333222
420.0667590.52140.301987
430.0117140.09150.463703
44-0.007364-0.05750.477162
45-0.026317-0.20550.418915
46-0.112433-0.87810.19166
470.0115420.09010.464233
480.0739650.57770.282801
49-0.026956-0.21050.416976
500.0293530.22930.409718
51-0.081574-0.63710.263216
52-0.050299-0.39280.347902
530.0687750.53710.296559
540.0159020.12420.450783
550.0425930.33270.370265
56-0.039064-0.30510.380663
57-0.105375-0.8230.206855
58-0.020272-0.15830.437359
590.0426260.33290.370168
60-0.04602-0.35940.36026
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/18/t12611411044jrsa584v5i8eyx/1q8gf1261141067.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t12611411044jrsa584v5i8eyx/1q8gf1261141067.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/18/t12611411044jrsa584v5i8eyx/2zvek1261141067.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t12611411044jrsa584v5i8eyx/2zvek1261141067.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