Home » date » 2008 » Dec » 14 »

Autocorrelation VSA

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 14 Dec 2008 10:43:20 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/14/t1229276804wdbkhksqtdvxoax.htm/, Retrieved Sun, 14 Dec 2008 18:46:45 +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/2008/Dec/14/t1229276804wdbkhksqtdvxoax.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
358.59 362.96 362.42 364.97 364.04 361.06 358.48 352.96 359.59 360.39 357.40 362.93 364.55 365.73 364.70 364.65 359.43 362.14 356.97 354.82 353.17 357.06 356.18 355.01 355.65 357.31 357.07 357.91 358.48 358.97 351.77 352.16 359.08 360.35 359.53 359.30 358.41 359.68 355.31 357.08 349.71 354.13 345.49 341.69 344.25 340.17 342.47 344.43 333.23 339.72 342.61 346.36 339.09 339.73 341.12 335.94 333.46 335.66 341.12 342.21 342.62 346.06 344.43 346.65 343.74 335.67 342.75 341.77 345.84 346.52 350.79 345.44 345.87 338.48 337.21 340.81 339.86 342.86 343.33 341.73 351.38 351.13 345.99 347.55 346.02 345.29 347.03 348.01 345.48 349.40 351.05 349.70 350.86 354.45 355.30 357.48 355.24 351.79 355.22 351.02 350.28 350.17 348.16 340.30 343.75 344.71 344.13 342.14 345.04 346.02 346.43 347.07 339.33 339.10 337.19 339.58 327.85 326.81 321.73 320.45 327.69 323.95 320.47 322.13 316.34 314.78 308.90 308.62 314.41 306.88 310.60 321.60 321.50 325.68 324.35 320.01 326.88 332.39 331.48 332.62 324.79 327.12 328.91 328.37 324.83 325.90 326.18 328.94 333.78 328.06 325.87 325.41 318.86 319.13 310.16 311.73 306.54 311.16 311.98 306.72 308.05 300.76 301.90 293.09 292.76 294.58 289.90 296.69 297.21 293.31 296.25 298.60 296.87 301.02 304.73 301.92 295.72 293.18 298.35 297.99 299.85 299.85 304.45 299.45 298.14 298.78 297.02 301.33 294.96 296.69 300.73 301.96 297.38 293.87 285.96 285.41 283.70 284.76 277.11 274.73 274.73 274.73 274.73 274.69 275.42 264.15 276.24 268.88 277.97 280.49 281.09 276.16 272.58 270.94 284.31 283.94 284.18 282.83 283.84 282.71 279.29 280.70 274.47 273.44 275.49 279.46 280.19 288.21 284.80 281.41 283.39 287.97 290.77 290.60 289.67 289.84 298.55 296.07 297.14 295.34 296.25 294.30 296.15 296.49 298.05 301.03 300.52 301.50 296.93 289.84 291.44 286.88 286.74 288.93 292.19 295.39 295.86 293.36 292.86 292.73 296.73 285.02 285.24 288.62 283.36 285.84 291.48 291.41 287.77 284.97 286.05 278.19 281.21 277.92 280.08 269.24 268.48 268.83 269.54 262.37 265.12 265.34 263.32 267.18 260.75 261.78 257.27 255.63 251.39 259.49 261.18 261.65 262.01 265.23 268.10 262.27 263.59 257.85 265.69 271.15 266.69 265.77 262.32 270.48 273.03 269.13 280.65 282.75 281.44 281.99 282.86 287.21 283.11 280.66 282.39 280.83 284.71 279.99 283.50 284.88 288.60 284.80 287.20 286.22 286.54 279.58 283.08 288.88 280.18 284.16 290.57 286.82 273.00 278.69 264.54 271.92 283.60 269.25 263.58 264.16 268.85 269.67 249.41 268.99 268.65 260.16 256.55 251.47 234.93 232.96 215.49 213.68 236.07 235.41 214.77 225.85 224.64 238.26 232.44 222.50 225.28 220.49 216.86 234.70 230.06 238.27 238.56 242.70 249.14 234.89 227.78 234.04 230.70 230.17 218.23 232.20 220.76 215.60 217.69 204.35 191.44 203.84 211.86 210.57 219.57 219.98 226.01 207.04 212.52 217.92 210.45 218.53 223.32 218.76 217.63
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0119.84940
1-0.223938-4.4450.999994
2-0.068793-1.36550.913562
30.0752651.4940.067993
4-0.039439-0.78280.782903
50.0135320.26860.394184
6-0.026224-0.52050.698504
7-0.068468-1.35910.912547
80.086181.71060.043969
9-0.02138-0.42440.664243
100.0635471.26140.103959
110.0353510.70170.241643
12-0.025071-0.49760.690491
130.0339070.6730.25066
14-0.01024-0.20330.580483
15-0.133581-2.65150.995832
160.0116510.23130.408611
170.0861871.71080.043956
18-0.087681-1.74040.958717
19-0.019329-0.38370.649286
200.012070.23960.405391
21-0.070743-1.40420.919477
220.0394060.78220.217287
23-0.023519-0.46680.679565
24-0.004279-0.08490.533818
25-0.009514-0.18880.574846
260.0150060.29790.382986
27-0.007272-0.14430.557346
28-0.021017-0.41720.661614
290.0382940.76010.223821
300.0209740.41630.338698
31-0.094635-1.87840.969471
320.0224390.44540.32814
33-0.027794-0.55170.709264
34-0.015797-0.31360.62299
35-0.052626-1.04460.851577
360.0094520.18760.425641
370.0807521.60290.054881
38-0.027226-0.54040.705391
39-0.013093-0.25990.60246
40-0.004396-0.08730.534745
41-0.015254-0.30280.618893
420.0411660.81710.207178
43-0.056217-1.11590.867421
44-0.073653-1.4620.927727
450.0464650.92230.178465
460.0385030.76430.222585
47-0.04678-0.92860.823158
480.0163010.32360.373216
490.0362210.7190.236291
50-0.077642-1.54120.937959
510.0394980.7840.216752
52-0.067091-1.33170.908138
530.0812971.61370.053697
540.0027780.05510.478025
55-0.06029-1.19670.883932
560.0095420.18940.424939
57-0.001928-0.03830.515255
58-0.012257-0.24330.59605
590.0572131.13570.128396


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.223938-4.4450.999994
1-0.12522-2.48560.993326
20.0319680.63450.263045
3-0.023208-0.46070.677351
40.0100820.20010.420747
5-0.030909-0.61350.73006
6-0.082683-1.64120.949223
70.0466970.92690.17727
80.0014270.02830.488707
90.0832751.6530.049567
100.0629111.24870.106249
110.0149220.29620.383616
120.0286810.56930.284739
130.0014470.02870.488552
14-0.129797-2.57640.994827
15-0.061739-1.22550.889436
160.073031.44960.073983
17-0.048224-0.95720.83048
18-0.051077-1.01380.844361
19-0.031459-0.62450.733654
20-0.103754-2.05950.979947
21-0.022301-0.44270.670874
22-0.015884-0.31530.623643
230.0076420.15170.439755
24-0.015518-0.3080.620884
250.033620.66730.252472
26-0.012162-0.24140.595316
27-0.021197-0.42080.662919
280.0506931.00620.157463
290.0264120.52430.300192
30-0.064806-1.28640.900464
310.0073170.14520.442298
32-0.054794-1.08760.861286
33-0.055368-1.0990.863786
34-0.085754-1.70220.955244
35-0.042526-0.84410.80044
360.0559631.11080.133657
370.0099490.19750.421779
38-0.022609-0.44880.673081
39-0.048941-0.97150.834043
40-0.018899-0.37510.646121
410.0295820.58720.278705
42-0.028298-0.56170.712682
43-0.060088-1.19270.88315
440.0073020.14490.442416
450.0227870.45230.325647
46-0.041096-0.81570.792424
47-0.005749-0.11410.545398
480.0151520.30080.381881
49-0.096598-1.91740.972046
500.0008820.01750.493021
51-0.067894-1.34770.910729
520.0614091.21890.111799
53-0.002295-0.04550.518152
54-0.046108-0.91520.819682
55-0.049014-0.97290.834399
56-0.011727-0.23280.591969
57-0.018517-0.36760.643299
580.0043610.08660.465532
590.0154520.30670.379613
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229276804wdbkhksqtdvxoax/12qfs1229276593.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229276804wdbkhksqtdvxoax/12qfs1229276593.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229276804wdbkhksqtdvxoax/2po1f1229276593.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229276804wdbkhksqtdvxoax/2po1f1229276593.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 2.0 ; par3 = 1 ; par4 = 0 ; par5 = 1 ;
 
Parameters (R input):
par1 = 60 ; par2 = 2.0 ; par3 = 1 ; par4 = 0 ; par5 = 1 ;
 
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 (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='lags',ylab='ACF')
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 1:par1) {
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(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-1,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(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