Home » date » 2010 » May » 03 »

Melino Olivini - IKO - Opgave 6bis - oefening 2b

*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 16:13:15 +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/t1272903252mlfnyu8bzu11aul.htm/, Retrieved Mon, 03 May 2010 18:14:12 +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/t1272903252mlfnyu8bzu11aul.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 «
5221.3 5115.9 5107.4 5202.1 5307.5 5266.1 5329.8 5263.4 5177.1 5204.9 5185.2 5189.8 5253.8 5372.3 5478.4 5590.5 5699.8 5797.9 5854.3 5902.4 5956.9 6007.8 6101.7 6148.6 6207.4 6232 6291.7 6323.4 6365 6435 6493.4 6606.8 6639.1 6723.5 6759.4 6848.6 6918.1 6963.5 7013.1 7030.9 7112.1 7130.3 7130.8 7076.9 7040.8 7086.5 7120.7 7154.1 7228.2 7297.9 7369.5 7450.7 7459.7 7497.5 7536 7637.4 7715.1 7815.7 7859.5 7951.6 7973.7 7988 8053.1 8112 8169.2 8303.1 8372.7 8470.6 8536.1 8665.8 8773.7 8838.4 8936.2 8995.3 9098.9 9237.1 9315.5 9392.6 9502.2 9671.1 9695.6 9847.9 9836.6 9887.7 9875.6 9905.9 9871.1 9910 9977.3 10031.6 10090.7 10095.8 10126 10212.7 10398.7 10467 10543.6 10634.2 10728.7 10796.4 10875.8 10946.1 11050 11086.1 11217.3 11291.7 11314.1 11356.4 11357.8 11491.4 11625.7 11620.7
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2765412.91350.002161
20.2448762.57990.005594
30.113591.19670.116979
40.1161351.22360.111855
50.0329780.34740.364456
60.0739240.77880.218865
7-0.002949-0.03110.487633
8-0.075433-0.79470.214233
90.0471710.4970.310096
10-0.004736-0.04990.480147
11-0.075488-0.79530.214064
12-0.165988-1.74880.041545
13-0.103074-1.0860.139927
14-0.097961-1.03210.152137
15-0.012155-0.12810.449166
160.0551120.58060.281329
17-0.026104-0.2750.391907
180.0070550.07430.47044
190.0699340.73680.2314
200.0491860.51820.302672
21-0.060222-0.63450.263538
220.014270.15030.440383
23-0.036754-0.38720.349664
240.0317710.33470.369229
25-0.01668-0.17570.43041
26-0.043546-0.45880.323641
27-0.09882-1.04110.150039
28-0.07941-0.83660.202297
29-0.036708-0.38670.349843
30-0.078973-0.8320.203589
310.0119150.12550.450165
32-0.002279-0.0240.490442
330.0181080.19080.424524
340.0712150.75030.227332
350.0812160.85570.197014
360.0471320.49660.310239
370.051420.54170.294539
380.0391420.41240.340427
390.0921040.97040.166984
400.0486040.51210.304808
410.0970421.02240.154406
420.1156361.21830.112846
430.1430881.50750.067259
440.0588560.62010.268237
450.0970081.0220.15449
460.0084240.08880.464718
47-0.006559-0.06910.472517
480.0114580.12070.452065


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2765412.91350.002161
20.1823461.92110.02864
30.0087290.0920.463447
40.0493410.51980.302106
5-0.028738-0.30280.381314
60.0455990.48040.315937
7-0.038373-0.40430.343391
8-0.103581-1.09130.138754
90.103331.08870.139333
10-0.008935-0.09410.462586
11-0.101178-1.0660.144374
12-0.141658-1.49250.069207
13-0.015489-0.16320.435336
140.0099870.10520.458194
150.0469020.49410.311092
160.0938520.98880.162458
17-0.040168-0.42320.336485
180.0051460.05420.478431
190.0637470.67160.251611
20-0.004239-0.04470.482231
21-0.097641-1.02870.152926
220.0257290.27110.39342
23-0.024663-0.25980.397736
240.0317650.33470.369254
25-0.070526-0.7430.229516
26-0.067781-0.71410.238328
27-0.028625-0.30160.381769
28-0.024413-0.25720.398748
290.0135060.14230.443552
30-0.025727-0.27110.393427
310.0836230.8810.190103
320.0321660.33890.367665
33-0.011545-0.12160.451704
340.0656640.69180.245251
350.0166150.1750.430681
360.0208060.21920.413447
370.0204080.2150.415076
38-0.049453-0.5210.301697
390.0664770.70040.242577
40-0.030124-0.31740.375776
410.0530850.55930.288546
420.0912730.96160.169165
430.0915540.96460.168425
44-0.03054-0.32180.374121
450.0654690.68980.245894
46-0.017256-0.18180.428036
47-0.030373-0.320.374786
480.0132880.140.444459
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272903252mlfnyu8bzu11aul/19rlq1272903192.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272903252mlfnyu8bzu11aul/19rlq1272903192.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t1272903252mlfnyu8bzu11aul/29rlq1272903192.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272903252mlfnyu8bzu11aul/29rlq1272903192.ps (open in new window)


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