Home » date » 2010 » Dec » 27 »

Paper Statistiek

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 27 Dec 2010 19:09:24 +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/27/t1293476899oyl4sl2idb32bnc.htm/, Retrieved Mon, 27 Dec 2010 20:08: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/27/t1293476899oyl4sl2idb32bnc.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:
Partial Autocorrelation Function - Handelbalans Belgiƫ (1995-2009)
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2540,9 2370,3 1807,5 1834,8 786,8 1561,4 1347,2 1549,8 1553,8 1822,5 3078,7 1589,1 1791,5 2558,1 2111,8 2083,1 2052,1 2243,5 2622 1952,6 808,9 1709,8 1582,1 865,6 1116,1 1119,4 2350 1975,6 2536,5 2785 2819,7 1829,5 758,3 2921,6 2482 1892,7 1855,1 2151,3 1642,2 1640,5 1366,1 1532,8 824,4 -518,7 -978,5 1162,5 1243,4 1199,5 883,1 1437,2 534,5 -1901,9 -2521,1 -1721,1 -3094,5 -3694,8 -2492,1 -464,6 -626,1 -1711,4
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8119886.28960
20.6595915.10922e-06
30.6161114.77246e-06
40.5286264.09476.4e-05
50.3650022.82730.003185
60.2359331.82750.036297
70.2689132.0830.020761
80.271492.10290.019837
90.1885281.46030.074708
100.153581.18960.119439
110.2012411.55880.062151
120.2090961.61960.055276
130.1012060.78390.218079
140.0281510.21810.414063
150.0452080.35020.363714
160.0326240.25270.400679
17-0.045331-0.35110.36336
18-0.078874-0.6110.27177
19-0.053447-0.4140.340175
20-0.055573-0.43050.334199
21-0.112076-0.86810.194389
22-0.173479-1.34380.092043
23-0.130349-1.00970.158351
24-0.142849-1.10650.136463
25-0.206398-1.59870.057565
26-0.191988-1.48710.071108
27-0.114008-0.88310.190353
28-0.099262-0.76890.222489
29-0.113395-0.87840.191629
30-0.096289-0.74590.229335
31-0.060366-0.46760.320884
32-0.051675-0.40030.345188
33-0.090838-0.70360.242193
34-0.106151-0.82220.207097
35-0.105852-0.81990.207752
36-0.127037-0.9840.164527
37-0.176353-1.3660.088515
38-0.19299-1.49490.070092
39-0.171585-1.32910.094425
40-0.192536-1.49140.070551
41-0.238455-1.84710.034835
42-0.23894-1.85080.03456
43-0.215174-1.66670.05039
44-0.190027-1.47190.073131
45-0.168933-1.30850.097839
46-0.147578-1.14310.128762
47-0.097628-0.75620.226236
48-0.091506-0.70880.240596


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8119886.28960
20.000780.0060.497599
30.2357531.82610.036403
4-0.114759-0.88890.188797
5-0.223578-1.73180.044221
6-0.089478-0.69310.245464
70.3450412.67270.004838
80.0486220.37660.35389
9-0.087191-0.67540.251015
10-0.067491-0.52280.301525
110.070480.54590.293567
120.0254020.19680.422339
13-0.151848-1.17620.122079
14-0.107609-0.83350.203925
150.0402690.31190.37809
160.0868080.67240.251952
17-0.003468-0.02690.48933
18-0.054413-0.42150.337455
19-0.119744-0.92750.178682
200.0046540.0360.485682
210.0208490.16150.436122
22-0.160057-1.23980.109939
230.1080920.83730.202879
24-0.095862-0.74250.230328
250.0309720.23990.40561
260.1138740.88210.190631
270.0928870.71950.237313
28-0.173618-1.34480.09187
290.0823080.63760.263095
30-0.090843-0.70370.24218
310.0018880.01460.494189
320.0953630.73870.23149
33-0.03761-0.29130.385904
34-0.101055-0.78280.21842
35-0.080177-0.6210.26846
360.007270.05630.477638
37-0.051901-0.4020.344547
38-0.019251-0.14910.440981
39-0.062768-0.48620.314299
40-0.056748-0.43960.330916
41-0.08206-0.63560.263716
420.0598060.46330.322428
430.0229770.1780.42967
440.0206470.15990.436737
450.1339861.03790.151752
46-0.113449-0.87880.191515
470.0004510.00350.498612
48-0.084881-0.65750.256691
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293476899oyl4sl2idb32bnc/14y4j1293476961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293476899oyl4sl2idb32bnc/14y4j1293476961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293476899oyl4sl2idb32bnc/2fplm1293476961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293476899oyl4sl2idb32bnc/2fplm1293476961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293476899oyl4sl2idb32bnc/3fplm1293476961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293476899oyl4sl2idb32bnc/3fplm1293476961.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 4 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 4 ; 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