Home » date » 2010 » Dec » 17 »

*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: Fri, 17 Dec 2010 14:09:32 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/17/t12925948607jcaxbd2xgmznv1.htm/, Retrieved Fri, 17 Dec 2010 15:07:41 +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/2010/Dec/17/t12925948607jcaxbd2xgmznv1.htm/},
    year = {2010},
}
@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 = {2010},
    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.76 102.37 102.38 102.86 102.87 102.92 102.95 103.02 104.08 104.16 104.24 104.33 104.73 104.86 105.03 105.62 105.63 105.63 105.94 106.61 107.69 107.78 107.93 108.48 108.14 108.48 108.48 108.89 108.93 109.21 109.47 109.80 111.73 111.85 112.12 112.15 112.17 112.67 112.80 113.44 113.53 114.53 114.51 115.05 116.67 117.07 116.92 117.00 117.02 117.35 117.36 117.82 117.88 118.24 118.50 118.80 119.76 120.09
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.085651-0.64660.260228
2-0.038335-0.28940.386654
3-0.06786-0.51230.305199
4-0.145992-1.10220.137501
50.074780.56460.287288
6-0.232557-1.75580.04225
70.1613581.21820.114078
8-0.236061-1.78220.04002
90.0107020.08080.467944
10-0.096398-0.72780.234861
11-9e-04-0.00680.497302
120.6108734.6121.2e-05
13-0.016346-0.12340.451108
14-0.061554-0.46470.321951
15-0.108155-0.81660.208792
16-0.209846-1.58430.059329
170.0831650.62790.266294
18-0.104474-0.78880.21676
190.0891340.67290.25185
20-0.117726-0.88880.188921
210.0127650.09640.46178
220.0272570.20580.418846
23-0.108413-0.81850.208241
240.4216163.18310.00118
25-0.018754-0.14160.443951
26-0.001498-0.01130.495508
27-0.179903-1.35820.08987
28-0.141332-1.0670.145227
290.1191510.89960.186067
30-0.117955-0.89050.188459
310.0807050.60930.272369
32-0.080898-0.61080.27189
330.0496130.37460.354684
34-0.080301-0.60630.273375
35-0.061521-0.46450.32204
360.1930961.45780.075186
37-0.020726-0.15650.438104
38-0.0297-0.22420.41169
39-0.091087-0.68770.247217
40-0.031871-0.24060.405355
410.0624420.47140.319567
42-0.035809-0.27040.393932
430.0591350.44650.328478
440.0154760.11680.453697
45-0.010661-0.08050.468064
46-0.004777-0.03610.485677
47-0.029801-0.2250.411395
480.0732060.55270.291317


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.085651-0.64660.260228
2-0.046009-0.34740.364801
3-0.075952-0.57340.284307
4-0.163313-1.2330.111321
50.0393580.29710.383716
6-0.25321-1.91170.030473
70.110310.83280.204211
8-0.29866-2.25480.014001
9-0.01619-0.12220.451573
10-0.26968-2.0360.023202
110.0184270.13910.444922
120.5055643.81690.000168
130.1639141.23750.110483
14-0.161131-1.21650.114402
150.0188030.1420.443808
16-0.344694-2.60240.005889
170.1477341.11540.134687
180.026790.20230.420217
19-0.021734-0.16410.435122
200.0597740.45130.326749
210.0573450.43290.333344
220.0544040.41070.341402
23-0.068656-0.51830.303114
24-0.160069-1.20850.115923
250.0103310.0780.469051
260.0638950.48240.315686
27-0.060369-0.45580.325142
280.1833641.38440.085821
29-0.006615-0.04990.480172
30-0.089796-0.67790.250275
31-0.066809-0.50440.307962
32-0.05904-0.44570.328736
33-0.058932-0.44490.32903
34-0.108014-0.81550.209095
35-0.023262-0.17560.430607
36-0.065183-0.49210.312263
37-0.068865-0.51990.302567
38-0.098824-0.74610.229335
390.0505180.38140.352161
400.0453420.34230.366682
41-0.043489-0.32830.37193
42-0.019035-0.14370.443117
43-0.013831-0.10440.458601
44-0.007519-0.05680.477466
450.0380450.28720.387489
460.0319920.24150.405005
470.0923220.6970.244313
480.0133590.10090.460009
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925948607jcaxbd2xgmznv1/12v8q1292594968.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925948607jcaxbd2xgmznv1/12v8q1292594968.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925948607jcaxbd2xgmznv1/22v8q1292594968.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925948607jcaxbd2xgmznv1/22v8q1292594968.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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