Home » date » 2009 » Nov » 27 »

*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: Fri, 27 Nov 2009 09:20:57 -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/27/t12593391251rgqlc7avqxk7ap.htm/, Retrieved Fri, 27 Nov 2009 17:25:28 +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/27/t12593391251rgqlc7avqxk7ap.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 «
92.9 107.7 103.5 91.1 79.8 71.9 82.9 90.1 100.7 90.7 108.8 44.1 93.6 107.4 96.5 93.6 76.5 76.7 84 103.3 88.5 99 105.9 44.7 94 107.1 104.8 102.5 77.7 85.2 91.3 106.5 92.4 97.5 107 51.1 98.6 102.2 114.3 99.4 72.5 92.3 99.4 85.9 109.4 97.6 104.7 56.9 86.7 108.5 103.4 86.2 71 75.9 87.1 102 88.5 87.8 100.8 50.6 85.9
 
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
1-0.054723-0.42740.335296
2-0.221632-1.7310.044254
3-0.242414-1.89330.031531
4-0.169728-1.32560.094954
50.2309981.80420.038072
60.2243711.75240.042366
70.2174141.69810.047297
8-0.109349-0.8540.198212
9-0.225849-1.76390.041375
10-0.271821-2.1230.01891
11-0.011271-0.0880.465072
120.6798565.30981e-06
13-0.051633-0.40330.344082
14-0.199969-1.56180.061753
15-0.278212-2.17290.016841
16-0.123269-0.96280.169734
170.1865041.45660.075172
180.1233360.96330.169604
190.1563751.22130.113331
20-0.104702-0.81770.208343
21-0.238808-1.86520.033486
22-0.205734-1.60680.056627
23-0.039742-0.31040.378661
240.4879333.81090.000162
25-0.037195-0.29050.386208
26-0.159275-1.2440.109133
27-0.192795-1.50580.068642
28-0.087445-0.6830.248608
290.1331641.040.151212
300.1090370.85160.198881
310.0890440.69550.244704
32-0.071939-0.56190.288135
33-0.161985-1.26510.105315
34-0.117733-0.91950.180722
35-0.034561-0.26990.394064
360.3518712.74820.003935


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.054723-0.42740.335296
2-0.225301-1.75970.04174
3-0.284875-2.22490.014897
4-0.311983-2.43670.008878
50.0339190.26490.395985
60.0997930.77940.219377
70.2999652.34280.011209
80.1565591.22280.113061
90.0904980.70680.241188
10-0.228672-1.7860.039536
11-0.26877-2.09920.019974
120.4844543.78370.000177
13-0.102253-0.79860.213805
14-0.172175-1.34470.091846
15-0.171085-1.33620.093221
160.0507210.39610.346692
17-0.018063-0.14110.444138
18-0.143615-1.12170.1332
19-0.07734-0.6040.274027
20-0.018905-0.14770.441552
21-0.079114-0.61790.26947
220.0452990.35380.362357
23-0.15138-1.18230.120834
24-0.068228-0.53290.298027
25-0.100539-0.78520.217678
26-0.003393-0.02650.489472
270.0811460.63380.264299
28-0.016744-0.13080.448193
29-0.06336-0.49490.311238
300.0764440.59710.276342
31-0.045725-0.35710.361116
32-0.038222-0.29850.383159
33-0.063272-0.49420.31148
340.0074280.0580.476964
35-0.098812-0.77170.221623
36-0.109973-0.85890.196875
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593391251rgqlc7avqxk7ap/1f7o01259338855.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593391251rgqlc7avqxk7ap/1f7o01259338855.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t12593391251rgqlc7avqxk7ap/2ixp01259338855.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593391251rgqlc7avqxk7ap/2ixp01259338855.ps (open in new window)


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