Home » date » 2009 » May » 14 »

Autocorrelation 6b bis - Kelly Michielsen - MAR 201b

*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, 14 May 2009 05:47:59 -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/May/14/t1242301709n2x4lhsxs2uh2f7.htm/, Retrieved Thu, 14 May 2009 13:48: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/2009/May/14/t1242301709n2x4lhsxs2uh2f7.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 «
104.9 110.9 104.8 94.1 95.8 99.3 101.1 104.0 99.0 105.4 107.1 110.7 117.1 118.7 126.5 127.5 134.6 131.8 135.9 142.7 141.7 153.4 145.0 137.7 148.3 152.2 169.4 168.6 161.1 174.1 179.0 190.6 190.0 181.6 174.8 180.5 196.8 193.8 197.0 216.3 221.4 217.9 229.7 227.4 204.2 196.6 198.8 207.5 190.7 201.6 210.5 223.5 223.8 231.2 244.0 234.7 250.2 265.7 287.6 283.3 295.4 312.3 333.8 347.7 383.2 407.1 413.6 362.7 321.9 239.4 191.0 159.7 166.7
 
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.9637868.23460
20.8976517.66950
30.8119466.93730
40.7221546.17010
50.6389965.45960
60.5701214.87113e-06
70.5152084.40191.8e-05
80.4658373.98018e-05
90.4182773.57380.000314
100.377293.22360.000947
110.337652.88490.002572
120.2991432.55590.006337
130.2645252.26010.013399
140.2362622.01860.0236
150.211211.80460.037632
160.1841711.57360.059957
170.1617561.3820.085586
180.1427661.21980.113234
190.129581.10710.135936
200.1200121.02540.154285
210.113320.96820.168068
220.1075320.91880.180626
230.0961450.82150.207028
240.0779860.66630.253657
250.0575590.49180.312174
260.0306220.26160.397171
270.0006790.00580.497694
28-0.030625-0.26170.397161
29-0.060775-0.51930.302575
30-0.084006-0.71770.237601
31-0.103534-0.88460.18964
32-0.117538-1.00420.159289
33-0.129511-1.10650.136063
34-0.142884-1.22080.113045
35-0.158811-1.35690.0895
36-0.176537-1.50830.067892
37-0.192696-1.64640.05199
38-0.212002-1.81130.037101
39-0.22975-1.9630.026729
40-0.241626-2.06450.021264
41-0.250746-2.14240.017749
42-0.259759-2.21940.014784
43-0.266478-2.27680.012866
44-0.270622-2.31220.011795
45-0.279029-2.3840.009863
46-0.288387-2.4640.008048
47-0.298561-2.55090.00642
48-0.309573-2.6450.004998


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9637868.23460
2-0.439166-3.75220.000174
3-0.172076-1.47020.0729
40.0559740.47820.316954
50.090720.77510.220389
60.091940.78550.217341
70.0056290.04810.480886
8-0.125738-1.07430.143112
9-0.055142-0.47110.319474
100.1281681.09510.138543
11-0.034504-0.29480.38449
12-0.043392-0.37070.355952
130.0219350.18740.425928
140.0404270.34540.365391
15-0.027746-0.23710.406635
16-0.093152-0.79590.214338
170.0841380.71890.237256
180.0239310.20450.419277
190.0648850.55440.290507
20-0.035938-0.30710.379839
21-0.05075-0.43360.332927
22-0.003233-0.02760.48902
23-0.055255-0.47210.319132
24-0.048589-0.41510.339626
250.0279690.2390.405901
26-0.087002-0.74330.229828
27-0.027496-0.23490.407462
28-0.019863-0.16970.432852
29-0.031455-0.26880.39444
300.0953210.81440.209027
31-0.029043-0.24810.402359
32-0.034545-0.29520.384359
33-0.050019-0.42740.335186
34-0.046652-0.39860.345677
35-0.019389-0.16570.434442
36-0.00238-0.02030.491915
370.0253180.21630.414671
38-0.116578-0.9960.161259
390.0160930.13750.445509
400.0543520.46440.321876
41-0.04859-0.41520.339623
42-0.087498-0.74760.228556
430.0424260.36250.359019
440.0060430.05160.479483
45-0.141289-1.20720.11563
460.0440230.37610.353956
47-0.061681-0.5270.299894
48-0.015546-0.13280.44735
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301709n2x4lhsxs2uh2f7/1qbnl1242301674.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301709n2x4lhsxs2uh2f7/1qbnl1242301674.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301709n2x4lhsxs2uh2f7/2t8yk1242301674.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301709n2x4lhsxs2uh2f7/2t8yk1242301674.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