Home » date » 2011 » Apr » 12 »

Opdracht 6BIS - eigencijferreeks - Sophie Van Landeghem

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 12 Apr 2011 17:48:23 +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/Apr/12/t1302630361grptssb1zpkt4vv.htm/, Retrieved Tue, 12 Apr 2011 19:46:05 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
126.304 125.511 125.495 130.133 126.257 110.323 98.417 105.749 120.665 124.075 127.245 146.731 144.979 148.210 144.670 142.970 142.524 146.142 146.522 148.128 148.798 150.181 152.388 155.694 160.662 155.520 158.262 154.338 158.196 160.371 154.856 150.636 145.899 141.242 140.834 141.119 139.104 134.437 129.425 123.155 119.273 120.472 121.523 121.983 123.658 124.794 124.827 120.382 117.395 115.790 114.283 117.271 117.448 118.764 120.550 123.554 125.412 124.182 119.828 115.361 114.226 115.214 115.864 114.276 113.469 114.883 114.172 111.225 112.149 115.618 118.002 121.382 120.663
 
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' @ 216.218.223.82


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9515728.13020
20.8740567.46790
30.796116.8020
40.7252026.19610
50.6544715.59180
60.5894715.03642e-06
70.5357124.57719e-06
80.4877324.16724.2e-05
90.435563.72140.000193
100.3755883.2090.00099
110.3100242.64880.004947
120.2458442.10050.01957
130.1827411.56130.061385
140.1176241.0050.159112
150.0620310.530.298862
160.00510.04360.482681
17-0.047495-0.40580.343041
18-0.097011-0.82890.204941
19-0.144684-1.23620.110178
20-0.185055-1.58110.059088
21-0.226681-1.93680.028322
22-0.265862-2.27150.013032
23-0.293966-2.51160.007114
24-0.307371-2.62620.005257
25-0.310816-2.65560.004857
26-0.316005-2.70.004307
27-0.320592-2.73910.003868
28-0.330955-2.82770.003024
29-0.338525-2.89240.002518
30-0.335772-2.86880.002692
31-0.324877-2.77570.003496
32-0.311265-2.65950.004807
33-0.302292-2.58280.005902
34-0.304388-2.60070.005628
35-0.314942-2.69090.004415
36-0.325485-2.78090.003446
37-0.327465-2.79790.003287
38-0.322638-2.75660.003686
39-0.312836-2.67290.004636
40-0.292459-2.49880.007356
41-0.265247-2.26630.0132
42-0.234444-2.00310.02444
43-0.208192-1.77880.039719
44-0.187842-1.60490.056415
45-0.17457-1.49150.070066
46-0.167204-1.42860.078693
47-0.156274-1.33520.092979
48-0.146207-1.24920.107793


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9515728.13020
2-0.332581-2.84160.002908
30.0504580.43110.333828
40.0112440.09610.461866
5-0.082231-0.70260.242276
60.0441680.37740.353496
70.0504570.43110.333833
8-0.038348-0.32760.37206
9-0.087478-0.74740.228608
10-0.083335-0.7120.239362
11-0.07156-0.61140.271414
12-0.008074-0.0690.472597
13-0.050662-0.43290.333196
14-0.080512-0.68790.24685
150.0708340.60520.27346
16-0.167266-1.42910.078617
170.0295620.25260.400654
18-0.032894-0.2810.389735
19-0.066626-0.56930.285467
200.0546150.46660.321078
21-0.125279-1.07040.143986
220.0018450.01580.493732
230.0742050.6340.26403
240.0364820.31170.378076
250.016030.1370.445718
26-0.069217-0.59140.278042
27-0.004782-0.04090.48376
28-0.134476-1.1490.12716
290.0971630.83020.204578
300.0478990.40930.341776
310.021660.18510.426848
32-0.035627-0.30440.380846
33-0.144969-1.23860.109727
34-0.104046-0.8890.188469
35-0.107816-0.92120.179994
360.0512340.43770.331433
370.0691430.59080.278253
38-0.028208-0.2410.405113
39-0.011367-0.09710.461449
400.0068630.05860.476699
410.0333550.2850.388231
420.0074580.06370.474684
430.0148790.12710.449594
44-0.038617-0.32990.371193
45-0.098684-0.84320.200947
46-0.006943-0.05930.476429
470.0576580.49260.311876
48-0.033495-0.28620.387774
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/12/t1302630361grptssb1zpkt4vv/1k7lm1302630500.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/12/t1302630361grptssb1zpkt4vv/1k7lm1302630500.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/12/t1302630361grptssb1zpkt4vv/2hua11302630500.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/12/t1302630361grptssb1zpkt4vv/2hua11302630500.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/12/t1302630361grptssb1zpkt4vv/3g1nm1302630500.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/12/t1302630361grptssb1zpkt4vv/3g1nm1302630500.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