Home » date » 2010 » Jan » 10 »

*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, 10 Jan 2010 06:48:41 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/10/t126313145379u8q1656ckzazy.htm/, Retrieved Sun, 10 Jan 2010 14:50:55 +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/Jan/10/t126313145379u8q1656ckzazy.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
104,28 104,33 104,46 104,46 104,5 104,61 104,66 104,66 105,03 105,32 105,52 105,67 105,71 105,81 106 106,02 106,19 106,22 106,34 106,42 106,84 107,23 107,42 107,63 107,69 107,81 107,92 108,06 108,21 108,44 108,55 108,66 109,23 109,7 109,94 110,13 110,39 110,46 110,67 110,89 110,98 111,12 111,33 111,43 111,87 112,22 112,47 112,64 112,84 113,03 113,09 113,27 113,44 113,51 113,66 113,62 114,01 114,55 114,77 114,87 115,11 115,09 115,24 115,27 115,41 115,59 115,6 115,68 116,2 116,55 116,73 117,04 117,12 117,28 117,48 117,66 117,92 118,12 118,17 118,39
 
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.9662148.64210
20.9318638.33480
30.8967158.02050
40.8609037.70020
50.8250617.37960
60.7891117.0580
70.7527986.73320
80.7158436.40270
90.679386.07660
100.6442385.76220
110.6094155.45080
120.5751995.14471e-06
130.5417684.84573e-06
140.5075584.53971e-05
150.4728354.22923.1e-05
160.4377523.91549.4e-05
170.402813.60280.000272
180.3669153.28180.000765
190.330982.96040.002021
200.2939742.62940.005127
210.2587162.3140.011616
220.2244332.00740.024042
230.1908081.70660.045885
240.1593621.42540.078969
250.1285051.14940.12691
260.0966070.86410.195064
270.0647790.57940.281973
280.0327960.29330.385014
290.0012110.01080.495693
30-0.029471-0.26360.396384
31-0.060428-0.54050.295181
32-0.090993-0.81390.209069
33-0.119066-1.0650.145049
34-0.145202-1.29870.098884
35-0.169969-1.52020.066196
36-0.193254-1.72850.043877
37-0.21444-1.9180.029339
38-0.235842-2.10940.019017
39-0.256149-2.29110.012295
40-0.275613-2.46520.007918
41-0.295002-2.63860.005002
42-0.313408-2.80320.003173
43-0.33059-2.95690.002042
44-0.347725-3.11010.001296
45-0.362368-3.24110.000868
46-0.375136-3.35530.000607
47-0.386262-3.45480.000442
48-0.395026-3.53320.000343


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9662148.64210
2-0.02568-0.22970.409461
3-0.029714-0.26580.39555
4-0.028362-0.25370.400197
5-0.019423-0.17370.431261
6-0.021027-0.18810.425648
7-0.025468-0.22780.410195
8-0.030309-0.27110.39351
9-0.013836-0.12380.450911
10-0.001519-0.01360.494597
11-0.01682-0.15040.440396
12-0.013081-0.1170.453576
13-0.010394-0.0930.463081
14-0.033895-0.30320.381274
15-0.030775-0.27530.391915
16-0.029287-0.2620.397015
17-0.022224-0.19880.421472
18-0.039116-0.34990.363679
19-0.026469-0.23670.406728
20-0.042807-0.38290.351414
21-0.000626-0.00560.497772
22-0.012549-0.11220.455456
23-0.018673-0.1670.433888
240.0039110.0350.48609
25-0.019196-0.17170.432056
26-0.044945-0.4020.344378
27-0.029517-0.2640.396226
28-0.033408-0.29880.38293
29-0.02567-0.22960.409493
30-0.017913-0.16020.436558
31-0.03629-0.32460.373172
32-0.026444-0.23650.406815
330.0072390.06470.474268
34-0.00292-0.02610.489613
35-0.012222-0.10930.456612
36-0.010615-0.09490.462298
37-0.001056-0.00940.496244
38-0.036442-0.32590.372657
39-0.016216-0.1450.442521
40-0.021301-0.19050.42469
41-0.031371-0.28060.389875
42-0.016734-0.14970.4407
43-0.013596-0.12160.451757
44-0.029272-0.26180.397067
450.0092380.08260.467178
46-0.002545-0.02280.490949
47-0.00652-0.05830.476821
480.0053460.04780.480993
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/10/t126313145379u8q1656ckzazy/1te7i1263131319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/10/t126313145379u8q1656ckzazy/1te7i1263131319.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/10/t126313145379u8q1656ckzazy/24kfq1263131319.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/10/t126313145379u8q1656ckzazy/24kfq1263131319.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; 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