Home » date » 2010 » Nov » 17 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 17 Nov 2010 16:17:34 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/17/t1290010619vrxivubbpipqxu4.htm/, Retrieved Wed, 17 Nov 2010 17:16:59 +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/Nov/17/t1290010619vrxivubbpipqxu4.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
97 100.7 101.4 101.5 101.8 101.5 102.2 101.8 98.5 98.4 97.5 97.7 98.3 99.6 99.4 96.7 96.9 96.1 97.9 99.2 97.8 94.9 93.3 91.5 89.1 92.3 91.8 92.1 94.4 92.8 92.6 92.3 92.1 89.8 87.4 87.7 86.3 89.1 90.4 87.1 86.7 84.4 88.4 88.9 88.5 87.2 86.2 83.4 87.5 85.7 87.4 86.8 87.9 85.9 87.7 87 86.8 86.2 86.1 87.5 85.7 88.9 89.8 91.4 95.2 94.1 96.8 96.1 96.6 94.2 93.9 96.5 93.4 95 95.2 94 97 96.9 96.3 96.3 97.3 95.7 96.4 95.1 94.6 95.9 96.2 94.3 98.3 95.9 92.1 94.6 94.7 96.7 97.5 96.2 97.1 95.9 94.5 99.4 101.3 101.4 100.9 101.4 103.1 102.4 101.1 102 103.9 101.7 101.2 101.9 101.1 103.1 103.3 101.4 102.8 103 102.6 102.2
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.93829110.27850
20.8946399.80030
30.8512559.3250
40.8036258.80330
50.7796968.54110
60.7454978.16650
70.7026117.69670
80.6672937.30980
90.6304226.90590
100.5969786.53960
110.57026.24620
120.5417875.9350
130.4912585.38150
140.4448854.87352e-06
150.3926134.30091.7e-05
160.3380613.70330.000161
170.2936443.21670.000834
180.2435392.66780.004344
190.1955012.14160.017123
200.1516441.66120.049644
210.1120231.22720.111084
220.0966991.05930.145799
230.082340.9020.184435
240.0599890.65710.256174
250.0358420.39260.347646
260.0004990.00550.497822
27-0.039969-0.43780.331147
28-0.060627-0.66410.253937
29-0.083483-0.91450.181141
30-0.102056-1.1180.132908
31-0.119922-1.31370.095731
32-0.145188-1.59050.057182
33-0.156658-1.71610.044361
34-0.165345-1.81130.036301
35-0.179159-1.96260.026004
36-0.179093-1.96190.026047
37-0.196793-2.15580.016549
38-0.223753-2.45110.007842
39-0.254215-2.78480.003113
40-0.280623-3.07410.001307
41-0.304781-3.33870.000561
42-0.323649-3.54540.00028
43-0.337531-3.69750.000165
44-0.358978-3.93247.1e-05
45-0.359113-3.93397e-05
46-0.368801-4.044.7e-05
47-0.377931-4.143.2e-05
48-0.371625-4.07094.2e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.93829110.27850
20.1191311.3050.097193
30.0003970.00430.49827
4-0.055677-0.60990.271537
50.1656231.81430.036064
6-0.049576-0.54310.29404
7-0.107637-1.17910.120345
80.0103010.11280.455174
90.0165860.18170.428065
10-0.009571-0.10480.458336
110.0144680.15850.43717
120.0080840.08860.464792
13-0.208947-2.28890.011917
14-0.050504-0.55320.290562
15-0.064219-0.70350.241557
16-0.073352-0.80350.211628
17-0.033669-0.36880.356452
18-0.041001-0.44910.32707
19-0.018116-0.19850.421514
20-0.024046-0.26340.396345
210.0375790.41170.340661
220.1830042.00470.023623
230.0345280.37820.352961
24-0.0715-0.78320.217513
25-0.013692-0.150.440515
26-0.068855-0.75430.226083
27-0.114674-1.25620.105743
280.0978151.07150.143045
290.0143690.15740.437595
300.0056730.06210.475276
31-0.021457-0.2350.407287
32-0.013284-0.14550.442275
330.0495180.54240.294258
34-0.071861-0.78720.216358
35-0.083824-0.91820.180165
360.0718230.78680.21648
37-0.142735-1.56360.060275
38-0.12887-1.41170.080313
39-0.089009-0.97510.165748
40-0.003275-0.03590.485719
41-0.046476-0.50910.305802
42-0.003319-0.03640.485527
430.0955321.04650.148715
44-0.055567-0.60870.271936
450.0831470.91080.182107
46-0.06231-0.68260.248097
47-0.053602-0.58720.279091
480.0186570.20440.419204
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290010619vrxivubbpipqxu4/1tcjf1290010650.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290010619vrxivubbpipqxu4/1tcjf1290010650.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/17/t1290010619vrxivubbpipqxu4/2tcjf1290010650.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290010619vrxivubbpipqxu4/2tcjf1290010650.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; 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