Home » date » 2010 » May » 03 »

opgave6bisoef2

*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, 03 May 2010 20:20:37 +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/May/03/t127291814068vwx04l8a4w42r.htm/, Retrieved Mon, 03 May 2010 22:22:20 +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/May/03/t127291814068vwx04l8a4w42r.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
196.9 192.1 201.8 186.9 218 214.4 227.5 204.1 225.8 223.7 244.7 243.9 257.3 234.5 251.4 243.8 247.4 245.3 262.5 270 259.9 262.2 244.9 249.3 268.2 231.2 264.3 252.7 275.5 261.5 275.5 272.3 268.6 270.4 267.7 275 272.6 248.6 279.4 270.5 292.8 297.8 296.8 290.9 282.8 312.8 303.2 301.4 289.8 279.6 302.2 299.1 319.7 310.9 315.2 338.5 315.6 321.2 318.5 342.7 261.4 287 331.5 326.9 338.6 337 358.4 344.5 345.7 344.1 317.4 354.5 345.2 314.1 352.5 361.2 365.9 332.5 364 359.1 345.6 366.9 370.2 359.9 366.6 336.3 368.5 374.2 384.3 358.9 407.7 433.3 404.7 392.7 409.7 416.5 414.3 404.3 421.4 372.6 404.7 420.2 438.4 449.1 445.8 413.8 420.5 442.3 438.9 394.5 416.8 402.9 424.5 432.3 484.1 492.7 496.3 471.9 491.2 512.9 482.4 407.9 448.5 431.1 498.8 497.1 517.1 487.7 512.5 550.1 532.5 524.1 515.7 461 529.3 467.4 559.8 536.5 531.9 546.5 547.4 536.1 482.8 551 532.9 484.1 etc...
 
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.91874819.59760
20.89075419.00040
30.87103118.57970
40.85064518.14490
50.83452117.80090
60.80925717.2620
70.80981717.2740
80.79682216.99680
90.79543416.96720
100.80076517.08090
110.78794216.80740
120.80668717.20720
130.77561216.54440
140.76607516.34090
150.74752615.94530
160.73661715.71260
170.72905215.55120
180.70519215.04230
190.70385915.01380
200.6931914.78630
210.69040814.72690
220.68766814.66850
230.66324314.14750
240.68115314.52950
250.65569713.98650
260.65112513.8890
270.64138513.68120
280.63677813.58290
290.62718813.37840
300.60913512.99330
310.60194412.83990
320.58922712.56860
330.58882212.560
340.59139712.61490
350.57241112.20990
360.58582512.49610
370.56012911.9480
380.57075412.17460
390.55899611.92380
400.54199911.56120
410.53621911.43790
420.51992111.09030
430.51903111.07130
440.50214210.71110
450.50102110.68710
460.50585510.79030
470.49044210.46150
480.50829210.84220


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.91874819.59760
20.2992666.38360
30.1593313.39860.000368
40.0710091.51470.065276
50.0613681.3090.095594
6-0.031139-0.66420.253442
70.1521153.24470.000631
80.0226260.48260.314795
90.0999232.13140.016794
100.1216622.59510.00488
11-0.028053-0.59840.274935
120.1947964.15511.9e-05
13-0.194711-4.15332e-05
14-0.002677-0.05710.477244
15-0.076031-1.62180.052771
160.0343550.73280.232023
170.004830.1030.458994
18-0.041947-0.89480.185691
190.0228610.48760.313021
200.0038250.08160.467501
210.0329240.70230.24143
22-0.012029-0.25660.39881
23-0.094465-2.0150.022246
240.1414183.01650.00135
25-0.097764-2.08540.018796
260.0347590.74140.229404
270.0110460.23560.406921
280.0427110.91110.181372
29-0.060792-1.29670.097688
300.0094130.20080.420478
31-0.07026-1.49870.067324
320.0093990.20050.420597
330.0627641.33880.090652
340.0368690.78640.216011
35-0.011013-0.23490.407193
360.0618611.31950.093825
37-0.126222-2.69240.003678
380.132142.81860.002517
39-0.059922-1.27820.100918
40-0.079541-1.69670.045221
410.007280.15530.438331
420.001790.03820.484776
430.024940.5320.297494
44-0.028751-0.61330.269998
450.0326840.69720.243026
460.0104210.22230.412095
470.0263820.56270.286946
480.0586291.25060.105863
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t127291814068vwx04l8a4w42r/1wn5l1272918033.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t127291814068vwx04l8a4w42r/1wn5l1272918033.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t127291814068vwx04l8a4w42r/27xm61272918033.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t127291814068vwx04l8a4w42r/27xm61272918033.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