Home » date » 2009 » Dec » 10 »

*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: Thu, 10 Dec 2009 10:50:50 -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/Dec/10/t1260467557hn2qy9yizswrbf7.htm/, Retrieved Thu, 10 Dec 2009 18:52:40 +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/Dec/10/t1260467557hn2qy9yizswrbf7.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 «
99.026 101.851 99.958 97.875 97.927 95.149 94.551 93.999 93.297 89.901 89.742 87.096 86.863 86.718 80.020 63.483 51.289 44.071 43.654 66.115 84.518 83.395 78.307 80.049 78.346 78.317 75.918 73.739 74.530 74.179 76.974 75.408 73.336 69.210 67.286 64.606 64.159 64.423 66.411 64.270 56.521 50.599 54.751 62.227 63.932 65.391 75.744 74.590 76.035 74.427 73.354 73.081 75.309 75.463 75.910 76.151 76.882 78.632 80.137 82.490 79.896 81.303 79.344 81.355 82.328 79.669 77.249 75.101 72.520 72.438 72.653 71.429 69.189 66.451 63.354 61.379 61.880 62.274 62.429 63.905 63.917 64.295 61.930 60.440 59.353 58.695 60.569 60.386 60.938 61.795 63.304 64.270 63.492 61.333 59.341 58.412 58.725 59.277 58.562 57.858 58.790 58.243 57.044 57.339 59.429 60.575 61.950 61.712
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9153629.51270
20.7689577.99120
30.6273546.51970
40.5152385.35450
50.4338574.50888e-06
60.3814723.96446.6e-05
70.3313753.44380.000409
80.2775662.88450.002366
90.223642.32410.010995
100.1708381.77540.039325
110.1151391.19660.117049
120.061130.63530.263294
130.0085510.08890.464678
14-0.038277-0.39780.345785
15-0.05804-0.60320.27383
16-0.040689-0.42290.336622
170.002280.02370.490571
180.0567530.58980.278282
190.0975311.01360.156527
200.0922330.95850.169972
210.0648270.67370.25097
220.0603590.62730.265904
230.0709570.73740.231238
240.0646450.67180.251571
250.0444810.46230.322414
260.0106270.11040.456132
27-0.033702-0.35020.363421
28-0.082152-0.85370.197568
29-0.12089-1.25630.105854
30-0.149782-1.55660.061248
31-0.168572-1.75190.041319
32-0.17264-1.79410.037795
33-0.172476-1.79240.037932
34-0.172621-1.79390.037811
35-0.173046-1.79830.037458
36-0.168986-1.75620.040948


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9153629.51270
2-0.425203-4.41881.2e-05
30.1009381.0490.148265
40.0434040.45110.326422
50.0278970.28990.386217
60.0633630.65850.255812
7-0.112781-1.1720.121878
80.0036280.03770.484996
9-0.009326-0.09690.461486
10-0.038415-0.39920.34526
11-0.061296-0.6370.262733
12-0.027823-0.28910.386511
13-0.050927-0.52920.298859
14-0.009175-0.09530.462108
150.1248111.29710.098685
160.1018131.05810.146191
170.06180.64220.261037
180.067860.70520.241097
19-0.054585-0.56730.285857
20-0.180906-1.880.031399
210.0808830.84060.201226
220.1679851.74580.041849
23-0.088938-0.92430.178702
24-0.190963-1.98450.024866
25-0.014624-0.1520.439745
26-0.053372-0.55470.290136
27-0.043087-0.44780.327606
28-0.092933-0.96580.168155
290.0095010.09870.460763
300.0341050.35440.361852
310.0283980.29510.384236
320.0868960.90310.184254
33-0.024311-0.25260.40051
34-0.029374-0.30530.380377
35-0.058116-0.6040.273568
360.0513270.53340.297425
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260467557hn2qy9yizswrbf7/1kahi1260467448.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260467557hn2qy9yizswrbf7/1kahi1260467448.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/10/t1260467557hn2qy9yizswrbf7/2bgif1260467448.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260467557hn2qy9yizswrbf7/2bgif1260467448.ps (open in new window)


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