Home » date » 2011 » May » 19 »

IKO opdracht 6BIS werknemers x1000 Marin Peeters MAR 201B

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 19 May 2011 09:43:36 +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/19/t13057980564hdi3wb9r3ijx5g.htm/, Retrieved Thu, 19 May 2011 11:40:58 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3893.9 3799.2 3769.6 3768.6 3854.9 3778.5 3779.7 3803.2 3900.3 3792.6 3767.4 3752.6 3829.6 3722.6 3692.9 3681 3762.9 3661.7 3633.1 3621.5 3710 3619.4 3595.2 3573.2 3650.1 3554.2 3537 3528.6 3597.1 3521.9 3516.5 3515.7 3600.2 3517.1 3513.7 3528.2 3608.3 3502.5 3502.5 3495.3 3543.8 3425.3 3418.4 3406.4 3446.1 3341.1 3347 3354.9 3399 3288.9 3279 3275.2 3314 3227.1 3225.3 3228.6 3287.1 3210.1 3213.1 3228 3287 3211 3199.8 3166.3 3164 3156.7 3156 3165.5 3179.2 3182.5 3179.5 3193.5 3219.6 3221.9 3210.1
 
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'Gwilym Jenkins' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9377548.12120
20.9069097.85410
30.8833237.64980
40.8801697.62250
50.8120357.03240
60.7741886.70470
70.7409896.41710
80.7257276.2850
90.6482975.61440
100.6025135.21791e-06
110.5636954.88173e-06
120.5455564.72475e-06
130.4736054.10155.2e-05
140.4325323.74580.000175
150.4030313.49040.000406
160.3878413.35880.000616
170.3199052.77050.003527
180.2813682.43670.008597
190.2541422.20090.015409
200.2389222.06910.02099
210.1751351.51670.066771
220.1389771.20360.116269
230.1134570.98260.16449
240.0992440.85950.196407
250.0416630.36080.359626
260.0117220.10150.459706
27-0.006836-0.05920.476473
28-0.018196-0.15760.437604
29-0.06857-0.59380.277204
30-0.095278-0.82510.205957
31-0.112044-0.97030.167502
32-0.123546-1.06990.144038
33-0.170851-1.47960.071583
34-0.194065-1.68070.048496
35-0.206343-1.7870.03899
36-0.217112-1.88020.031979
37-0.260384-2.2550.013526
38-0.279845-2.42350.008891
39-0.290369-2.51470.007028
40-0.301198-2.60850.005486
41-0.339388-2.93920.002186
42-0.354816-3.07280.001478
43-0.361703-3.13240.001236
44-0.368893-3.19470.001024
45-0.396927-3.43750.000481
46-0.405455-3.51130.000379
47-0.406976-3.52450.000363
48-0.41015-3.5520.000332


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9377548.12120
20.2282111.97640.025896
30.1132030.98040.165029
40.2203011.90790.030119
5-0.473583-4.10135.2e-05
60.0345440.29920.382822
70.0171170.14820.441277
80.0733990.63570.263467
9-0.304222-2.63460.005114
10-0.008177-0.07080.471868
110.0326540.28280.389056
120.1063130.92070.18008
13-0.117108-1.01420.156877
14-0.009971-0.08640.465708
150.0890690.77140.221459
160.0234750.20330.419725
17-0.124813-1.08090.1416
18-0.051218-0.44360.329318
190.0265790.23020.409287
200.0089010.07710.469382
21-0.086712-0.7510.227516
22-0.059196-0.51270.304851
23-0.002708-0.02350.490675
240.0362620.3140.377182
25-0.022522-0.1950.422943
26-0.015175-0.13140.447897
270.0119550.10350.458909
28-0.007577-0.06560.473928
29-0.011332-0.09810.461041
30-0.061611-0.53360.29761
31-0.038571-0.3340.369642
32-0.026412-0.22870.40985
33-0.025152-0.21780.414079
34-0.025452-0.22040.413071
35-0.011746-0.10170.459625
36-0.036601-0.3170.376071
37-0.0187-0.16190.435891
380.0028940.02510.490034
39-0.03282-0.28420.38851
40-0.040312-0.34910.363992
41-0.006067-0.05250.479119
42-0.010603-0.09180.463542
43-0.028347-0.24550.403374
44-0.021664-0.18760.425841
450.0387270.33540.369135
46-0.017466-0.15130.440087
47-0.035203-0.30490.380657
48-0.028886-0.25020.401575
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t13057980564hdi3wb9r3ijx5g/1lzw21305798213.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t13057980564hdi3wb9r3ijx5g/1lzw21305798213.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t13057980564hdi3wb9r3ijx5g/23k4h1305798213.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t13057980564hdi3wb9r3ijx5g/23k4h1305798213.ps (open in new window)


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