Home » date » 2010 » Jul » 01 »

Tijdreeks1-Stap20

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 01 Jul 2010 15:28:19 +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/Jul/01/t1277998115mbcsx22s4tbcers.htm/, Retrieved Thu, 01 Jul 2010 17:28:35 +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/Jul/01/t1277998115mbcsx22s4tbcers.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:
Steffi Poppe
 
Dataseries X:
» Textbox « » Textfile « » CSV «
300 299 298 296 316 315 300 290 291 291 292 294 302 296 282 282 298 300 289 275 270 269 268 260 271 269 260 262 285 286 272 248 240 234 231 222 233 236 226 232 248 253 233 216 209 202 204 193 201 201 188 198 220 225 215 198 195 183 180 170 175 180 161 174 195 198 188 173 162 149 140 129 132 133 116 128 148 154 152 141 136 119 114 100 108 115 101 116 131 133 135 124 131 113 118 99 107 112 106 121 138 134 132 121 132 113 112 91 96 99 99 110 127 122 124 114 129 113 115 94
 
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.96925610.61770
20.93966610.29350
30.911079.98030
40.8889579.7380
50.8588789.40850
60.8336759.13240
70.8176628.9570
80.8074638.84530
90.7931568.68860
100.7806428.55150
110.7704018.43930
120.7571198.29380
130.7203687.89120
140.6848537.50220
150.6532817.15630
160.6262236.85990
170.5925196.49070
180.5623046.15970
190.5409715.9260
200.5259915.76190
210.5089225.5750
220.4930315.40090
230.4814945.27450
240.4685725.1331e-06
250.4346384.76123e-06
260.4009134.39181.2e-05
270.368834.04034.7e-05
280.339093.71450.000155
290.3018243.30630.000624
300.2680082.93590.001994
310.2429532.66140.004423
320.2244922.45920.007676
330.2056122.25240.013059
340.1880752.06030.020768
350.1770481.93950.027396
360.1640811.79740.037392
370.1338821.46660.07255
380.1022011.11960.132569
390.0741550.81230.209106
400.0459230.50310.30792
410.0132240.14490.44253
42-0.017423-0.19090.424479
43-0.038794-0.4250.33581
44-0.055701-0.61020.271452
45-0.07414-0.81220.209152
46-0.090209-0.98820.162524
47-0.100305-1.09880.137031
48-0.110309-1.20840.11464


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96925610.61770
20.0034530.03780.484946
30.0015240.01670.493354
40.0926971.01540.155967
5-0.140377-1.53780.063371
60.0668530.73230.232694
70.1505211.64890.050894
80.0674170.73850.230821
9-0.037766-0.41370.339913
100.0380120.41640.338931
110.0182530.19990.420929
12-0.06626-0.72580.234675
13-0.363781-3.9855.8e-05
140.0025450.02790.488901
150.0349330.38270.351321
160.0021420.02350.49066
17-0.040127-0.43960.330522
18-0.009833-0.10770.457202
190.0390320.42760.334864
200.0391990.42940.334202
210.0164390.18010.428695
220.0183210.20070.420637
230.0438310.48010.315999
240.0067430.07390.470622
25-0.23425-2.56610.005758
26-0.021839-0.23920.405667
27-0.03395-0.37190.355309
28-0.052335-0.57330.283758
29-0.042542-0.4660.321021
30-0.011989-0.13130.447868
310.0089180.09770.46117
320.0061420.06730.473236
330.0239580.26240.396713
340.0089740.09830.460926
350.0547380.59960.274944
36-0.002964-0.03250.487077
37-0.125313-1.37270.086198
38-0.034446-0.37730.353296
390.0154560.16930.432917
40-0.070686-0.77430.220132
410.0190340.20850.417591
42-0.019353-0.2120.416233
43-0.005318-0.05830.476821
44-0.035179-0.38540.350324
45-0.045457-0.4980.309713
460.0238410.26120.397204
470.0020360.02230.491122
480.0322520.35330.36224
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/01/t1277998115mbcsx22s4tbcers/1zogh1277998095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/01/t1277998115mbcsx22s4tbcers/1zogh1277998095.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/01/t1277998115mbcsx22s4tbcers/2zogh1277998095.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/01/t1277998115mbcsx22s4tbcers/2zogh1277998095.ps (open in new window)


 
Parameters (Session):
par1 = grey ;
 
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