Home » date » 2010 » Dec » 29 »

eigen reeks (opgave 6 bis)

*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, 29 Dec 2010 13:42: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/Dec/29/t1293630312lwg05ovcffgbvii.htm/, Retrieved Wed, 29 Dec 2010 14:45:17 +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/29/t1293630312lwg05ovcffgbvii.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 «
98.4 96.5 97.4 99.2 100.8 101.8 102.7 100 100.8 101.7 99 101.7 100.2 101.2 99.5 100.8 100.7 99.5 99.4 101.1 97.2 98.1 97.8 95.5 96.3 93.6 96.7 95.1 97.7 96.5 98.1 97.3 97 93.7 95.6 94.6 95.1 94.5 93.6 92.1 95.9 98.1 98.2 96.2 94.1 95 93.4 95.4 93.5 94.5 94.3 95.7 98.4 99.4 99.2 99 99.4 99.3 98.6 98.7 96 98.7 100.1 100 101.5 101.5 103.8 104.1 101 104.9 104.4 105.6 103.4 101.7 103.5 101.2 105.4 105.4 108.6 110.6 110.2 106.2 108.6 107.5 106.9 108.4 109.9 108.6 106.5 105.7 105.6 104.2 105.1 102.7 108.3 104.2 105.4 104.6 106.4 111 111.7 113.8 115.9 117.3 113.6 113.6 114.6 113.2 112.8 109.6 111.1 109.7 113 111 113.3 111.8 107.2 106.4 110 108.2
 
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
1-0.313743-3.42250.000426
20.1675721.8280.035027
3-0.143015-1.56010.060695
40.0195110.21280.415908
5-0.043083-0.470.319616
6-0.054677-0.59650.276001
70.013390.14610.442057
8-0.001854-0.02020.491949
9-0.01497-0.16330.435277
10-0.047578-0.5190.302355
11-0.037376-0.40770.342103
120.0738550.80570.211023
130.0783510.85470.197214
14-0.099008-1.08010.141151
150.0407190.44420.328857
160.0684720.74690.228285
17-0.089076-0.97170.166585
18-0.043996-0.47990.316074
19-0.093625-1.02130.154586
200.021270.2320.408456
210.0566390.61790.268926
22-0.069606-0.75930.224583
230.102591.11910.13267
240.0628770.68590.247052
250.0750030.81820.207444
26-0.046025-0.50210.308273
27-0.00688-0.07510.470148
28-0.00651-0.0710.471754
290.0110850.12090.451979
30-0.036213-0.3950.346763
31-0.115995-1.26540.104108
320.0502290.54790.292382
33-0.01563-0.17050.432452
34-0.050816-0.55430.290196
350.0369290.40280.343893
360.1309071.4280.077951
37-0.01288-0.14050.444252
380.0413740.45130.326286
39-0.072132-0.78690.216462
40-0.06346-0.69230.245059
41-0.023263-0.25380.400057
42-0.02826-0.30830.379206
430.0029850.03260.487038
44-0.031397-0.34250.366288
450.039780.43390.332556
46-0.065286-0.71220.23887
47-0.011174-0.12190.451594
480.1163221.26890.103472


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.313743-3.42250.000426
20.0766860.83650.202262
3-0.078562-0.8570.19658
4-0.061457-0.67040.251946
5-0.036584-0.39910.345274
6-0.091507-0.99820.160099
7-0.030014-0.32740.371964
82.6e-053e-040.499887
9-0.037554-0.40970.341393
10-0.078886-0.86050.19561
11-0.084429-0.9210.179453
120.0443190.48350.314829
130.1229161.34090.091261
14-0.085907-0.93710.175295
15-0.035862-0.39120.348171
160.1200341.30940.096459
17-0.064034-0.69850.243106
18-0.112099-1.22290.111899
19-0.112186-1.22380.111721
20-0.061072-0.66620.253281
210.0636060.69390.244563
22-0.055509-0.60550.272989
230.0427750.46660.320811
240.1318821.43870.076436
250.0876450.95610.170483
260.0119580.13040.448216
270.0070840.07730.469266
28-0.043521-0.47480.317916
290.0029860.03260.487035
300.0273320.29820.383053
31-0.142524-1.55480.06133
32-0.021399-0.23340.407913
330.03030.33050.37079
34-0.063249-0.690.24578
350.041110.44850.327319
360.123231.34430.090708
37-0.016027-0.17480.430752
380.0520410.56770.285656
39-0.035836-0.39090.348275
40-0.155149-1.69250.046586
41-0.06483-0.70720.240407
42-0.016765-0.18290.427599
430.03620.39490.346814
44-0.016218-0.17690.429935
45-0.052467-0.57240.284082
46-0.027077-0.29540.384109
47-0.016384-0.17870.429228
480.0234320.25560.399345
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630312lwg05ovcffgbvii/1hsxq1293630118.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630312lwg05ovcffgbvii/1hsxq1293630118.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630312lwg05ovcffgbvii/2aket1293630118.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630312lwg05ovcffgbvii/2aket1293630118.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630312lwg05ovcffgbvii/3aket1293630118.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630312lwg05ovcffgbvii/3aket1293630118.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 (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