Home » date » 2010 » Aug » 06 »

tijdreeks 2 - 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: Fri, 06 Aug 2010 07:24:09 +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/06/t1281079467nyz5ry8ew0gvmv2.htm/, Retrieved Fri, 06 Aug 2010 09:24:30 +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/06/t1281079467nyz5ry8ew0gvmv2.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:
Van de Walle Mathias
 
Dataseries X:
» Textbox « » Textfile « » CSV «
239 238 237 235 233 232 233 235 236 236 237 239 238 237 244 230 237 244 239 240 230 228 231 228 225 227 238 214 222 233 228 218 203 209 207 203 195 199 207 182 181 189 186 174 153 158 153 147 143 156 168 142 146 150 145 133 111 115 109 105 96 112 127 107 116 125 120 107 86 87 79 83 75 89 104 86 98 98 85 74 49 54 47 56
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9589418.78880
20.9173718.40780
30.8826818.08990
40.8439297.73470
50.8104647.4280
60.7780737.13120
70.7641067.00310
80.7462736.83970
90.7198766.59780
100.6964286.38290
110.6717286.15650
120.6433315.89620
130.5961165.46350
140.5503465.0441e-06
150.5097944.67236e-06
160.4707144.31422.2e-05
170.4329423.9687.6e-05
180.3956143.62590.000246
190.3724293.41340.000495
200.3422333.13660.001178
210.3082732.82540.002949
220.2785682.55310.006242
230.2468812.26270.013117
240.2113911.93740.028027
250.1637791.50110.068545
260.1200081.09990.137261
270.0776370.71160.239357
280.0385240.35310.362458
290.0020920.01920.492375
30-0.034777-0.31870.375358
31-0.061078-0.55980.288556
32-0.08953-0.82060.207111
33-0.117058-1.07290.143205
34-0.139899-1.28220.10165
35-0.16326-1.49630.069162
36-0.189837-1.73990.042771
37-0.22382-2.05130.021675
38-0.253629-2.32460.011255
39-0.282988-2.59360.005601
40-0.308795-2.83020.00291
41-0.328837-3.01380.001705
42-0.348114-3.19050.000999
43-0.362131-3.3190.000669
44-0.378726-3.47110.000411
45-0.389657-3.57130.000295
46-0.395406-3.6240.000248
47-0.400892-3.67420.000209
48-0.405922-3.72030.000179


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9589418.78880
2-0.027301-0.25020.401516
30.0639520.58610.279681
4-0.070532-0.64640.259879
50.0534230.48960.312836
6-0.015592-0.14290.443354
70.2279652.08930.019852
8-0.076114-0.69760.243679
9-0.070563-0.64670.259789
10-0.011923-0.10930.456624
11-0.002436-0.02230.491122
12-0.056321-0.51620.303538
13-0.227934-2.08910.019865
14-0.028745-0.26340.396425
15-0.032786-0.30050.382274
160.0379270.34760.364504
17-0.048228-0.4420.329807
18-0.041251-0.37810.353164
190.0768240.70410.241659
20-0.081897-0.75060.227495
210.0068980.06320.474869
22-0.005304-0.04860.480671
23-0.016584-0.1520.439779
24-0.075896-0.69560.2443
25-0.098988-0.90720.183437
26-0.026708-0.24480.403611
27-0.076855-0.70440.241571
280.0451250.41360.340119
29-0.0531-0.48670.313879
30-0.051107-0.46840.320355
310.0141370.12960.448609
320.002240.02050.491833
330.0250170.22930.409602
340.0183970.16860.433252
350.0011340.01040.495866
36-0.069057-0.63290.264252
37-0.025122-0.23020.409231
38-0.014442-0.13240.447506
39-0.046966-0.43040.333985
400.0221910.20340.419665
41-0.000822-0.00750.497005
42-0.033065-0.3030.381304
43-0.027644-0.25340.400303
44-0.020622-0.1890.425273
450.0458920.42060.337559
460.047250.43310.333042
470.0282870.25930.398037
48-0.015944-0.14610.442085
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281079467nyz5ry8ew0gvmv2/1boyr1281079442.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281079467nyz5ry8ew0gvmv2/1boyr1281079442.ps (open in new window)


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