Home » date » 2010 » Apr » 28 »

Opgave 6Bis - Oef 2 - Kelly Janbroers

*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, 28 Apr 2010 19:54:51 +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/Apr/28/t1272484537x34vr5si9bcc10k.htm/, Retrieved Wed, 28 Apr 2010 21:55:40 +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/Apr/28/t1272484537x34vr5si9bcc10k.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 «
18450 21845 26488 22394 28057 25451 24872 33424 24052 28449 33533 37351 19969 21701 26249 24493 24603 26485 30723 34569 26689 26157 32064 38870 21337 19419 23166 28286 24570 24001 33151 24878 26804 28967 33311 40226 20504 23060 23562 27562 23940 24584 34303 25517 23494 29095 32903 34379 16991 21109 23740 25552 21752 20294 29009 25500 24166 26960 31222 38641 14672 17543 25453 32683 22449 22316 27595 25451 25421 25288 32568 35110 16052 22146 21198 19543 22084 23816 29961 26773 26635 26972 30207 38687 16974 21697 24179 23757 25013 24019 30345 24488 25156 25650 30923 37240 17466 19463 24352 26805 25236 24735 29356 31234 22724 28496 32857 37198
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1325871.37790.085543
2-0.236193-2.45460.007851
3-0.077444-0.80480.211344
40.1518431.5780.058745
50.0075140.07810.468952
6-0.402292-4.18073e-05
7-0.007994-0.08310.466974
80.1176041.22220.112151
9-0.114417-1.18910.118513
10-0.254409-2.64390.004708
110.0513510.53370.297337
120.7556887.85330
130.1127711.1720.121897
14-0.207862-2.16020.016485
15-0.089601-0.93120.176923
160.1261031.31050.096404
17-0.010244-0.10650.457709
18-0.374805-3.89518.5e-05
19-0.036553-0.37990.352395
200.0868020.90210.184512
21-0.121584-1.26350.104559
22-0.210692-2.18960.015353
230.0853430.88690.18855
240.6361876.61140
250.0894750.92980.177261
26-0.165174-1.71650.044465
27-0.083695-0.86980.193173
280.1279781.330.093163
29-0.038905-0.40430.343393
30-0.347141-3.60760.000235
31-0.024271-0.25220.400671
320.0653630.67930.24921
33-0.153785-1.59820.056463
34-0.268447-2.78980.003118
350.0528360.54910.292038
360.5297655.50550
370.0394860.41040.34118
38-0.168781-1.7540.041131
39-0.090816-0.94380.173693
400.1153221.19850.11668
41-0.054147-0.56270.287398
42-0.323845-3.36550.000529
43-0.022585-0.23470.40744
440.1014911.05470.146953
45-0.107309-1.11520.133623
46-0.197499-2.05250.021271
470.0313280.32560.372689
480.4432734.60666e-06
490.0644680.670.252152
50-0.127423-1.32420.094114
51-0.079823-0.82950.204313
520.0828150.86060.195673
53-0.017307-0.17990.428801
54-0.22342-2.32190.011059
55-0.052498-0.54560.29324
560.0181330.18840.425443
57-0.094886-0.98610.163147
58-0.152261-1.58230.058248
590.0298620.31030.378452
600.3472583.60880.000234


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1325871.37790.085543
2-0.258313-2.68450.004205
3-0.004133-0.0430.482908
40.1138461.18310.119679
5-0.061811-0.64240.261002
6-0.370573-3.85111e-04
70.1470011.52770.064758
8-0.093838-0.97520.165822
9-0.19576-2.03440.022181
10-0.139317-1.44780.075281
110.0877880.91230.181817
120.6684956.94720
13-0.11522-1.19740.116885
140.0226050.23490.407357
15-0.125264-1.30180.09788
16-0.072336-0.75170.226922
17-0.087266-0.90690.183239
180.0002910.0030.498796
19-0.068266-0.70940.23979
20-0.016402-0.17050.432484
21-0.026785-0.27840.390634
220.0945470.98260.164011
230.154761.60830.055343
240.0848520.88180.189921
25-0.073902-0.7680.222079
260.0035620.0370.485269
27-0.106529-1.10710.13536
280.0264490.27490.391972
29-0.099739-1.03650.151137
30-0.00801-0.08320.466908
310.0316390.32880.371471
320.0167190.17370.431196
33-0.058138-0.60420.273492
34-0.157773-1.63960.051996
35-0.086918-0.90330.184194
36-0.046377-0.4820.315404
37-0.087028-0.90440.183892
38-0.055235-0.5740.283574
39-0.05949-0.61820.268859
40-0.060306-0.62670.266084
410.0031880.03310.486817
42-0.011482-0.11930.452618
43-0.060351-0.62720.26593
440.0575330.59790.27558
45-0.014606-0.15180.439818
460.1457321.51450.066411
47-0.132617-1.37820.085496
48-0.056499-0.58720.279161
490.0057310.05960.47631
500.0047150.0490.480503
51-0.034482-0.35830.360392
52-0.073378-0.76260.223691
530.0432230.44920.3271
540.1294241.3450.09072
55-0.082502-0.85740.196564
56-0.186334-1.93640.027713
57-0.005934-0.06170.47547
58-0.090397-0.93940.174803
590.0546630.56810.285583
60-0.000272-0.00280.498876
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Apr/28/t1272484537x34vr5si9bcc10k/1djsf1272484488.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/28/t1272484537x34vr5si9bcc10k/1djsf1272484488.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Apr/28/t1272484537x34vr5si9bcc10k/2djsf1272484488.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/28/t1272484537x34vr5si9bcc10k/2djsf1272484488.ps (open in new window)


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