Home » date » 2008 » Dec » 19 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 19 Dec 2008 03:57:15 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/19/t1229684300vxloqzvukyy1zn7.htm/, Retrieved Fri, 19 Dec 2008 11:58:25 +0100
 
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/2008/Dec/19/t1229684300vxloqzvukyy1zn7.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
101.7 101.9 102 102.2 102.4 102.6 102.6 102.5 102.5 102.6 102.7 102.9 103.1 103.2 103.2 103 102.8 102.6 102.4 102.2 101.9 101.6 101.3 101.2 111.7 111.4 111.1 111.1 111.3 111.9 112.4 112.9 113 113 112.7 112.4 112.3 112.5 112.8 113.2 114 114.9 115.6 115.5 115 114.9 115.2 115.4 115 114.6 114.5 114.4 113.9 113.2 112.7 112.6 112.5 112.3 112 111.7 119.2
 
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
1-0.028771-0.22290.4122
2-0.05796-0.4490.327539
3-0.043968-0.34060.367307
4-0.026819-0.20770.418068
50.0033880.02620.489575
6-0.026999-0.20910.417527
7-0.039884-0.30890.37922
8-0.053062-0.4110.341264
9-0.036668-0.2840.388682
10-0.044453-0.34430.3659
11-0.058804-0.45550.325199
12-0.046596-0.36090.359709
13-0.002948-0.02280.490928
140.0013060.01010.49598
15-0.010778-0.08350.466872
16-0.010077-0.07810.46902
170.0085380.06610.473746
180.0394210.30540.380577
190.009660.07480.4703
20-0.022193-0.17190.432045
21-0.016044-0.12430.450754
22-0.000929-0.00720.497142
23-0.004309-0.03340.486741
24-0.048952-0.37920.352945
25-0.056896-0.44070.330501
26-0.035005-0.27110.393604
27-0.019034-0.14740.44164
28-0.038401-0.29750.383574
29-0.033515-0.25960.398028
30-0.020711-0.16040.436542
310.0104060.08060.468013
32-0.006122-0.04740.481167
33-0.021433-0.1660.43435
34-0.042504-0.32920.371561
35-0.043698-0.33850.368091
360.458663.55280.000375
370.0031510.02440.490304
38-0.007686-0.05950.476363
39-0.010644-0.08240.467283
40-0.012369-0.09580.461995
41-0.007776-0.06020.476084
42-0.007891-0.06110.475732
43-0.009577-0.07420.470557
44-0.011362-0.0880.465082
45-0.012272-0.09510.462294
46-0.003658-0.02830.488746
47-0.000298-0.00230.499083
480.002610.02020.49197
490.0019330.0150.494051
50-0.002397-0.01860.492625
51-0.002546-0.01970.492165
52-0.007985-0.06180.475444
53-0.014124-0.10940.456623
54-0.010963-0.08490.466304
55-0.002518-0.01950.492251
56-0.002673-0.02070.491776
57-0.002941-0.02280.490949
58-0.007918-0.06130.47565
59-0.003941-0.03050.487873
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.028771-0.22290.4122
2-0.058837-0.45570.325108
3-0.047631-0.36890.356734
4-0.033365-0.25840.398475
5-0.004102-0.03180.487378
6-0.033024-0.25580.399489
7-0.045188-0.350.363772
8-0.06141-0.47570.318016
9-0.049916-0.38660.350193
10-0.062372-0.48310.31538
11-0.079428-0.61530.270358
12-0.072084-0.55840.289339
13-0.032441-0.25130.401225
14-0.029028-0.22490.411429
15-0.038481-0.29810.383339
16-0.036866-0.28560.388097
17-0.019819-0.15350.439252
180.0097760.07570.469944
19-0.016115-0.12480.450539
20-0.044137-0.34190.366816
21-0.039332-0.30470.380838
22-0.028476-0.22060.413087
23-0.033315-0.25810.398622
24-0.075042-0.58130.281617
25-0.085141-0.65950.256049
26-0.072636-0.56260.28789
27-0.06576-0.50940.306178
28-0.089696-0.69480.244937
29-0.088274-0.68380.248378
30-0.085238-0.66030.25581
31-0.066559-0.51560.304026
32-0.091477-0.70860.240665
33-0.113117-0.87620.192208
34-0.152094-1.17810.121701
35-0.188101-1.4570.075162
360.3583432.77570.003668
37-0.043787-0.33920.367832
38-0.018108-0.14030.444461
39-0.025581-0.19820.421799
40-0.039641-0.30710.37993
41-0.066409-0.51440.304431
42-0.042838-0.33180.37059
43-0.035912-0.27820.390918
44-0.022634-0.17530.43071
45-0.033838-0.26210.397069
46-0.010754-0.08330.466944
470.0131590.10190.459578
480.0155480.12040.45227
49-0.018391-0.14250.443597
50-0.025666-0.19880.421542
51-0.016912-0.1310.448107
52-0.027547-0.21340.415879
53-0.050416-0.39050.348766
54-0.080367-0.62250.26798
55-0.052468-0.40640.34294
56-0.024034-0.18620.426471
57-0.027739-0.21490.415301
58-0.044837-0.34730.364788
59-0.039066-0.30260.381619
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229684300vxloqzvukyy1zn7/1mdc31229684233.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229684300vxloqzvukyy1zn7/1mdc31229684233.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229684300vxloqzvukyy1zn7/2w6wy1229684233.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229684300vxloqzvukyy1zn7/2w6wy1229684233.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 1 ; par3 = 0 ; par4 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; 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