Home » date » 2008 » Dec » 21 »

(Partial) Autocorrelation Function

*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, 21 Dec 2008 09:20: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/21/t12298764663s1rhlo2t9onzzc.htm/, Retrieved Sun, 21 Dec 2008 17:21:08 +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/21/t12298764663s1rhlo2t9onzzc.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 «
67.8 66.9 71.5 75.9 71.9 70.7 73.5 76.1 82.5 87.1 83.2 86.1 85.9 77.4 74.4 69.9 73.8 69.2 69.7 71 71.2 75.8 73 66.4 58.6 55.5 52.6 54.9 54.6 51.2 50.9 49.6 53.4 52 47.5 42.1 44.5 43.2 51.4 59.4 60.3 61.4 68.8 73.6 81.8 79.6 85.8 88.1 89.1 95 96.2 84.2 96.9 103.1 99.3 103.5 112.4 111.1 113.7 92 93 98.4 92.6 94.6 99.5 97.6 91.3 93.6 93.1 78.4 70.2 69.3 71.1 73.5 85.9 91.5 91.8 88.3 91.3 94 99.3 96.7 88 96.7 106.8 114.3 105.7 90.1 91.6 97.7 100.8 104.6 95.9 102.7 104 107.9 113.8 113.8 123.1 125.1 137.6 134 140.3 152.1 150.6 167.3 153.2 142 154.4 158.5 180.9 181.3 172.4 192 199.3 215.4 214.3 201.5 190.5 196 215.7 209.4 214.1 237.8 239 237.8 251.5 248.8 215.4 201.2 203.1 214.2 188.9 203 213.3 228.5 228.2 240.9 258.8 248.5 269.2 289.6 323.4 317.2 322.8 340.9 368.2 388.5 441.2 474.3 483.9 417.9 365.9 263 199.4
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.98447812.25670
20.96073111.9610
30.93349911.6220
40.90504911.26780
50.87491810.89260
60.84423110.51060
70.81483710.14460
80.7879239.80960
90.7632489.50240
100.7408289.22320
110.7157628.91120
120.6885168.57190
130.6617418.23860
140.6381617.9450
150.6159997.66910
160.5952947.41140
170.5768187.18130
180.5592026.9620
190.5433096.76410
200.5286576.58170
210.5148916.41030
220.5034586.2680
230.490666.10870
240.4768495.93670
250.4620545.75250
260.4438765.52620
270.4246055.28630
280.405865.05291e-06
290.3872824.82162e-06
300.3699024.60524e-06
310.3523644.38691.1e-05
320.3350064.17082.5e-05
330.3203273.9885.1e-05
340.3058423.80770.000101
350.2905433.61720.000201
360.27163.38140.000456


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.98447812.25670
2-0.274865-3.4220.000397
3-0.05949-0.74060.230016
4-0.013909-0.17320.431374
5-0.05851-0.72840.233719
6-0.008858-0.11030.456165
70.0389610.48510.31416
80.0476680.59350.276867
90.0214690.26730.394801
100.0268120.33380.369488
11-0.149691-1.86360.032132
12-0.054142-0.67410.250638
130.0413960.51540.303512
140.0914581.13860.128304
15-0.002324-0.02890.488479
160.0278960.34730.364418
170.037570.46770.320313
18-0.049303-0.61380.270119
190.0191240.23810.406063
20-0.00421-0.05240.479131
210.0177950.22150.412481
220.0933631.16240.123437
23-0.084841-1.05630.146247
24-0.051507-0.64130.261153
25-0.031657-0.39410.347013
26-0.119158-1.48350.069985
270.0111720.13910.444779
280.058620.72980.233305
29-0.001012-0.01260.494981
300.0417490.51980.301984
31-0.045132-0.56190.2875
32-0.057408-0.71470.237929
330.076810.95630.170211
34-0.037805-0.47070.319269
35-0.025584-0.31850.37526
36-0.100674-1.25340.105978
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t12298764663s1rhlo2t9onzzc/1px6s1229876419.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t12298764663s1rhlo2t9onzzc/1px6s1229876419.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t12298764663s1rhlo2t9onzzc/2iayz1229876419.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t12298764663s1rhlo2t9onzzc/2iayz1229876419.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = -0.1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 36 ; par2 = -0.1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 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