Home » date » 2010 » Aug » 03 »

TIJDREEKS B - STAP 18

*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, 03 Aug 2010 17:45:51 +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/Aug/03/t1280857530i8rtddngv4ut43c.htm/, Retrieved Tue, 03 Aug 2010 19:45:33 +0200
 
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/Aug/03/t1280857530i8rtddngv4ut43c.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:
Lisa Bruggeman
 
Dataseries X:
» Textbox « » Textfile « » CSV «
162 161 160 158 156 155 156 158 159 159 160 162 152 157 149 150 144 146 151 148 151 151 145 140 139 144 140 134 130 132 136 137 146 139 132 131 137 145 142 142 137 139 139 139 150 146 138 134 137 143 136 138 129 132 124 132 154 145 136 132 135 148 142 139 126 124 115 126 147 136 127 123 132 156 153 147 129 119 108 121 138 128 123 125
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0808270.73640.231792
2-0.281439-2.5640.006074
3-0.405359-3.6930.000198
4-0.20508-1.86840.03262
50.2212222.01540.023548
60.1538621.40180.082359
70.307342.80.003177
8-0.155765-1.41910.079809
9-0.373917-3.40650.000508
10-0.268413-2.44540.008293
110.0868720.79140.215472
120.6621896.03280
13-0.014225-0.12960.4486
14-0.156484-1.42560.078861
15-0.22424-2.04290.022117
16-0.125769-1.14580.127583
170.1618661.47470.072042
180.0738140.67250.251575
190.2487722.26640.013014
20-0.096733-0.88130.190356
21-0.242994-2.21380.014794
22-0.228137-2.07840.020379
230.0524270.47760.317085
240.4175363.80390.000136
25-0.037073-0.33780.368202
26-0.040316-0.36730.357167
27-0.137679-1.25430.106624
28-0.09265-0.84410.200524
290.0457980.41720.338789
300.0512510.46690.32089
310.2283822.08070.020274
32-0.05-0.45550.324962
33-0.174339-1.58830.05801
34-0.178878-1.62970.053482
350.0529250.48220.315479
360.2426622.21080.014902
37-0.006815-0.06210.475322
380.0599450.54610.293223
39-0.138615-1.26280.105091
40-0.095296-0.86820.193896
41-0.009716-0.08850.46484
420.067540.61530.270013
430.1869251.7030.046158
44-0.053634-0.48860.313195
45-0.114011-1.03870.150983
46-0.131664-1.19950.116871
470.0120580.10990.456394
480.1308261.19190.118351


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0808270.73640.231792
2-0.289866-2.64080.00494
3-0.387463-3.530.00034
4-0.319687-2.91250.002302
5-0.033441-0.30470.380694
6-0.195887-1.78460.038989
70.2424462.20880.014973
8-0.135685-1.23620.109944
9-0.234338-2.13490.017858
10-0.333024-3.0340.001611
11-0.191092-1.74090.042701
120.3570143.25260.000827
13-0.318068-2.89770.002403
14-0.02559-0.23310.408116
150.0902190.82190.206734
160.0273220.24890.402021
170.0470480.42860.334651
18-0.064479-0.58740.279255
19-0.031164-0.28390.38859
200.0982340.8950.186699
210.0726030.66140.255079
22-0.12823-1.16820.123029
23-0.03246-0.29570.384091
24-0.004206-0.03830.484764
250.0293930.26780.394765
260.0187480.17080.432397
27-0.070239-0.63990.261998
28-0.001175-0.01070.495742
29-0.056591-0.51560.303763
300.0673410.61350.270611
31-0.040613-0.370.35616
32-0.070452-0.64180.261372
33-0.056639-0.5160.303612
340.024290.22130.412703
350.0047120.04290.482929
36-0.087256-0.79490.214457
370.0386450.35210.362837
380.0929750.8470.199704
39-0.057207-0.52120.301816
400.0256650.23380.40785
410.0092080.08390.466672
420.0246070.22420.411583
43-0.00156-0.01420.494346
44-0.039641-0.36110.359455
45-0.030957-0.2820.389309
460.0419660.38230.351598
47-0.099459-0.90610.183748
48-0.034579-0.3150.376766
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/03/t1280857530i8rtddngv4ut43c/1h1hk1280857549.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/03/t1280857530i8rtddngv4ut43c/1h1hk1280857549.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/03/t1280857530i8rtddngv4ut43c/2h1hk1280857549.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/03/t1280857530i8rtddngv4ut43c/2h1hk1280857549.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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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