Home » date » 2009 » Nov » 24 »

*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, 24 Nov 2009 07:30:12 -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/Nov/24/t12590730308t19t4owjhx9y1x.htm/, Retrieved Tue, 24 Nov 2009 15:30:32 +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/Nov/24/t12590730308t19t4owjhx9y1x.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 «
115.47 103.34 102.6 100.69 105.67 123.61 113.08 106.46 123.38 109.87 95.74 123.06 123.39 120.28 115.33 110.4 114.49 132.03 123.16 118.82 128.32 112.24 104.53 132.57 122.52 131.8 124.55 120.96 122.6 145.52 118.57 134.25 136.7 121.37 111.63 134.42 137.65 137.86 119.77 130.69 128.28 147.45 128.42 136.9 143.95 135.64 122.48 136.83 153.04 142.71 123.46 144.37 146.15 147.61 158.51 147.4 165.05 154.64 126.2 157.36 154.15 123.21 113.07 110.45 113.57 122.44 114.93 111.85 126.04 121.34
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5963164.98912e-06
20.4362563.650.000251
30.5252824.39481.9e-05
40.4631843.87530.000119
50.367693.07630.001495
60.3757293.14360.001224
70.2175721.82030.036491
80.2731832.28560.012654
90.1577511.31980.095595
100.0180780.15130.440106
110.136821.14470.128112
120.3259762.72730.004032
130.092110.77070.221754
140.0086050.0720.471405
150.0720850.60310.274194
160.102550.8580.196912
170.0376790.31520.376758
180.0648750.54280.294502
190.0307990.25770.398703
200.0450380.37680.353727
21-0.048473-0.40560.343155
22-0.119893-1.00310.159634
23-0.041924-0.35080.36341
240.0661350.55330.290903
25-0.0599-0.50120.308917
26-0.170555-1.4270.079017
27-0.094148-0.78770.216765
28-0.03586-0.30.382524
29-0.120849-1.01110.157726
30-0.101054-0.84550.200362
31-0.078576-0.65740.256535
32-0.149229-1.24850.107997
33-0.171955-1.43870.077349
34-0.205009-1.71520.045364
35-0.213933-1.78990.038898
36-0.108038-0.90390.184571
37-0.179222-1.49950.069124
38-0.285478-2.38850.009809
39-0.190875-1.5970.057388
40-0.168067-1.40620.082052
41-0.226482-1.89490.031119
42-0.18408-1.54010.064019
43-0.162986-1.36360.088526
44-0.226735-1.8970.030977
45-0.213127-1.78310.039449
46-0.228208-1.90930.03016
47-0.220578-1.84550.034598
48-0.142101-1.18890.119247
49-0.195515-1.63580.053185
50-0.247249-2.06860.021138
51-0.165885-1.38790.084786
52-0.160119-1.33970.092345
53-0.176093-1.47330.072576
54-0.115759-0.96850.168063
55-0.098945-0.82780.205289
56-0.081994-0.6860.247486
57-0.028204-0.2360.407072
58-0.021611-0.18080.428519
590.0212580.17790.429675
600.0822960.68850.246695


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5963164.98912e-06
20.1251741.04730.149287
30.3516512.94210.002209
40.0503840.42150.337326
50.0194180.16250.435706
60.0599890.50190.308655
7-0.235186-1.96770.026532
80.1966021.64490.052238
9-0.295154-2.46940.007987
10-0.050072-0.41890.338273
110.1813631.51740.066836
120.3682093.08070.001476
13-0.204385-1.710.045847
14-0.167113-1.39820.083239
15-0.010345-0.08660.465637
160.043380.36290.35887
17-0.068778-0.57540.283421
180.0502960.42080.337593
190.0483530.40450.343521
20-0.108391-0.90690.183795
21-0.02959-0.24760.402596
22-0.009917-0.0830.467056
230.0157320.13160.447828
24-0.062424-0.52230.301563
250.0755320.63190.264741
26-0.151311-1.2660.104862
270.0785720.65740.256545
280.0188140.15740.437689
29-0.03222-0.26960.394141
30-0.052608-0.44020.330592
31-0.046699-0.39070.348599
32-0.133262-1.1150.134342
330.0383240.32060.37472
340.0042990.0360.485705
35-0.115622-0.96740.168346
360.0270520.22630.410801
37-0.006108-0.05110.479694
380.0716940.59980.275277
39-0.097601-0.81660.208467
400.0109610.09170.463595
41-0.049645-0.41540.339574
42-0.052977-0.44320.32948
43-0.005191-0.04340.48274
44-0.064373-0.53860.295941
45-0.005359-0.04480.482183
46-0.038344-0.32080.374655
470.0351560.29410.384762
48-0.021066-0.17630.430302
49-0.060977-0.51020.305769
500.0555690.46490.321714
51-0.0259-0.21670.414538
52-0.037202-0.31130.378265
530.0183090.15320.439346
540.0307430.25720.398884
55-0.005544-0.04640.481569
560.0985670.82470.20618
570.0994790.83230.204034
58-0.021741-0.18190.428095
590.0043520.03640.485529
600.0371460.31080.378442
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590730308t19t4owjhx9y1x/16um21259073010.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590730308t19t4owjhx9y1x/16um21259073010.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590730308t19t4owjhx9y1x/23i7g1259073010.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590730308t19t4owjhx9y1x/23i7g1259073010.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