Home » date » 2010 » Aug » 11 »

Tijdreeks 1 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: Wed, 11 Aug 2010 13:01:03 +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/11/t1281531650oi12m1u9c9ebeu3.htm/, Retrieved Wed, 11 Aug 2010 15:00: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/11/t1281531650oi12m1u9c9ebeu3.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:
Marianne Nykjaer
 
Dataseries X:
» Textbox « » Textfile « » CSV «
268 267 266 264 284 283 268 258 259 259 260 262 255 259 258 258 288 289 271 268 274 284 284 279 273 280 276 271 298 297 278 270 280 289 288 293 285 283 275 268 295 290 267 252 268 278 280 278 261 263 259 265 294 285 255 231 246 258 265 260 238 241 239 233 265 255 224 194 210 222 230 225 206 204 207 195 230 221 195 162 182 203 211 206 187 181 189 174 213 201 177 140 165 192 197 196 176 164 177 165 208 195 164 123 147 173 176 170 157 145 148 135 175 168 140 109 129 150 150 152
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0662060.72220.235788
2-0.394688-4.30551.7e-05
3-0.451329-4.92341e-06
4-0.040753-0.44460.328721
50.2093482.28370.012081
60.2828743.08580.001263
70.210322.29430.011763
8-0.053488-0.58350.280337
9-0.427639-4.6654e-06
10-0.352835-3.8499.6e-05
110.0476340.51960.302143
120.8836729.63970
130.072680.79280.214723
14-0.371978-4.05784.4e-05
15-0.396466-4.32491.6e-05
16-0.037647-0.41070.341022
170.1848442.01640.023005
180.2464142.68810.004109
190.1861012.03010.022287
20-0.058979-0.64340.260606
21-0.360435-3.93197.1e-05
22-0.29364-3.20320.000872
230.0325460.3550.361597
240.7368328.03790
250.086760.94640.172921
26-0.349796-3.81580.000108
27-0.335224-3.65690.000191
28-0.025366-0.27670.391241
290.1615061.76180.040334
300.2079762.26880.012543
310.1549811.69060.046761
32-0.062755-0.68460.247472
33-0.292365-3.18930.000911
34-0.243457-2.65580.004498
350.0283690.30950.378751
360.6060026.61070
370.1021921.11480.133594
38-0.325973-3.5560.000271
39-0.291065-3.17510.000954
40-0.018017-0.19650.42226
410.1540681.68070.047723
420.1653481.80370.036901
430.1144911.2490.107067
44-0.066928-0.73010.233382
45-0.219248-2.39170.009168
46-0.196557-2.14420.017026
470.0170190.18570.426516
480.4848335.28890


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0662060.72220.235788
2-0.400828-4.37251.3e-05
3-0.464529-5.06741e-06
4-0.295078-3.21890.000829
5-0.307289-3.35210.000538
6-0.15756-1.71880.044128
70.1627571.77550.039189
80.3016533.29060.000658
90.0267780.29210.385352
10-0.220867-2.40940.008756
11-0.484723-5.28770
120.6802247.42040
13-0.148889-1.62420.053491
140.0950231.03660.151016
150.2572242.8060.002931
16-0.012729-0.13890.444901
170.0608510.66380.25405
18-0.036676-0.40010.344905
19-0.151244-1.64990.050803
20-0.083472-0.91060.182181
210.0745620.81340.208814
22-0.001887-0.02060.491806
230.0752530.82090.206669
24-0.082626-0.90130.184613
250.1131331.23410.109792
26-0.074762-0.81560.208192
27-0.032264-0.3520.362745
280.0141190.1540.438928
29-0.088465-0.9650.168242
300.0177150.19330.423546
31-0.018605-0.2030.41976
32-0.025298-0.2760.391526
330.0394660.43050.333796
34-0.030405-0.33170.370359
350.0317920.34680.364672
360.0151250.1650.434614
370.0078370.08550.466005
380.0339530.37040.355877
39-0.055274-0.6030.273838
40-0.047656-0.51990.302062
410.05060.5520.290998
42-0.145931-1.59190.057028
43-0.079865-0.87120.192694
44-0.038679-0.42190.336915
45-0.017879-0.1950.42285
460.0252030.27490.391922
47-0.024601-0.26840.39444
48-0.00543-0.05920.476434
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281531650oi12m1u9c9ebeu3/1c2251281531659.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281531650oi12m1u9c9ebeu3/1c2251281531659.ps (open in new window)


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