Home » date » 2010 » Aug » 19 »

Tijdreeks A - Stap 20

*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 Aug 2010 14:57:56 +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/19/t1282229997hacvxyoxe9cgir5.htm/, Retrieved Thu, 19 Aug 2010 16:59:57 +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/19/t1282229997hacvxyoxe9cgir5.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:
Gregory Goris
 
Dataseries X:
» Textbox « » Textfile « » CSV «
159 158 157 155 175 174 159 149 150 150 151 153 146 156 154 151 171 167 144 138 138 132 132 132 125 131 129 131 145 156 126 123 127 116 114 114 109 110 113 114 138 155 126 123 124 124 134 131 126 128 128 124 148 174 146 137 152 159 170 166 165 168 175 180 199 228 206 193 201 214 225 224 215 222 238 248 262 288 261 240 248 260 266 268 256 261 287 295 304 331 299 275 293 309 311 311 289 298 319 325 331 348 320 305 322 337 346 343 321 331 343 345 347 363 322 304 323 340 352 351
 
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.97074110.63390
20.93865210.28240
30.92119210.09120
40.9087499.95480
50.9036539.8990
60.8942299.79580
70.866339.49020
80.839799.19940
90.8171518.95140
100.7960428.72020
110.787428.62580
120.7784348.52730
130.7400038.10630
140.6991037.65830
150.6720197.36160
160.6501147.12160
170.6335986.94070
180.6118916.70290
190.5746026.29440
200.5403145.91880
210.5108845.59650
220.4826385.2870
230.4657825.10241e-06
240.4493214.92211e-06
250.4079764.46929e-06
260.3643623.99145.7e-05
270.3337913.65650.00019
280.3093843.38910.000475
290.288833.1640.000986
300.2621722.8720.002412
310.2206452.4170.008576
320.1846062.02230.022687
330.1549551.69750.046102
340.1259981.38020.08504
350.1056451.15730.124727
360.0863770.94620.17297
370.0488510.53510.296774
380.0085660.09380.462697
39-0.018173-0.19910.42127
40-0.038606-0.42290.336561
41-0.05755-0.63040.264806
42-0.081299-0.89060.187466
43-0.117261-1.28450.100715
44-0.147646-1.61740.054211
45-0.170427-1.86690.032175
46-0.191736-2.10040.018895
47-0.207643-2.27460.012352
48-0.221248-2.42360.008429


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97074110.63390
2-0.063917-0.70020.242587
30.2404922.63450.004769
40.0531060.58170.280915
50.1873682.05250.021147
6-0.060567-0.66350.254147
7-0.25567-2.80070.002972
80.02440.26730.394855
9-0.089228-0.97740.165157
10-0.018048-0.19770.421805
110.1669921.82930.034918
120.0150670.16510.43459
13-0.424141-4.64624e-06
14-0.0202-0.22130.412624
150.1090781.19490.117244
16-0.019081-0.2090.417391
17-0.038779-0.42480.335873
18-0.015118-0.16560.434374
19-0.047154-0.51650.303211
20-0.021107-0.23120.408771
21-0.030386-0.33290.369908
220.010210.11180.455568
230.0511360.56020.288204
240.0006740.00740.497059
25-0.207897-2.27740.012266
26-0.008101-0.08870.464716
270.0516670.5660.286233
28-0.016503-0.18080.42842
29-0.075584-0.8280.204664
30-0.016566-0.18150.428153
31-0.046412-0.50840.306046
320.0005860.00640.497443
33-0.021542-0.2360.406923
340.0079140.08670.465531
35-0.010181-0.11150.455691
360.0060240.0660.473748
37-0.041975-0.45980.323239
38-0.045449-0.49790.309744
390.0757220.82950.204235
40-0.0244-0.26730.394854
41-0.087567-0.95930.169681
420.0186310.20410.419313
430.0003120.00340.49864
44-0.024458-0.26790.39461
45-0.039877-0.43680.33151
460.0616950.67580.250221
47-0.032646-0.35760.360627
480.0101050.11070.456021
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282229997hacvxyoxe9cgir5/1x4mt1282229873.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282229997hacvxyoxe9cgir5/1x4mt1282229873.ps (open in new window)


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