Home » date » 2009 » Jun » 01 »

Huishoudbrood - autocorrelatie - Joris Hoefnagels

*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, 01 Jun 2009 14:37:12 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t1243888674vrh1eqpk2ukorqb.htm/, Retrieved Mon, 01 Jun 2009 22:37:54 +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/2009/Jun/01/t1243888674vrh1eqpk2ukorqb.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
40.04 40.04 40.03 40.03 41.63 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.03 42.38 42.06 42.06 42.05 42.05 42.05 42.05 44.36 44.48 44.49 44.49 44.49 44.49 44.49 44.48 44.48 44.48 44.48 44.48 44.48 44.49 44.49 44.49 44.49 44.49 44.49 44.49 44.49 45.5 45.94 45.95 45.96 45.96 45.96 45.96 45.96 45.96 45.96 45.96 45.97 46.06 47.9 47.93 47.94 47.94 47.94 47.94 47.94 47.94 47.94 47.94
 
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.9390817.96840
20.8740867.41690
30.8088016.86290
40.7435046.30880
50.6964555.90960
60.6539545.5490
70.6134965.20571e-06
80.5709784.84494e-06
90.5284294.48391.4e-05
100.4861684.12534.9e-05
110.463033.92899.7e-05
120.4406413.7390.000184
130.4158683.52880.000366
140.3858593.27410.000815
150.3557923.0190.001753
160.325712.76370.003625
170.2952412.50520.007251
180.2635812.23660.014207
190.2333341.97990.025769
200.2030871.72330.044567
210.1726221.46470.073671
220.1396061.18460.120036
230.1047340.88870.188563
240.0777780.660.255691
250.0403160.34210.366638
260.0023420.01990.492099
27-0.035597-0.30210.381741
28-0.072591-0.6160.269933
29-0.083919-0.71210.239359
30-0.094299-0.80020.213127
31-0.104555-0.88720.188968
32-0.114679-0.97310.166885
33-0.124946-1.06020.146297
34-0.136398-1.15740.125473
35-0.159584-1.35410.089967
36-0.183079-1.55350.062347
37-0.206648-1.75350.041889
38-0.230364-1.95470.027251
39-0.254019-2.15540.017236
40-0.277604-2.35550.010611
41-0.299651-2.54260.006576
42-0.323334-2.74360.003833
43-0.346934-2.94380.002181
44-0.369291-3.13350.001249
45-0.368673-3.12830.001269
46-0.372998-3.1650.001137
47-0.379277-3.21830.000967
48-0.385583-3.27180.000821


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9390817.96840
2-0.065915-0.55930.288843
3-0.036074-0.30610.380207
4-0.036068-0.3060.380227
50.118091.0020.159842
60.0003140.00270.498939
7-0.01277-0.10840.457005
8-0.047323-0.40150.344604
9-0.005404-0.04590.481778
10-0.01708-0.14490.442587
110.1424081.20840.11543
12-0.02928-0.24840.402248
13-0.039979-0.33920.36771
14-0.069241-0.58750.279342
150.0304780.25860.398337
16-0.013454-0.11420.454712
17-0.023243-0.19720.422105
18-0.059352-0.50360.308034
19-0.005489-0.04660.481489
20-0.024753-0.210.417115
210.0043140.03660.485449
22-0.060315-0.51180.305182
23-0.047468-0.40280.344153
240.0244730.20770.418039
25-0.108702-0.92240.179709
26-0.03803-0.32270.373932
27-0.043831-0.37190.355524
28-0.019751-0.16760.433686
290.177261.50410.068464
30-0.03381-0.28690.387511
31-0.033775-0.28660.387624
32-0.03727-0.31620.376364
330.0358970.30460.380778
340.0068990.05850.476739
35-0.150511-1.27710.102829
36-0.050098-0.42510.336018
37-0.02282-0.19360.423504
38-0.007047-0.05980.47624
390.0094040.07980.468311
40-0.060329-0.51190.305141
41-0.044445-0.37710.353594
42-0.054682-0.4640.322026
43-0.01017-0.08630.465735
44-0.024407-0.20710.418257
450.128461.090.13967
46-0.112496-0.95460.171497
47-0.021783-0.18480.42694
48-0.036315-0.30810.379433
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243888674vrh1eqpk2ukorqb/1g6551243888628.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243888674vrh1eqpk2ukorqb/1g6551243888628.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243888674vrh1eqpk2ukorqb/2lgto1243888628.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243888674vrh1eqpk2ukorqb/2lgto1243888628.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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