Home » date » 2008 » Dec » 09 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 09 Dec 2008 07:39:09 -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/09/t1228833582d98ftjp9r8ndeqj.htm/, Retrieved Tue, 09 Dec 2008 14:39:44 +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/09/t1228833582d98ftjp9r8ndeqj.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:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105,3 103 103,8 103,4 105,8 101,4 97 94,3 96,6 97,1 95,7 96,9 97,4 95,3 93,6 91,5 93,1 91,7 94,3 93,9 90,9 88,3 91,3 91,7 92,4 92 95,6 95,8 96,4 99 107 109,7 116,2 115,9 113,8 112,6 113,7 115,9 110,3 111,3 113,4 108,2 104,8 106 110,9 115 118,4 121,4 128,8 131,7 141,7 142,9 139,4 134,7 125 113,6 111,5 108,5 112,3 116,6 115,5 120,1 132,9 128,1 129,3 132,5 131 124,9 120,8 122 122,1 127,4 135,2 137,3 135 136 138,4 134,7 138,4 133,9 133,6 141,2 151,8 155,4 156,6 161,6 160,7 156 159,5 168,7 169,9 169,9 185,9 190,8 195,8 211,9
 
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
10.2946252.87160.002518
20.0672090.65510.257001
30.0695710.67810.249679
40.0404710.39450.347063
5-0.23871-2.32670.011054
6-0.149444-1.45660.074262
7-0.132098-1.28750.100518
8-0.096788-0.94340.173941
9-0.206115-2.0090.02369
10-0.009951-0.0970.461469
11-0.015156-0.14770.441438
120.0060650.05910.476494
130.1642391.60080.05637
140.3401673.31550.000648
15-0.031235-0.30440.380727
16-0.038958-0.37970.352502
17-0.06176-0.6020.274316
180.0489530.47710.317181
190.0225810.22010.413136
200.0280040.27290.392743
210.0424970.41420.339827
220.0807190.78680.216692
23-0.134879-1.31460.095898
24-0.161015-1.56940.059942
25-0.200469-1.95390.026826
26-0.072483-0.70650.24081
27-0.099944-0.97410.166231
280.0052780.05140.47954
29-0.101494-0.98920.16253
30-0.041605-0.40550.343006
31-0.041048-0.40010.344997
320.1683941.64130.05202
330.062370.60790.27235
340.0262050.25540.399477
350.0552220.53820.295835
360.0956350.93210.176816
37-0.096534-0.94090.174572
38-0.114201-1.11310.134238
39-0.029462-0.28720.387309
400.0206520.20130.42045
41-0.036767-0.35840.360435
420.0269760.26290.396587
43-0.031073-0.30290.381328
44-0.045355-0.44210.329721
45-0.01784-0.17390.431164
460.0884660.86230.195358
47-0.01451-0.14140.443916
480.0616240.60060.274756
490.0851340.82980.204372
500.1032931.00680.1583
51-0.009052-0.08820.464939
520.0140840.13730.445551
530.0536720.52310.30105
540.0380840.37120.35566
55-0.043285-0.42190.337028
56-0.032888-0.32060.374626
57-0.063515-0.61910.268677
587.9e-058e-040.499692
590.0103160.10050.46006
600.0546140.53230.297877


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2946252.87160.002518
2-0.021457-0.20910.417394
30.0609860.59440.276823
40.0045640.04450.482307
5-0.278794-2.71730.003911
6-0.003968-0.03870.484616
7-0.096187-0.93750.175435
8-0.009978-0.09730.461364
9-0.161344-1.57260.059569
100.0595640.58060.281456
11-0.058721-0.57230.284221
12-0.004639-0.04520.482016
130.1885151.83740.034637
140.1869911.82260.035758
15-0.239365-2.3330.010878
16-0.028781-0.28050.389843
17-0.125498-1.22320.112139
180.158431.54420.062934
190.1954921.90540.029875
20-0.024753-0.24130.404936
210.04190.40840.341953
220.0027710.0270.489255
23-0.139541-1.36010.088512
24-0.151381-1.47550.071695
25-0.127931-1.24690.107746
260.0397820.38770.349537
27-0.101515-0.98940.162479
280.076080.74150.230099
29-0.081193-0.79140.21535
30-0.050424-0.49150.312114
31-0.011095-0.10810.457056
320.0050330.04910.48049
33-0.108325-1.05580.146863
34-0.075921-0.740.230568
35-0.011449-0.11160.455691
360.0552680.53870.295682
370.0621760.6060.272974
38-0.012034-0.11730.453437
390.0549530.53560.296739
40-0.100401-0.97860.165134
410.0165960.16180.43592
42-0.021038-0.20510.418983
430.0267690.26090.397362
440.0092580.09020.464144
450.0345190.33650.368636
460.0503060.49030.312518
47-0.016517-0.1610.436221
480.1069021.04190.15004
49-0.025481-0.24840.402195
500.0029080.02830.488722
51-0.008792-0.08570.465944
52-0.030328-0.29560.384092
530.0435040.4240.336253
54-0.032104-0.31290.377519
550.0010230.010.496033
56-0.029679-0.28930.386501
570.0259160.25260.400564
580.0286280.2790.390414
590.0348330.33950.367489
600.0242870.23670.406693
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228833582d98ftjp9r8ndeqj/1vob51228833547.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228833582d98ftjp9r8ndeqj/1vob51228833547.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228833582d98ftjp9r8ndeqj/2x0jb1228833547.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228833582d98ftjp9r8ndeqj/2x0jb1228833547.ps (open in new window)


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