Home » date » 2010 » Aug » 19 »

tijdreeks 1- stap 20

*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, 19 Aug 2010 19:00:00 +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/19/t12822452970u554jjvlr715sy.htm/, Retrieved Thu, 19 Aug 2010 21:14:58 +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/19/t12822452970u554jjvlr715sy.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:
Aerts Ellen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
25 24 23 21 41 40 25 15 16 16 17 19 18 19 20 21 46 47 30 16 15 18 30 31 32 36 30 31 61 57 45 33 31 36 46 49 34 40 41 48 75 77 71 54 50 56 66 66 48 63 71 70 88 92 91 80 81 81 98 106 85 93 96 92 115 109 119 107 107 106 132 143 120 123 132 136 158 151 155 138 143 139 168 182 154 158 167 170 197 190 196 174 180 171 200 215 184 186 197 186 211 205 218 199 213 207 236 248 211 220 235 223 245 236 253 246 255 248 274 288
 
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.8796619.14170
20.7666557.96730
30.6882717.15270
40.6398276.64930
50.5960056.19390
60.5652065.87380
70.5398725.61050
80.518325.38650
90.46924.87612e-06
100.4279624.44751.1e-05
110.4121124.28282e-05
120.3964754.12033.7e-05
130.3798513.94757e-05
140.3795813.94477.1e-05
150.3745483.89248.6e-05
160.3725763.87199.3e-05
170.3676433.82070.000111
180.3188073.31310.000628
190.2967323.08370.001298
200.2951373.06720.001366
210.2927413.04230.001474
220.2604712.70690.003948
230.2302162.39250.009231
240.243732.53290.006374
250.2328482.41980.008599
260.2134752.21850.014307
270.1983882.06170.020818
280.1817571.88890.030796
290.1537861.59820.056461
300.1268951.31870.095023
310.1362631.41610.079814
320.1374171.42810.078077
330.1286821.33730.091967
340.1117261.16110.124082
350.077960.81020.209808
360.0447170.46470.321537
37-0.008431-0.08760.465173
38-0.031215-0.32440.373134
39-0.036459-0.37890.352754
40-0.064225-0.66740.252957
41-0.09764-1.01470.156258
42-0.11753-1.22140.112297
43-0.136995-1.42370.078709
44-0.14687-1.52630.064927
45-0.149988-1.55870.060994
46-0.167579-1.74150.042219
47-0.162246-1.68610.047331
48-0.149328-1.55190.061811


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8796619.14170
2-0.031605-0.32840.371604
30.0901080.93640.17557
40.0934280.97090.166875
50.0163330.16970.432767
60.0678010.70460.241285
70.0350350.36410.358249
80.0329630.34260.366299
9-0.104564-1.08670.139802
100.0231820.24090.405041
110.0790170.82120.20668
12-0.013352-0.13880.444951
130.0202870.21080.416708
140.082050.85270.197859
15-0.006551-0.06810.472925
160.0461360.47950.316291
170.028130.29230.385294
18-0.190566-1.98040.0251
190.0912310.94810.172596
200.0552060.57370.283676
21-0.01172-0.12180.451641
22-0.120986-1.25730.105674
230.0024510.02550.489861
240.1818771.89010.030711
25-0.141412-1.46960.072289
260.0457210.47510.317823
27-0.003434-0.03570.485801
28-0.094094-0.97790.165166
29-0.017227-0.1790.429125
300.0100050.1040.458692
310.1076081.11830.132962
32-0.104659-1.08760.139587
330.0310710.32290.3737
340.0016130.01680.493326
35-0.138441-1.43870.07656
36-0.020826-0.21640.414529
37-0.142393-1.47980.07092
380.0632870.65770.256065
390.0499220.51880.302478
40-0.159478-1.65730.050177
41-0.092305-0.95930.169785
420.0916440.95240.171513
43-0.002967-0.03080.48773
44-0.000478-0.0050.498021
45-0.016862-0.17520.43061
46-0.059024-0.61340.270452
470.1091971.13480.129485
48-0.058841-0.61150.27108
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822452970u554jjvlr715sy/1nv4j1282244398.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822452970u554jjvlr715sy/1nv4j1282244398.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t12822452970u554jjvlr715sy/2nv4j1282244398.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822452970u554jjvlr715sy/2nv4j1282244398.ps (open in new window)


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