Home » date » 2008 » Dec » 11 »

autocorrelation

*The author of this computation has been verified*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 11 Dec 2008 10:20:40 -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/11/t1229016088dsxicibs4f8x1j0.htm/, Retrieved Thu, 11 Dec 2008 17:21:30 +0000
 
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/11/t1229016088dsxicibs4f8x1j0.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99.5 93.5 104.6 95.3 102.8 103.3 100.2 107.9 107.5 119.8 112 102.1 105.3 101.3 108.4 107.4 109.1 109.5 111.4 110.1 117 129.6 113.5 113.3 110.1 107.4 110.1 112.5 106 117.6 117.8 113.5 121.2 130.4 115.2 117.9 110.7 107.6 124.3 115.1 112.5 127.9 117.4 119.3 130.4 126 125.4 130.5 115.9 108.7 124 119.4 118.6 131.3 111.1 124.8 132.3 126.7 131.7 130.9 122.1 113.2 133.6 119.2 129.4 131.4 117.1 130.5 132.3 140.8 137.5 128.6 126.7 120.8 139.3 128.6 131.3 136.3 128.8 133.2 136.3 151.1 145 134.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
10.7019616.43360
20.6146955.63380
30.5985415.48570
40.434513.98247.2e-05
50.491774.50711.1e-05
60.5005814.58798e-06
70.4006053.67160.000211
80.3554583.25780.00081
90.4338233.97617.4e-05
100.3704983.39570.000524
110.4650564.26232.6e-05
120.5885865.39450
130.3721543.41080.000499
140.346193.17290.001054
150.2771692.54030.006458
160.1526341.39890.08276
170.2270182.08070.020256
180.2131371.95340.027049
190.1269051.16310.12404
200.1184621.08570.140354
210.1623191.48770.07029
220.1471541.34870.090531
230.251012.30050.011948
240.2817552.58230.005774
250.1588841.45620.074533
260.1470171.34740.090732
270.0554890.50860.306197
28-0.028338-0.25970.397858
290.0194010.17780.429651
30-0.009566-0.08770.465173
31-0.041952-0.38450.350792
32-0.048579-0.44520.328647
33-0.064397-0.59020.278318
34-0.027418-0.25130.401102
350.0374240.3430.36623
360.0631870.57910.282031


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7019616.43360
20.2404062.20340.015153
30.2134741.95650.026863
4-0.178836-1.63910.052471
50.2668372.44560.008275
60.1064780.97590.165962
7-0.069186-0.63410.26387
8-0.145767-1.3360.092583
90.3409863.12520.00122
10-0.046893-0.42980.334227
110.258472.36890.010067
120.1940311.77830.039484
13-0.348998-3.19860.000974
14-0.180804-1.65710.050615
15-0.118082-1.08220.141122
16-0.015626-0.14320.443231
170.0210230.19270.423839
180.022660.20770.417991
190.0096540.08850.464854
20-0.027221-0.24950.401796
210.0794490.72820.234269
220.1192471.09290.138778
23-0.012648-0.11590.453998
24-0.093097-0.85320.197974
250.0257640.23610.406954
26-0.066895-0.61310.270732
27-0.074725-0.68490.247656
28-0.093882-0.86040.195998
29-0.005375-0.04930.480413
30-0.011619-0.10650.457725
310.1022470.93710.175695
32-0.047994-0.43990.330581
33-0.10161-0.93130.17719
340.0566910.51960.302362
35-0.024744-0.22680.41057
360.0824320.75550.22603
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016088dsxicibs4f8x1j0/1cl0n1229016038.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016088dsxicibs4f8x1j0/1cl0n1229016038.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016088dsxicibs4f8x1j0/2rqx71229016038.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229016088dsxicibs4f8x1j0/2rqx71229016038.ps (open in new window)


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