Home » date » 2010 » Aug » 03 »

TIJDREEKS B - STAP 17

*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:41:16 +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/t12808573390vk8mj8kcle9w5w.htm/, Retrieved Tue, 03 Aug 2010 19:42:19 +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/t12808573390vk8mj8kcle9w5w.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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7578116.94550
20.479034.39041.6e-05
30.3268242.99540.001801
40.3625943.32320.00066
50.4651114.26282.6e-05
60.4565294.18423.5e-05
70.3939283.61040.000259
80.2093651.91890.029199
90.112311.02930.153137
100.1814651.66320.050005
110.3663733.35790.000591
120.4778454.37951.7e-05
130.3129942.86860.002606
140.1492131.36760.08755
150.0772590.70810.240425
160.112841.03420.152007
170.1837971.68450.047896
180.1665341.52630.065345
190.1196191.09630.138035
20-0.026003-0.23830.406106
21-0.119535-1.09560.138203
22-0.106685-0.97780.165494
230.0213320.19550.422733
240.1182711.0840.140739
250.0352040.32260.373883
26-0.036477-0.33430.369485
27-0.072279-0.66240.25475
28-0.026779-0.24540.40336
290.0357070.32730.372143
300.0638430.58510.280013
310.0730230.66930.25258
32-0.021264-0.19490.422977
33-0.09932-0.91030.18264
34-0.094229-0.86360.195127
350.008330.07630.469661
360.081930.75090.227405
370.0371960.34090.367014
38-0.014501-0.13290.447294
39-0.0762-0.69840.243433
40-0.07415-0.67960.249314
41-0.037877-0.34720.364673
42-0.00173-0.01590.493693
430.0050590.04640.481564
44-0.0709-0.64980.258795
45-0.138135-1.2660.104501
46-0.150764-1.38180.085352
47-0.08981-0.82310.206386
48-0.038082-0.3490.363972


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7578116.94550
2-0.223733-2.05050.021714
30.1289251.18160.120346
40.2937722.69250.00428
50.1693781.55240.062166
6-0.077066-0.70630.240972
70.1028220.94240.17435
8-0.301816-2.76620.003486
90.0743490.68140.24874
100.2059621.88770.031261
110.244832.24390.013735
120.0308660.28290.388978
13-0.315014-2.88720.002471
140.0976690.89510.186633
150.0018120.01660.493396
16-0.148842-1.36420.088081
170.0037580.03440.486304
18-0.083179-0.76240.223993
190.0642790.58910.278679
20-0.048235-0.44210.329782
21-0.104353-0.95640.170804
22-0.096314-0.88270.189949
230.139281.27650.102644
240.0575880.52780.299513
25-0.048325-0.44290.329487
260.0530980.48670.313885
270.002110.01930.492309
280.0352730.32330.373642
290.0054240.04970.480235
300.0053160.04870.480629
310.0257240.23580.407095
32-0.008949-0.0820.467413
330.0070610.06470.474278
340.0287870.26380.396275
35-0.006156-0.05640.47757
36-0.005624-0.05150.479506
370.0340970.31250.377716
38-0.055504-0.50870.306149
39-0.100833-0.92410.179028
40-0.017592-0.16120.436147
41-0.015726-0.14410.442869
42-0.046251-0.42390.336363
43-0.067141-0.61540.269991
440.0304120.27870.39057
45-0.013574-0.12440.450646
46-0.028385-0.26010.397693
47-0.04206-0.38550.350426
480.0148230.13590.44613
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/03/t12808573390vk8mj8kcle9w5w/1w1rw1280857272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/03/t12808573390vk8mj8kcle9w5w/1w1rw1280857272.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/03/t12808573390vk8mj8kcle9w5w/2w1rw1280857272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/03/t12808573390vk8mj8kcle9w5w/2w1rw1280857272.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 (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