Home » date » 2010 » May » 03 »

Autocorrelatie - Wijnverkoop - Leen Verlaet

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 03 May 2010 15:05:48 +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/May/03/t12728991865n0cvyct6j4k8zb.htm/, Retrieved Mon, 03 May 2010 17:06:29 +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/May/03/t12728991865n0cvyct6j4k8zb.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
112 118 129 99 116 168 118 129 205 147 150 267 126 129 124 97 102 127 222 214 118 141 154 226 89 77 82 97 127 121 117 117 106 112 134 169 75 108 115 85 101 108 109 124 105 95 135 164 88 85 112 87 91 87 87 142 95 108 139 159 61 82 124 93 108 75 87 103 90 108 123 129 57 65 67 71 76 67 110 118 99 85 107 141 58 65 70 86 93 74 87 73 101 100 96 157 63 115 70 66 67 83 79 77 102 116 100 135 71 60 89 74 73 91 86 74 87 87 109 137 43 69 73 77 69 76 78 70 83 65 110 132 54 55 66 65 60 65 96 55 71 63 74 106 34 47 56 53 53 55 67 52 46 51 58 91 33 40 46 45 41 55 57 54 46 52 48 77 30 35 42 48 44 45 46
 
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.5697747.53740
20.4495775.94730
30.5034146.65950
40.457146.04740
50.4341815.74370
60.3711034.90921e-06
70.4024865.32440
80.4208695.56760
90.4331025.72940
100.4126025.45820
110.4456085.89480
120.6440348.51980
130.3822135.05621e-06
140.3190134.22012e-05
150.3362544.44828e-06
160.3036364.01674.4e-05
170.290293.84028.6e-05
180.2349043.10750.001101
190.22542.98180.001637
200.2353143.11290.001082
210.2502623.31070.000565
220.2050612.71270.00367
230.2627333.47560.000321
240.4522295.98240
250.2310393.05640.001296
260.1900652.51430.006414
270.2210872.92470.001952
280.1855262.45430.007548
290.1607032.12590.017457
300.1066221.41050.080088
310.1013131.34030.090951
320.1318081.74370.041487
330.1614222.13540.017059
340.1136351.50330.067288
350.1809582.39390.008865
360.3428124.5355e-06
370.1470291.9450.026688
380.1041711.3780.084974
390.1359541.79850.036911
400.1202081.59020.056796
410.0776431.02710.152892
420.0267190.35350.362085
430.0428280.56660.285868
440.063260.83690.201908
450.0914881.21030.113903
460.0710540.940.174269
470.1073621.42030.078655
480.2476313.27590.000635


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5697747.53740
20.184992.44720.007693
30.2901373.83828.6e-05
40.1045971.38370.084107
50.1132851.49860.067887
6-0.018401-0.24340.403983
70.1196691.58310.057606
80.089621.18560.118703
90.1353561.79060.037544
100.0449660.59490.276356
110.1316741.74190.041643
120.4122685.45380
13-0.294085-3.89047.1e-05
14-0.047773-0.6320.264114
15-0.16802-2.22270.013759
16-0.019871-0.26290.396481
17-0.059459-0.78660.2163
18-0.014617-0.19340.42345
19-0.105433-1.39470.08243
20-0.044634-0.59050.277823
21-0.018081-0.23920.405617
22-0.098117-1.2980.098003
230.1253461.65820.049537
240.2358243.11970.001059
25-0.036781-0.48660.313585
260.0240970.31880.375139
27-0.001902-0.02520.489975
28-0.0265-0.35060.363168
29-0.040154-0.53120.297981
30-0.014039-0.18570.426441
31-0.021334-0.28220.389055
320.0322330.42640.33517
330.036420.48180.31528
34-0.061704-0.81630.20773
350.0484140.64050.261357
360.0802521.06160.144932
37-0.04526-0.59870.275064
38-0.04191-0.55440.290002
39-0.005078-0.06720.47326
400.0098780.13070.448091
41-0.07616-1.00750.157542
42-0.027574-0.36480.357861
430.0089820.11880.452777
44-0.020689-0.27370.392323
450.0201910.26710.394851
460.0599270.79280.214495
47-0.029915-0.39570.346388
480.0699640.92550.17798
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t12728991865n0cvyct6j4k8zb/14w061272899147.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t12728991865n0cvyct6j4k8zb/14w061272899147.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t12728991865n0cvyct6j4k8zb/24w061272899147.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t12728991865n0cvyct6j4k8zb/24w061272899147.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