Home » date » 2010 » Jul » 07 »

Kelly Janbroers - 2de zit - Stap 20/A

*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, 07 Jul 2010 17:51:02 +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/07/t1278525063d3fhyzl31nh4kbf.htm/, Retrieved Wed, 07 Jul 2010 19:51:05 +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/07/t1278525063d3fhyzl31nh4kbf.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
33 32 31 29 49 48 33 23 24 24 25 27 24 21 15 21 49 48 35 36 51 50 61 63 61 62 58 65 93 94 86 88 102 107 121 127 125 128 117 127 160 162 153 160 177 178 196 212 212 211 204 216 248 250 240 249 275 277 286 302 290 290 277 285 311 300 291 299 332 337 343 360 353 351 341 348 381 358 353 358 399 409 407 419 418 421 414 424 463 437 430 436 474 489 482 492 502 500 493 504 538 516 502 501 541 571 559 569 576 573 562 570 597 573 562 556 600 630 624 634
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0202440.22080.412797
2-0.439239-4.79152e-06
3-0.171113-1.86660.032208
40.2051422.23780.013546
50.179141.95420.026513
6-0.233725-2.54960.006027
70.0846910.92390.178713
80.169241.84620.033675
9-0.148327-1.61810.054149
10-0.393618-4.29391.8e-05
11-0.010804-0.11790.45319
120.8349519.10820
130.0166320.18140.428166
14-0.424257-4.62815e-06
15-0.16159-1.76270.040255
160.1790831.95360.02655
170.2023292.20720.014611
18-0.206353-2.2510.013109
190.0095840.10450.458455
200.1368821.49320.069015
21-0.13074-1.42620.078214
22-0.309518-3.37640.000496
23-0.035268-0.38470.350563
240.6638377.24160
250.0276560.30170.381707
26-0.377162-4.11433.6e-05
27-0.138183-1.50740.067179
280.157591.71910.044098
290.2060782.24810.013207
30-0.176768-1.92830.028099
31-0.024506-0.26730.394838
320.083010.90550.183506
33-0.131335-1.43270.077283
34-0.222973-2.43230.008245
35-0.007564-0.08250.467189
360.5133795.60030
370.0197180.21510.41503
38-0.339463-3.70310.000162
39-0.101975-1.11240.1341
400.159281.73750.042439
410.1834042.00070.02385
42-0.140503-1.53270.064001
43-0.059599-0.65020.258424
440.0384080.4190.337992
45-0.118813-1.29610.098724
46-0.143534-1.56580.060029
470.0288260.31450.376863
480.3802244.14783.2e-05
49-0.009757-0.10640.457707
50-0.295508-3.22360.000817
51-0.06573-0.7170.237381
520.1822891.98850.024523
530.1663721.81490.036029
54-0.100603-1.09740.13733
55-0.058859-0.64210.261031
560.0290230.31660.376048
57-0.098354-1.07290.14274
58-0.094666-1.03270.151922
590.0617410.67350.250962
600.2735272.98380.001728


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0202440.22080.412797
2-0.439829-4.7982e-06
3-0.185317-2.02160.022732
40.011710.12770.449287
50.0444540.48490.314308
6-0.207707-2.26580.012635
70.2656462.89790.002237
80.0546840.59650.275975
9-0.144713-1.57860.058537
10-0.346878-3.7840.000122
11-0.106264-1.15920.124346
120.7327217.9930
13-0.100724-1.09880.137044
140.1237121.34950.089862
150.0574130.62630.266159
16-0.166795-1.81950.035673
17-0.093231-1.0170.155602
180.0369620.40320.34376
19-0.107452-1.17220.121737
20-0.010116-0.11040.456159
21-0.011665-0.12730.449477
220.1028431.12190.132085
23-0.070088-0.76460.22302
24-0.066552-0.7260.234634
250.052010.56740.285769
26-0.010087-0.110.456285
27-0.014474-0.15790.437405
280.0678060.73970.230475
29-0.032336-0.35270.362453
30-0.038161-0.41630.338976
310.0522920.57040.284728
32-0.153542-1.67490.048286
33-0.082545-0.90050.184848
340.0305020.33270.369958
350.1021261.11410.133749
36-0.050298-0.54870.292125
370.0618090.67430.250728
38-0.025421-0.27730.391011
39-0.033155-0.36170.359116
400.0031670.03460.486247
41-0.022885-0.24960.401647
420.0068520.07470.470271
43-0.096401-1.05160.147553
44-0.006146-0.0670.473331
450.0242880.2650.395752
46-0.028664-0.31270.377533
470.0491640.53630.296372
480.0027990.03050.487845
49-0.08448-0.92160.17931
500.0483490.52740.299438
51-0.057983-0.63250.264132
520.06820.7440.22918
530.039950.43580.331884
540.0751120.81940.207104
550.0717040.78220.217827
560.0727560.79370.214482
57-0.025494-0.27810.390706
58-0.005167-0.05640.477573
59-0.025259-0.27550.391688
60-0.057651-0.62890.26531
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525063d3fhyzl31nh4kbf/1o6va1278525059.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525063d3fhyzl31nh4kbf/1o6va1278525059.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525063d3fhyzl31nh4kbf/2o6va1278525059.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525063d3fhyzl31nh4kbf/2o6va1278525059.ps (open in new window)


 
Parameters (Session):
par1 = 0.1 ; par2 = 0.99 ; par3 = 0.01 ;
 
Parameters (R input):
par1 = 60 ; 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