Home » date » 2011 » May » 09 »

Opgave 6 BIS: Eigen reeks

*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, 09 May 2011 14:40:28 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/09/t13049518536tvtcu3knj3v5r8.htm/, Retrieved Mon, 09 May 2011 16:37:35 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
190,2 180,7 193,6 192,8 195,5 197,2 196,9 178,9 172,4 156,4 143,7 153,6 168,8 185,8 199,9 205,4 197,5 199,6 200,5 193,7 179,6 169,1 169,8 195,5 194,8 204,5 203,8 204,8 204,9 240 248,3 258,4 254,9 288,3 333,6 346,3 357,5 490,7 468,2 471,2 517,1 609,2 682 614 554,2 406,8 348,6 298,8 313,7 282,1 232,9 239,3 241,9 265,7 276 271,5 254,6 269,9 293,5 306,1 365,4 347,9 352,1 377,9 377,4 372,2 362,5 341,9 354,8 369,2 406,7 454,7
 
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'Gwilym Jenkins' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.93777.95660
20.8479627.19520
30.7485356.35150
40.6514435.52770
50.5556674.7156e-06
60.4518783.83430.000134
70.3489882.96130.002074
80.2444872.07450.020802
90.1589791.3490.090785
100.0932450.79120.215709
110.0419050.35560.3616
12-0.014732-0.1250.450435
13-0.057945-0.49170.312222
14-0.08201-0.69590.244373
15-0.08946-0.75910.225138
16-0.077928-0.66120.255285
17-0.063089-0.53530.297036
18-0.048931-0.41520.339616
19-0.038024-0.32260.37395
20-0.026753-0.2270.410532
21-0.014064-0.11930.452672
220.0007920.00670.497328
230.0075950.06440.474398
240.0023250.01970.492156
250.0033560.02850.48868
260.0044190.03750.485097
27-0.000167-0.00140.499437
28-0.025061-0.21270.4161
29-0.06219-0.52770.299666
30-0.119058-1.01020.157881
31-0.166219-1.41040.081362
32-0.1988-1.68690.047978
33-0.217048-1.84170.034818
34-0.228468-1.93860.028234
35-0.243618-2.06720.021157
36-0.24158-2.04990.02201
37-0.24104-2.04530.022241
38-0.232507-1.97290.026174
39-0.222486-1.88790.031537
40-0.208776-1.77150.040352
41-0.194667-1.65180.051465
42-0.170474-1.44650.076185
43-0.139568-1.18430.1201
44-0.108517-0.92080.180116
45-0.082673-0.70150.242625
46-0.07227-0.61320.270829
47-0.070546-0.59860.275658
48-0.073643-0.62490.267011


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.93777.95660
2-0.259438-2.20140.015457
3-0.085369-0.72440.23559
4-0.012754-0.10820.457062
5-0.057903-0.49130.312347
6-0.140501-1.19220.118551
7-0.034895-0.29610.384007
8-0.091306-0.77480.22051
90.0878220.74520.229291
100.0425360.36090.359604
11-0.00135-0.01150.495447
12-0.152639-1.29520.099697
130.0979870.83140.204235
140.0618450.52480.300678
150.0221890.18830.425592
160.0656940.55740.28948
17-0.020951-0.17780.4297
18-0.035191-0.29860.383049
19-0.005323-0.04520.48205
20-0.031214-0.26490.395936
21-0.020793-0.17640.430225
220.0389390.33040.371024
23-0.038201-0.32410.373383
24-0.071934-0.61040.271765
250.1130130.95890.170397
26-0.016088-0.13650.4459
27-0.0925-0.78490.217547
28-0.141023-1.19660.11769
29-0.031735-0.26930.394243
30-0.184128-1.56240.061292
310.1362991.15650.125642
320.0281840.23920.405833
330.0389870.33080.370871
340.0177820.15090.440243
35-0.020828-0.17670.430107
360.0354530.30080.382206
37-0.109405-0.92830.178168
38-0.007909-0.06710.473341
39-0.035229-0.29890.382927
400.0365570.31020.378653
410.0059050.05010.48009
420.0520510.44170.330026
43-0.043284-0.36730.357246
440.0045140.03830.484776
45-0.067147-0.56980.285307
46-0.055495-0.47090.31957
47-0.057715-0.48970.312908
480.0179850.15260.439568
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/09/t13049518536tvtcu3knj3v5r8/19olu1304952025.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/09/t13049518536tvtcu3knj3v5r8/19olu1304952025.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/09/t13049518536tvtcu3knj3v5r8/2hzsk1304952025.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/09/t13049518536tvtcu3knj3v5r8/2hzsk1304952025.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/09/t13049518536tvtcu3knj3v5r8/3ipwq1304952025.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/09/t13049518536tvtcu3knj3v5r8/3ipwq1304952025.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