Home » date » 2008 » Dec » 21 »

(Partial) Autocorrelation Function

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 21 Dec 2008 09:05:06 -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/21/t1229875541vg2g2jk4bkumg48.htm/, Retrieved Sun, 21 Dec 2008 17:05:43 +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/21/t1229875541vg2g2jk4bkumg48.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 «
67.8 66.9 71.5 75.9 71.9 70.7 73.5 76.1 82.5 87.1 83.2 86.1 85.9 77.4 74.4 69.9 73.8 69.2 69.7 71 71.2 75.8 73 66.4 58.6 55.5 52.6 54.9 54.6 51.2 50.9 49.6 53.4 52 47.5 42.1 44.5 43.2 51.4 59.4 60.3 61.4 68.8 73.6 81.8 79.6 85.8 88.1 89.1 95 96.2 84.2 96.9 103.1 99.3 103.5 112.4 111.1 113.7 92 93 98.4 92.6 94.6 99.5 97.6 91.3 93.6 93.1 78.4 70.2 69.3 71.1 73.5 85.9 91.5 91.8 88.3 91.3 94 99.3 96.7 88 96.7 106.8 114.3 105.7 90.1 91.6 97.7 100.8 104.6 95.9 102.7 104 107.9 113.8 113.8 123.1 125.1 137.6 134 140.3 152.1 150.6 167.3 153.2 142 154.4 158.5 180.9 181.3 172.4 192 199.3 215.4 214.3 201.5 190.5 196 215.7 209.4 214.1 237.8 239 237.8 251.5 248.8 215.4 201.2 203.1 214.2 188.9 203 213.3 228.5 228.2 240.9 258.8 248.5 269.2 289.6 323.4 317.2 322.8 340.9 368.2 388.5 441.2 474.3 483.9 417.9 365.9 263 199.4
 
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
1-0.372854-4.6124e-06
2-0.11203-1.38570.083922
30.0189840.23480.407331
4-0.040083-0.49580.310374
50.0701320.86750.193518
60.0089390.11060.456054
7-0.039906-0.49360.311143
80.0087420.10810.457015
9-0.14165-1.75210.040879
100.1256241.55390.061139
110.1237681.53090.063926
12-0.010032-0.12410.450705
13-0.181875-2.24970.012948
140.089621.10850.134685
15-0.003877-0.0480.480906
16-0.049769-0.61560.269532
170.0498260.61630.269302
18-0.020025-0.24770.402353
19-0.019529-0.24160.404721
200.0671310.83040.203813
21-0.137921-1.7060.04502
220.1825342.25780.012686
23-0.137393-1.69950.045633
24-0.055077-0.68130.248368
250.2046272.53110.00619
26-0.081436-1.00730.157687
27-0.067372-0.83330.202974
280.0941831.1650.12292
29-0.102319-1.26560.103787
300.0721840.89290.186666
310.0129460.16010.436494
32-0.044362-0.54870.291995
330.0173240.21430.415305
34-0.128645-1.59130.056808
350.0970381.20030.115941
360.1000891.2380.1088


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.372854-4.6124e-06
2-0.291587-3.60670.00021
3-0.182395-2.25610.012741
4-0.184415-2.28110.011962
5-0.060301-0.74590.228442
6-0.013978-0.17290.431482
7-0.031277-0.38690.349695
8-0.014913-0.18450.426946
9-0.203048-2.51160.006529
10-0.066134-0.8180.207304
110.1100971.36180.087628
120.1769982.18930.015043
13-0.058175-0.71960.236438
140.0364440.45080.32639
150.0029230.03620.485601
16-0.095492-1.18120.119683
17-0.05442-0.67310.250939
18-0.041665-0.51540.30352
19-0.012549-0.15520.438426
200.0938771.16120.123686
21-0.126377-1.56320.060036
220.0160510.19850.421442
23-0.108492-1.3420.090796
24-0.141258-1.74730.041298
250.1025381.26830.103304
260.0752910.93130.176582
270.0094520.11690.453538
280.0926891.14650.126688
29-0.06028-0.74560.228522
30-0.049101-0.60730.272261
310.0288220.35650.360978
32-0.013196-0.16320.435277
330.0328050.40580.342739
34-0.1414-1.7490.041146
35-0.03244-0.40130.344395
36-0.01029-0.12730.449442
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229875541vg2g2jk4bkumg48/1vvyf1229875504.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229875541vg2g2jk4bkumg48/1vvyf1229875504.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229875541vg2g2jk4bkumg48/24kt41229875504.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229875541vg2g2jk4bkumg48/24kt41229875504.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = -0.1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 36 ; par2 = -0.1 ; par3 = 2 ; 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