Home » date » 2010 » Dec » 31 »

oefening 6bis eigenreeks

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 31 Dec 2010 15:11:08 +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/Dec/31/t12938082180130ov1jpp2i0q1.htm/, Retrieved Fri, 31 Dec 2010 16:10:20 +0100
 
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/Dec/31/t12938082180130ov1jpp2i0q1.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
17,88 18,11 18,16 18,27 18,29 18,35 18,35 18,38 18,41 18,41 18,42 18,43 18,48 18,54 18,65 18,66 18,69 18,72 18,72 18,73 18,84 18,83 18,91 18,91 18,94 18,97 19 19,08 19,18 19,24 19,23 19,25 19,3 19,33 19,35 19,35 19,31 19,47 19,7 19,76 19,9 19,97 20,1 20,26 20,44 20,43 20,57 20,6 20,69 20,93 20,98 21,11 21,14 21,16 21,32 21,32 21,48 21,58 21,74 21,75 21,81 21,89 22,21 22,37 22,47 22,51 22,55 22,61 22,58 22,85 22,93 22,98 23,01 23,11 23,18 23,18 23,21 23,22 23,12 23,15 23,16 23,21 23,21 23,22
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9715248.90420
20.9439138.65110
30.9151938.38790
40.8867968.12760
50.8573317.85760
60.8272177.58160
70.7945237.28190
80.7606996.97190
90.7261386.65520
100.690366.32730
110.6541885.99570
120.6176185.66060
130.5804165.31960
140.5428974.97572e-06
150.5060984.63856e-06
160.471074.31742.1e-05
170.4349333.98627.1e-05
180.3987063.65420.000224
190.3616453.31450.000678
200.3238992.96860.001949
210.2870422.63080.005066
220.2507162.29780.012028
230.2176541.99480.024652
240.1843681.68980.047391
250.1509131.38310.085143
260.1167131.06970.143912
270.0835440.76570.223003
280.0513460.47060.319575
290.0211510.19390.42338
30-0.009261-0.08490.466279
31-0.038877-0.35630.361249
32-0.06886-0.63110.26484
33-0.098801-0.90550.183888
34-0.127637-1.16980.122693
35-0.156384-1.43330.077745
36-0.183301-1.680.048338
37-0.21045-1.92880.028566
38-0.236484-2.16740.016517
39-0.259316-2.37670.009871
40-0.28217-2.58610.005715
41-0.302245-2.77010.003448
42-0.320556-2.93790.002132
43-0.336953-3.08820.001364
44-0.351643-3.22290.000904
45-0.363541-3.33190.000642
46-0.375361-3.44020.000454
47-0.383807-3.51760.000353
48-0.390723-3.5810.000286


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9715248.90420
20.0009550.00870.49652
3-0.033711-0.3090.379057
4-0.009841-0.09020.464173
5-0.033564-0.30760.379568
6-0.028211-0.25860.398304
7-0.062234-0.57040.284971
8-0.039832-0.36510.357989
9-0.03156-0.28930.38655
10-0.042052-0.38540.350454
11-0.02757-0.25270.400565
12-0.027471-0.25180.400916
13-0.031883-0.29220.385422
14-0.027261-0.24990.401654
15-0.009556-0.08760.465209
160.010480.0960.461856
17-0.041076-0.37650.353758
18-0.026681-0.24450.403708
19-0.038633-0.35410.362083
20-0.040693-0.3730.35506
21-0.013344-0.12230.451476
22-0.020908-0.19160.42425
230.0306210.28070.389834
24-0.028445-0.26070.397479
25-0.032548-0.29830.383102
26-0.040101-0.36750.357072
27-0.014895-0.13650.44587
28-0.013662-0.12520.450328
290.0015070.01380.494506
30-0.033141-0.30370.381038
31-0.017739-0.16260.435619
32-0.039694-0.36380.358462
33-0.035539-0.32570.372724
34-0.017089-0.15660.437958
35-0.035876-0.32880.37156
36-0.002144-0.01970.492184
37-0.036983-0.3390.367744
38-0.014007-0.12840.449079
390.0214140.19630.42244
40-0.036578-0.33520.369138
410.0125420.11490.454381
429.1e-058e-040.499667
430.0036570.03350.486671
440.0021550.01980.492143
450.0165720.15190.439821
46-0.029358-0.26910.394268
470.0227160.20820.417791
48-0.004173-0.03820.484792
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/31/t12938082180130ov1jpp2i0q1/1gebr1293808261.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t12938082180130ov1jpp2i0q1/1gebr1293808261.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t12938082180130ov1jpp2i0q1/2thc01293808261.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t12938082180130ov1jpp2i0q1/2thc01293808261.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t12938082180130ov1jpp2i0q1/3eaa21293808261.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t12938082180130ov1jpp2i0q1/3eaa21293808261.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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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