Home » date » 2010 » Aug » 14 »

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: Sat, 14 Aug 2010 10:53:28 +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/14/t12817831868t4b3j2a6sqnsz9.htm/, Retrieved Sat, 14 Aug 2010 12:53:08 +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/14/t12817831868t4b3j2a6sqnsz9.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:
Reuben Vermoet
 
Dataseries X:
» Textbox « » Textfile « » CSV «
172 171 170 168 166 165 166 168 169 169 170 172 173 172 165 152 148 145 141 149 146 144 149 150 149 156 150 137 130 126 125 123 117 111 114 121 122 131 125 116 106 98 99 96 95 83 85 98 102 110 101 90 88 83 88 85 86 80 79 97 105 116 99 87 82 81 85 84 78 77 79 85 96 108 98 86 80 74 75 82 71 66 71 75
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9550378.75310
20.8961398.21330
30.8379937.68030
40.793377.27140
50.7671287.03080
60.7360766.74620
70.6987236.40390
80.6630616.07710
90.6434735.89750
100.6393365.85960
110.6397575.86350
120.6240735.71970
130.5750875.27081e-06
140.5098594.67296e-06
150.4474974.10144.7e-05
160.4018883.68340.000203
170.3714693.40460.000509
180.339573.11220.001269
190.3022452.77010.003448
200.2622952.4040.009209
210.238122.18240.015936
220.2311932.11890.018525
230.2286952.0960.019545
240.2101641.92620.028732
250.1711491.56860.06025
260.1114161.02110.15506
270.0557070.51060.305499
280.0148410.1360.446067
29-0.016193-0.14840.441186
30-0.045005-0.41250.34052
31-0.08059-0.73860.231099
32-0.110355-1.01140.157361
33-0.126993-1.16390.123878
34-0.127247-1.16620.123409
35-0.123908-1.13560.129669
36-0.138474-1.26910.10395
37-0.168236-1.54190.063427
38-0.214219-1.96330.026457
39-0.25713-2.35660.010384
40-0.286978-2.63020.005074
41-0.308875-2.83090.002903
42-0.32547-2.9830.001868
43-0.345948-3.17070.001062
44-0.35695-3.27150.000777
45-0.357536-3.27690.000764
46-0.342214-3.13640.001179
47-0.322439-2.95520.002027
48-0.320166-2.93440.002154


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9550378.75310
2-0.181522-1.66370.049952
30.0017950.01650.493456
40.1209021.10810.135493
50.1460871.33890.092107
6-0.130563-1.19660.117408
7-0.050825-0.46580.321276
80.0699860.64140.261495
90.1801511.65110.051225
100.0727380.66670.253409
11-0.003011-0.02760.489026
12-0.150094-1.37560.086297
13-0.291319-2.670.004553
14-0.12754-1.16890.122871
15-0.003223-0.02950.488253
160.0652040.59760.275856
170.0534420.48980.312774
18-0.02111-0.19350.423526
19-0.015582-0.14280.443391
20-0.058611-0.53720.296282
210.0605880.55530.290085
220.0367750.3370.368461
23-0.014621-0.1340.446861
24-0.104554-0.95830.170341
25-0.014276-0.13080.448105
26-0.157308-1.44170.076546
27-0.013768-0.12620.449942
28-0.005685-0.05210.479285
29-0.010303-0.09440.462498
30-0.011816-0.10830.457011
31-0.022071-0.20230.420093
320.0799260.73250.232941
33-7.7e-05-7e-040.499721
34-0.003619-0.03320.486811
35-0.038481-0.35270.362605
36-0.11396-1.04450.149634
370.0139340.12770.449343
38-0.065948-0.60440.273595
39-0.015778-0.14460.442683
40-0.013076-0.11980.452446
41-0.004147-0.0380.484885
420.0337530.30940.378911
43-0.009366-0.08580.465899
440.0656730.60190.274431
45-0.018569-0.17020.432635
460.0235510.21590.414813
470.0067770.06210.475312
48-0.082403-0.75520.226111
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/14/t12817831868t4b3j2a6sqnsz9/1bj0e1281783206.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/14/t12817831868t4b3j2a6sqnsz9/1bj0e1281783206.ps (open in new window)


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