Home » date » 2010 » Jan » 12 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 12 Jan 2010 04:21:14 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/12/t1263295361ueyinnsq0rfl13h.htm/, Retrieved Tue, 12 Jan 2010 12:22:43 +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/2010/Jan/12/t1263295361ueyinnsq0rfl13h.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
277 260.6 291.6 275.4 275.3 231.7 238.8 274.2 277.8 299.1 286.6 232.3 294.1 267.5 309.7 280.7 287.3 235.7 256.4 289 290.8 321.9 291.8 241.4 295.5 258.2 306.1 281.5 283.1 237.4 274.8 299.3 300.4 340.9 318.8 265.7 322.7 281.6 323.5 312.6 310.8 262.8 273.8 320 310.3 342.2 320.1 265.6 327 300.7 346.4 317.3 326.2 270.7 278.2 324.6 321.8 343.5 354 278.2 330.2 307.3 375.9 335.3 339.3 280.3 293.7 341.2 345.1 368.7 369.4 288.4 341 319.1 374.2 344.5 337.3 281 282.2 321 325.4 366.3 380.3 300.7 359.3 327.6 383.6 352.4 329.4 294.5 333.5 334.3 358 396.1 387 307.2 363.9 344.7 397.6 376.8 337.1 299.3 323.1 329.1 347 462 436.5 360.4 415.5 382.1 432.2 424.3 386.7 354.5 375.8 368 402.4 426.5 433.3 338.5 416.8 381.1 445.7 412.4 394 348.2 380.1 373.7 393.6 434.2 430.7 344.5 411.9 370.5 437.3 411.3 385.5 341.3 384.2 373.2 415.8 448.6 454.3 350.3 419.1 398 456.1 430.1 399.8 362.7 384. etc...
 
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
1-0.700886-9.1920
20.2787923.65630.00017
3-0.132113-1.73260.042476
40.1157951.51860.065345
5-0.116182-1.52370.064708
60.062730.82270.205909
7-0.014761-0.19360.423363
80.0181170.23760.406236
90.0407280.53410.296966
10-0.18426-2.41660.008357
110.3779284.95651e-06
12-0.479634-6.29030
130.3792694.97411e-06
14-0.307884-4.03794.1e-05
150.2877753.77410.00011
16-0.136467-1.78970.037627
17-0.004662-0.06110.475659
180.0128440.16840.433217
190.0445920.58480.279717
20-0.071857-0.94240.173658
210.0015340.02010.491985
220.0972091.27490.102034
23-0.151601-1.98820.024187
240.1756912.30420.011205
25-0.19003-2.49220.006821
260.2200142.88550.002205
27-0.176151-2.31020.011032
28-0.006433-0.08440.466432
290.1417221.85870.032392
30-0.124045-1.62680.052801
310.0436440.57240.283904
320.0150080.19680.422098
33-0.011493-0.15070.440181
34-0.02329-0.30540.380198
350.0612850.80370.211328
36-0.111774-1.46590.07225
370.1518991.99210.023969
38-0.138094-1.81110.035936
390.0394370.51720.302838
400.0758920.99530.160491
41-0.096494-1.26550.103702
420.0711980.93370.175871
43-0.088767-1.16420.122984
440.1118461.46680.072122
45-0.078372-1.02780.152734
46-0.005726-0.07510.470112
470.0621790.81550.207967
48-0.028696-0.37630.353561
49-0.044055-0.57780.282087
500.0650620.85330.197344
510.0024680.03240.487111
52-0.102211-1.34050.090927
530.1564512.05180.020851
54-0.196638-2.57890.005374
550.2137732.80360.002817
56-0.141692-1.85830.032419
570.0481560.63160.264255
58-0.004533-0.05950.476329
59-0.000698-0.00920.496353
60-0.011262-0.14770.441376


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.700886-9.1920
2-0.417584-5.47660
3-0.351854-4.61454e-06
4-0.183692-2.40910.008524
5-0.19361-2.53920.005999
6-0.235195-3.08460.001188
7-0.229988-3.01630.001474
8-0.192584-2.52570.006225
90.0377350.49490.310656
10-0.249195-3.26820.000654
110.2839363.72380.000133
120.0283630.3720.355186
130.0738010.96790.167229
14-0.252702-3.31420.00056
15-0.247959-3.25190.00069
160.0773461.01440.155911
17-0.015065-0.19760.421803
18-0.018348-0.24060.405061
19-0.025053-0.32860.371443
200.0154910.20320.419626
210.0554870.72770.233891
220.0015210.020.492053
230.1013011.32850.092879
240.0151820.19910.421204
25-0.007367-0.09660.461569
26-0.066053-0.86630.193771
270.0553330.72570.234509
28-0.12251-1.60670.054977
290.0654740.85870.195855
30-0.000988-0.0130.494841
31-0.088442-1.15990.123846
320.0060010.07870.468681
33-0.031547-0.41370.339793
340.0118810.15580.438181
350.0164520.21580.414715
36-0.009002-0.11810.453078
370.029830.39120.348058
380.0398670.52280.300878
39-0.025251-0.33120.370461
40-0.074902-0.98230.163658
410.0274190.35960.359795
420.0033870.04440.48231
43-0.034938-0.45820.32369
440.021510.28210.389102
450.0442920.58090.281041
46-0.04692-0.61540.269568
470.0939181.23170.109867
480.0178830.23450.407427
490.0197230.25870.398103
500.0210970.27670.391175
510.0702910.92190.178947
52-0.080242-1.05240.147054
530.0340180.44610.328029
54-0.095109-1.24730.106985
55-0.093427-1.22530.111073
560.0113880.14940.440723
570.0424870.55720.289054
580.0100990.13240.447393
590.0293530.3850.350372
600.0217420.28510.387938
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263295361ueyinnsq0rfl13h/14k5p1263295272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263295361ueyinnsq0rfl13h/14k5p1263295272.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263295361ueyinnsq0rfl13h/2m1991263295272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263295361ueyinnsq0rfl13h/2m1991263295272.ps (open in new window)


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