Home » date » 2010 » Aug » 16 »

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: Mon, 16 Aug 2010 10:42:23 +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/16/t12819556194klwrzx4josi4b1.htm/, Retrieved Mon, 16 Aug 2010 12:46:59 +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/16/t12819556194klwrzx4josi4b1.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:
Magali De Reu
 
Dataseries X:
» Textbox « » Textfile « » CSV «
333 332 331 329 349 348 333 323 324 324 325 327 329 333 329 333 355 358 338 326 320 322 322 324 326 330 331 333 364 363 341 327 313 321 312 312 312 314 312 319 356 351 329 313 298 303 278 275 276 276 273 287 320 313 281 266 258 259 237 231 237 236 229 243 271 262 227 208 212 222 200 193 204 203 190 209 240 234 210 195 202 204 180 169 178 181 163 174 194 187 160 143 151 154 141 127 134 138 120 129 151 152 124 99 104 109 96 87 94 89 63 76 100 104 80 55 60 71 62 61
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.96769810.60060
20.93007310.18840
30.905139.91520
40.8824539.66680
50.8502989.31460
60.8217049.00130
70.8082958.85440
80.7953488.71260
90.7716728.45320
100.7488568.20330
110.7408078.11510
120.7283257.97840
130.6929577.5910
140.6535897.15970
150.626446.86230
160.6017246.59160
170.5678026.220
180.536955.8820
190.5216295.71420
200.5083855.56910
210.486135.32530
220.4646125.08961e-06
230.4554394.98911e-06
240.4408564.82932e-06
250.4065944.4541e-05
260.3695614.04834.6e-05
270.3430733.75820.000133
280.3194193.49910.000328
290.2856483.12910.001101
300.2536362.77840.003171
310.2359592.58480.00547
320.2225272.43770.008124
330.2021812.21480.014331
340.181351.98660.024623
350.1726811.89160.030476
360.1591521.74340.041911
370.1287771.41070.080462
380.0961021.05270.147288
390.0749250.82080.206705
400.0560280.61380.27027
410.0274160.30030.382223
420.0007150.00780.496884
43-0.013968-0.1530.439324
44-0.0248-0.27170.393171
45-0.043437-0.47580.317531
46-0.063876-0.69970.242728
47-0.072931-0.79890.212957
48-0.085753-0.93940.174711


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96769810.60060
2-0.100154-1.09710.13739
30.1887642.06780.020404
4-0.014536-0.15920.436877
5-0.130492-1.42950.077734
60.0776230.85030.198421
70.1719451.88360.031022
8-0.026555-0.29090.385815
9-0.09388-1.02840.152913
100.0250520.27440.392114
110.1501261.64450.05134
12-0.100281-1.09850.137086
13-0.269602-2.95330.001892
14-0.056633-0.62040.268091
150.0472530.51760.302834
160.0128330.14060.444218
17-0.044404-0.48640.313777
180.0047650.05220.479229
190.0782410.85710.196553
200.016720.18320.42749
21-6.4e-05-7e-040.499719
22-0.003713-0.04070.48381
230.037050.40590.342781
24-0.084398-0.92450.178532
25-0.138927-1.52190.065336
26-0.026893-0.29460.384406
27-0.009145-0.10020.460184
280.0141240.15470.438652
29-0.06122-0.67060.251872
30-0.028685-0.31420.376947
310.0349060.38240.351428
320.0413050.45250.325872
330.0249680.27350.392465
34-0.037791-0.4140.339812
350.0370980.40640.34259
36-0.060101-0.65840.255779
37-0.071341-0.78150.218022
38-0.008562-0.09380.462715
390.0096110.10530.458164
40-0.011543-0.12640.449796
41-0.039438-0.4320.333251
42-0.007979-0.08740.465247
43-0.011355-0.12440.450608
440.0079550.08710.465351
45-0.013356-0.14630.441962
46-0.062708-0.68690.246724
470.0250080.27390.392297
48-0.044073-0.48280.315058
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819556194klwrzx4josi4b1/1k87q1281955336.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819556194klwrzx4josi4b1/1k87q1281955336.ps (open in new window)


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