Home » date » 2010 » Aug » 18 »

Tijdreeks 2 - Stap 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, 18 Aug 2010 18:15:26 +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/18/t12821552984ok05fa94oi08oz.htm/, Retrieved Wed, 18 Aug 2010 20:15:00 +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/18/t12821552984ok05fa94oi08oz.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:
Patrick Fieremans
 
Dataseries X:
» Textbox « » Textfile « » CSV «
259 258 257 255 253 252 253 255 256 256 257 259 267 263 266 257 249 249 251 252 252 252 256 257 259 260 261 253 243 233 241 239 233 228 228 227 225 230 222 207 190 184 192 187 173 167 163 156 153 157 152 128 115 114 136 132 126 124 123 119 105 107 108 92 74 73 100 97 99 102 99 103 92 99 97 87 69 66 95 91 93 99 91 91
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9752418.93820
20.9479098.68770
30.9254548.48190
40.9034548.28030
50.8794448.06020
60.8537017.82430
70.8229917.54280
80.7895787.23660
90.7578266.94560
100.7295156.68610
110.704086.4530
120.6743646.18060
130.6346265.81640
140.5918175.42410
150.5516995.05641e-06
160.5145484.71595e-06
170.4770894.37261.7e-05
180.438624.026.3e-05
190.3947583.6180.000253
200.3484953.1940.000988
210.3043132.78910.003269
220.2650872.42960.008624
230.22732.08320.020135
240.187071.71450.04506
250.1428461.30920.097017
260.0976560.8950.186663
270.0545780.50020.309117
280.016040.1470.441737
29-0.019102-0.17510.430722
30-0.052199-0.47840.316801
31-0.091423-0.83790.20223
32-0.131982-1.20960.114906
33-0.170204-1.55990.061266
34-0.200936-1.84160.034531
35-0.228886-2.09780.019465
36-0.259032-2.37410.009937
37-0.292004-2.67630.004475
38-0.324528-2.97430.001916
39-0.352946-3.23480.000871
40-0.375166-3.43850.000456
41-0.390332-3.57750.00029
42-0.403226-3.69560.000195
43-0.419551-3.84520.000117
44-0.434775-3.98487.2e-05
45-0.444605-4.07495.2e-05
46-0.449524-4.124.4e-05
47-0.451247-4.13574.2e-05
48-0.454002-4.1613.8e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9752418.93820
2-0.065131-0.59690.276079
30.0887730.81360.209081
4-0.013393-0.12270.451299
5-0.043636-0.39990.345111
6-0.043664-0.40020.345018
7-0.12045-1.10390.136386
8-0.069492-0.63690.262958
90.0012520.01150.495437
100.0417560.38270.351455
110.0522440.47880.316653
12-0.087514-0.80210.212385
13-0.200337-1.83610.034939
14-0.091133-0.83530.202973
15-0.016718-0.15320.439294
160.0138620.1270.449605
17-0.022724-0.20830.417763
18-0.012167-0.11150.455738
19-0.100435-0.92050.179973
20-0.060546-0.55490.290216
21-0.02851-0.26130.397252
220.0199690.1830.427613
23-0.01584-0.14520.44246
24-0.038642-0.35420.362055
25-0.055015-0.50420.307712
26-0.039622-0.36310.358706
27-0.033178-0.30410.380909
280.0121890.11170.455658
290.0214220.19630.422411
300.046930.43010.334106
31-0.107775-0.98780.16305
32-0.036661-0.3360.368851
33-0.051097-0.46830.320388
340.0568560.52110.301837
350.0057630.05280.478999
36-0.045075-0.41310.340286
37-0.044391-0.40680.342577
38-0.02065-0.18930.425171
390.0157270.14410.442866
400.0339640.31130.378177
410.0757280.69410.244782
420.0405820.37190.355437
43-0.026317-0.24120.404993
440.0244570.22410.411593
450.0291140.26680.395125
46-0.008987-0.08240.467275
470.0153660.14080.444169
48-0.030303-0.27770.39095
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/18/t12821552984ok05fa94oi08oz/1dlsn1282155323.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t12821552984ok05fa94oi08oz/1dlsn1282155323.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/18/t12821552984ok05fa94oi08oz/2dlsn1282155323.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t12821552984ok05fa94oi08oz/2dlsn1282155323.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