Home » date » 2010 » Aug » 13 »

Tijdreeks A - Stap 21

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 13 Aug 2010 12:05:20 +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/Aug/13/t128170114743xn73xn85xgzig.htm/, Retrieved Fri, 13 Aug 2010 14:05:50 +0200
 
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/Aug/13/t128170114743xn73xn85xgzig.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:
Jacobs Jeff
 
Dataseries X:
» Textbox « » Textfile « » CSV «
130 129 128 126 146 145 130 120 121 121 122 124 123 125 120 124 146 149 138 133 135 149 146 141 139 141 138 139 166 179 167 154 151 162 148 143 145 143 148 139 169 186 174 161 151 158 144 135 139 137 149 136 169 185 177 164 145 147 142 126 130 136 139 120 151 166 156 150 141 141 130 110 110 123 133 108 136 148 146 142 132 128 116 90 94 112 130 106 124 139 140 129 113 110 102 78 79 94 121 99 126 137 141 119 96 96 88 64 66 92 120 101 135 146 149 134 101 100 91 70
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0695930.75920.224626
2-0.176362-1.92390.028379
3-0.047435-0.51750.302898
40.1244911.3580.08851
5-0.104303-1.13780.128742
6-0.560019-6.10910
7-0.172045-1.87680.031498
80.1606731.75270.041111
9-0.015203-0.16590.434278
10-0.187559-2.0460.021478
110.0035680.03890.484508
120.8212488.95880
130.1035241.12930.130519
14-0.154985-1.69070.046757
15-0.104331-1.13810.12868
160.0970451.05860.145956
17-0.037497-0.4090.341623
18-0.485811-5.29960
19-0.168928-1.84280.033925
200.1688631.84210.033977
210.0646020.70470.24118
22-0.157993-1.72350.043697
23-0.059473-0.64880.258868
240.6557817.15370
250.1396651.52360.065136
26-0.120021-1.30930.096482
27-0.135446-1.47750.071087
280.064670.70550.24095
290.0064890.07080.471843
30-0.422921-4.61355e-06
31-0.178365-1.94570.027022
320.1567511.70990.044941
330.1265011.380.085092
34-0.118158-1.28890.099958
35-0.106021-1.15660.124886
360.5245525.72220
370.1487511.62270.053651
38-0.082053-0.89510.186273
39-0.133761-1.45920.073578
400.0230090.2510.401123
410.0364440.39760.345834
42-0.355585-3.8798.6e-05
43-0.192828-2.10350.018764
440.1238511.35110.089621
450.1457891.59040.057202
46-0.081142-0.88520.18893
47-0.109142-1.19060.118089
480.410124.47399e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0695930.75920.224626
2-0.182087-1.98630.024647
3-0.021052-0.22960.40938
40.1017631.11010.134596
5-0.141021-1.53840.063307
6-0.538284-5.8720
7-0.210862-2.30020.011588
8-0.029452-0.32130.374279
9-0.178656-1.94890.02683
10-0.242236-2.64250.004669
11-0.243522-2.65650.004489
120.6853537.47630
13-0.121495-1.32540.093796
14-0.003823-0.04170.483404
15-0.149683-1.63280.052573
16-0.072967-0.7960.213817
17-0.04597-0.50150.308483
180.1075361.17310.121553
190.082490.89990.185005
20-0.068584-0.74820.227919
210.1103721.2040.115486
22-0.015494-0.1690.433034
23-0.05054-0.55130.291221
24-0.046765-0.51010.305449
250.0749010.81710.20776
260.0284930.31080.378241
270.0612360.6680.252711
280.0200810.21910.413492
29-0.05079-0.55410.29029
30-0.047519-0.51840.30258
31-0.005278-0.05760.477091
320.0290880.31730.375783
330.0288260.31450.376862
340.0409560.44680.327923
35-0.02007-0.21890.413537
360.0241890.26390.396167
37-0.059084-0.64450.260236
380.023660.25810.398389
390.0686180.74850.227806
40-0.033895-0.36980.356111
41-0.003572-0.0390.484491
420.0208420.22740.410269
43-0.026512-0.28920.38646
44-0.058314-0.63610.262955
45-0.025416-0.27730.391031
46-0.027926-0.30460.380588
470.0503570.54930.291903
480.0197480.21540.414903
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/13/t128170114743xn73xn85xgzig/1m0ug1281701118.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/13/t128170114743xn73xn85xgzig/1m0ug1281701118.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/13/t128170114743xn73xn85xgzig/2m0ug1281701118.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/13/t128170114743xn73xn85xgzig/2m0ug1281701118.ps (open in new window)


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