Home » date » 2009 » Dec » 19 »

*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: Sat, 19 Dec 2009 10:25:30 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/19/t1261243554hdh7dvah3ad90tr.htm/, Retrieved Sat, 19 Dec 2009 18:25:56 +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/2009/Dec/19/t1261243554hdh7dvah3ad90tr.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
128.7 136.9 156.9 109.1 122.3 123.9 90.9 77.9 120.3 118.9 125.5 98.9 102.9 105.9 117.6 113.6 115.9 118.9 77.6 81.2 123.1 136.6 112.1 95.1 96.3 105.7 115.8 105.7 105.7 111.1 82.4 60 107.3 99.3 113.5 108.9 100.2 103.9 138.7 120.2 100.2 143.2 70.9 85.2 133 136.6 117.9 106.3 122.3 125.5 148.4 126.3 99.6 140.4 80.3 92.6 138.5 110.9 119.6 105 109 129.4 148.6 101.4 134.8 143.7 81.6 90.3 141.5 140.7 140.2 100.2 125.7 119.6 134.7 109 116.3 146.9 97.4 89.4 132.1 139.8 129 112.5 121.9 121.7 123.1 131.6 119.3 132.5 98.3 85.1 131.7 129.3 90.7 78.6 68.9 79.1 83.5 74.1 59.7 93.3 61.3 56.6 98.5
 
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.481223-4.61576e-06
20.0028650.02750.489069
30.0238650.22890.409725
4-0.039069-0.37470.354358
50.0673230.64570.260027
60.1353591.29830.098712
7-0.236807-2.27140.012728
80.0420990.40380.343648
90.0090090.08640.465662
100.0262980.25220.400709
110.1741141.670.049155
12-0.380274-3.64750.000219
130.1330611.27630.102535
140.0380320.36480.358054
150.0812820.77960.218805
16-0.103933-0.99690.160717
170.0174830.16770.433596
18-0.066047-0.63350.263989
190.0442970.42490.335956
200.1067321.02370.154322
210.0196480.18850.425466
22-0.245535-2.35510.010322
230.2232762.14160.017434
240.0151430.14530.442415
25-0.141633-1.35850.088813
260.1929461.85070.033713
27-0.176342-1.69140.047072
280.0229960.22060.412957
290.151881.45680.074291
30-0.108612-1.04180.150124
31-0.028624-0.27460.392138
32-0.027477-0.26350.39636
33-0.042527-0.40790.342146
340.2031091.94820.027222
35-0.095217-0.91330.181738
36-0.087953-0.84360.200535
370.0655640.62890.265498
38-0.058527-0.56140.287955
390.0582670.55890.288802
400.0638920.61280.27075
41-0.119823-1.14930.126705
42-0.017804-0.17080.43239
430.1342291.28750.100578
44-0.008468-0.08120.467721
45-0.05554-0.53270.297754
46-0.015602-0.14970.440683
470.0298920.28670.38749
48-0.084195-0.80760.210709
490.2363192.26670.012876
50-0.152553-1.46320.073405
51-0.036462-0.34970.363671
520.0164330.15760.437552
530.0303370.2910.385859
540.0463740.44480.328754
55-0.069853-0.670.252266
56-0.069175-0.66350.254332
570.082350.78990.215817
580.0089880.08620.465743
59-0.084254-0.80810.210548
600.0777030.74530.228996


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.481223-4.61576e-06
2-0.297636-2.85480.00266
3-0.167881-1.61030.055384
4-0.15076-1.4460.075782
5-0.03118-0.29910.382782
60.2357092.26080.013063
7-0.011815-0.11330.455009
8-0.097979-0.93980.174896
9-0.117001-1.12220.132342
10-0.063013-0.60440.273533
110.2262892.17050.016272
12-0.23305-2.23530.013907
13-0.177157-1.69920.046328
14-0.110431-1.05920.146136
150.1041110.99860.160304
16-0.049065-0.47060.319516
17-0.060554-0.58080.281393
180.0592380.56820.285645
19-0.09587-0.91960.180106
200.0183060.17560.430501
210.1432391.37390.086405
22-0.130194-1.24880.107457
230.1752741.68120.048061
240.1036830.99450.161296
25-0.172484-1.65440.050726
260.0558540.53570.296717
270.0832480.79850.213321
28-0.006165-0.05910.476488
290.0623550.59810.275624
300.0546810.52450.300604
31-0.081365-0.78040.218572
32-0.1582-1.51740.066297
33-0.005469-0.05250.47914
340.0022360.02140.491469
350.1473411.41320.08048
360.116531.11770.133299
37-0.128808-1.23550.109899
38-0.082594-0.79220.215136
39-0.006176-0.05920.476447
400.0119670.11480.454432
410.0136160.13060.448187
420.0299980.28770.387101
430.0659050.63210.264433
44-0.058473-0.56080.288132
450.0080310.0770.469385
46-0.013274-0.12730.449484
470.0639970.61380.270417
48-0.050175-0.48130.315736
490.0566750.54360.294013
50-0.007312-0.07010.472119
510.0578990.55530.290004
520.0023070.02210.491197
53-0.010987-0.10540.45815
540.0735780.70570.241069
55-0.089375-0.85730.196767
56-0.08979-0.86120.195675
57-0.025627-0.24580.403189
580.0257950.24740.402567
59-0.029936-0.28710.387326
60-0.162251-1.55630.06154
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261243554hdh7dvah3ad90tr/1u1aw1261243528.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261243554hdh7dvah3ad90tr/1u1aw1261243528.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261243554hdh7dvah3ad90tr/2ftnt1261243528.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261243554hdh7dvah3ad90tr/2ftnt1261243528.ps (open in new window)


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