Home » date » 2009 » Dec » 21 »

*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: Mon, 21 Dec 2009 05:19:04 -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/21/t1261398010zhf2mdrbvonu167.htm/, Retrieved Mon, 21 Dec 2009 13:20:13 +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/21/t1261398010zhf2mdrbvonu167.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 «
3030.29 2803.47 2767.63 2882.6 2863.36 2897.06 3012.61 3142.95 3032.93 3045.78 3110.52 3013.24 2987.1 2995.55 2833.18 2848.96 2794.83 2845.26 2915.02 2892.63 2604.42 2641.65 2659.81 2638.53 2720.25 2745.88 2735.7 2811.7 2799.43 2555.28 2304.98 2214.95 2065.81 1940.49 2042 1995.37 1946.81 1765.9 1635.25 1833.42 1910.43 1959.67 1969.6 2061.41 2093.48 2120.88 2174.56 2196.72 2350.44 2440.25 2408.64 2472.81 2407.6 2454.62 2448.05 2497.84 2645.64 2756.76 2849.27 2921.44 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 3161.69 3257.16 3277.01 3295.32 3363.99 3494.17 3667.03 3813.06 3917.96 3895.51 3801.06 3570.12 3701.61 3862.27 3970.1 4138.52 4199.75 4290.89 4443.91 4502.64 4356.98 4591.27 4696.96 4621.4 4562.84 4202.52 4296.49 4435.23 4105.18 4116.68 3844.49 3720.98 3674.4 3857.62 3801.06 3504.37 3032.6 3047.03 2962.34 2197.82 2014.45 1862.83 1905.41 1810.99 1670.07 1864.44 2052.02 2029.6 2070.83 2293 etc...
 
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.98065910.69770
20.95177210.38260
30.91997710.03580
40.8795429.59470
50.8311119.06640
60.7755858.46060
70.7199517.85370
80.6633237.2360
90.6009156.55520
100.5371895.860
110.4776915.2110
120.4154484.5327e-06
130.352993.85079.6e-05
140.2926573.19250.000902
150.2359942.57440.005634
160.1795521.95870.026245
170.1210211.32020.094654
180.0674960.73630.231501
190.0192530.210.417004
20-0.028732-0.31340.377252
21-0.073658-0.80350.211639
22-0.114661-1.25080.106731
23-0.151651-1.65430.050349
24-0.18225-1.98810.024548
25-0.210553-2.29690.011687
26-0.234918-2.56270.005817
27-0.255925-2.79180.003054
28-0.276462-3.01580.001567
29-0.295439-3.22290.000819
30-0.312485-3.40880.000446
31-0.327879-3.57670.000252
32-0.342292-3.7340.000145
33-0.358321-3.90887.7e-05
34-0.372107-4.05924.4e-05
35-0.383807-4.18682.7e-05
36-0.392013-4.27641.9e-05
37-0.399594-4.35911.4e-05
38-0.405615-4.42471.1e-05
39-0.409545-4.46769e-06
40-0.413786-4.51398e-06
41-0.417314-4.55246e-06
42-0.420514-4.58736e-06
43-0.420657-4.58886e-06
44-0.417242-4.55166e-06
45-0.413178-4.50728e-06
46-0.407918-4.44991e-05
47-0.400895-4.37321.3e-05
48-0.391748-4.27351.9e-05
49-0.381008-4.15633.1e-05
50-0.367273-4.00655.4e-05
51-0.350672-3.82540.000105
52-0.331393-3.61510.000221
53-0.308979-3.37060.000506
54-0.28651-3.12550.001115
55-0.263208-2.87130.002421
56-0.237915-2.59530.005319
57-0.212501-2.31810.011076
58-0.185621-2.02490.022558
59-0.15797-1.72320.04372
60-0.130236-1.42070.079008


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.98065910.69770
2-0.258946-2.82480.002775
3-0.03192-0.34820.364149
4-0.235326-2.56710.005747
5-0.145525-1.58750.057527
6-0.15737-1.71670.044317
70.0742660.81010.209736
8-0.02522-0.27510.391851
9-0.120966-1.31960.094754
10-0.011109-0.12120.451874
110.0872390.95170.171598
12-0.156169-1.70360.045532
130.0247520.270.393808
14-0.010646-0.11610.453872
150.0338160.36890.356432
16-0.115432-1.25920.105209
17-0.06405-0.69870.243051
180.0626940.68390.24768
190.0035130.03830.484749
20-0.063797-0.69590.24391
210.0621750.67820.249465
22-0.052777-0.57570.282941
23-0.009684-0.10560.458024
240.0944031.02980.152593
25-0.021653-0.23620.406841
26-0.038651-0.42160.337029
27-0.061797-0.67410.250769
28-0.04284-0.46730.320558
29-0.073395-0.80060.212467
30-0.042728-0.46610.320994
310.0131530.14350.443077
32-0.038512-0.42010.33758
33-0.113553-1.23870.108944
340.042360.46210.322429
35-0.034939-0.38110.351888
360.1084391.18290.119597
37-0.090446-0.98670.162907
380.0453410.49460.310895
39-0.080635-0.87960.190419
40-0.0972-1.06030.145571
41-0.000757-0.00830.496712
42-0.027698-0.30210.381534
430.0219040.23890.405782
440.0926241.01040.157174
45-0.063185-0.68930.245999
460.0067940.07410.47052
47-0.069922-0.76280.22356
480.0582730.63570.2631
49-0.015816-0.17250.431655
500.0387060.42220.336808
516.8e-057e-040.499705
52-0.003042-0.03320.486792
530.0337620.36830.356651
54-0.064434-0.70290.241748
55-0.03783-0.41270.340293
560.0364560.39770.345786
57-0.042485-0.46350.321941
580.0545030.59460.276634
590.014630.15960.436733
60-0.016354-0.17840.429357
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261398010zhf2mdrbvonu167/1yaoo1261397942.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261398010zhf2mdrbvonu167/1yaoo1261397942.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/21/t1261398010zhf2mdrbvonu167/21ahc1261397942.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261398010zhf2mdrbvonu167/21ahc1261397942.ps (open in new window)


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