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:47: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/t1261399999p4y6ynye0u85m6k.htm/, Retrieved Mon, 21 Dec 2009 13:53:21 +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/t1261399999p4y6ynye0u85m6k.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.2851053.0970.001221
20.069670.75680.225335
30.2116632.29930.011625
40.1835391.99370.024243
50.1903252.06750.020439
60.0019050.02070.491762
7-0.013478-0.14640.441922
80.1278281.38860.08379
90.0609460.6620.254616
10-0.106163-1.15320.125574
110.070390.76460.22301
120.0334540.36340.358475
13-0.027618-0.30.382349
140.0446740.48530.314187
150.0093690.10180.459554
160.0583290.63360.263778
17-0.05359-0.58210.280791
18-0.09445-1.0260.153497
190.0056010.06080.475793
20-0.110266-1.19780.116698
21-0.101607-1.10370.135977
22-0.088895-0.96560.168097
23-0.126586-1.37510.085857
24-0.067233-0.73030.233316
25-0.047417-0.51510.30373
26-0.118045-1.28230.101125
27-0.030891-0.33560.3689
280.0267940.29110.385759
29-0.032584-0.3540.362002
30-0.020762-0.22550.410978
31-0.040721-0.44230.329526
320.0103130.1120.455496
33-0.027866-0.30270.381324
34-0.069024-0.74980.227434
35-0.122151-1.32690.093552
36-0.029426-0.31960.3749
37-0.04606-0.50030.308884
38-0.082759-0.8990.185245
39-0.014083-0.1530.439336
40-0.049667-0.53950.295274
41-0.032851-0.35680.360921
42-0.040479-0.43970.330474
43-0.082718-0.89850.185362
44-0.012124-0.13170.447722
45-0.051636-0.56090.287961
46-0.076565-0.83170.203627
47-0.091181-0.99050.161983
48-0.072734-0.79010.215528
49-0.099205-1.07760.141696
50-0.082394-0.8950.186299
51-0.080423-0.87360.192051
52-0.103677-1.12620.131179
53-0.014348-0.15590.438205
54-0.02945-0.31990.374801
55-0.046337-0.50330.30783
56-0.010017-0.10880.45677
57-0.049563-0.53840.295659
58-0.043447-0.4720.318914
59-0.016395-0.17810.429477
600.0116150.12620.449905


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2851053.0970.001221
2-0.012642-0.13730.445503
30.2124532.30780.011375
40.0757540.82290.206112
50.1369231.48740.069793
6-0.134565-1.46170.073234
7-0.020989-0.2280.41002
80.0736180.79970.212747
9-0.002772-0.03010.488016
10-0.135627-1.47330.071668
110.1523781.65530.050265
12-0.062744-0.68160.248422
13-0.013351-0.1450.442468
140.0568540.61760.269018
150.0231580.25160.400909
160.006890.07480.470232
17-0.106031-1.15180.125868
18-0.025366-0.27550.391691
19-0.009301-0.1010.459845
20-0.152924-1.66120.049666
210.0401360.4360.33182
22-0.059461-0.64590.259794
23-0.06878-0.74710.228231
240.0193920.21070.41676
250.0385430.41870.338106
26-0.068346-0.74240.229651
270.0298450.32420.37318
280.077880.8460.199633
29-0.008317-0.09030.464081
30-0.066954-0.72730.234238
310.0311990.33890.367642
320.0209530.22760.410173
33-0.105435-1.14530.127199
340.0251990.27370.392383
35-0.111849-1.2150.113398
360.0271270.29470.384381
37-0.051615-0.56070.288039
380.0294810.32020.374675
390.0276150.30.38236
40-0.068246-0.74130.229979
41-0.002-0.02170.491352
42-0.008164-0.08870.464742
43-0.131479-1.42820.077935
440.045090.48980.312593
45-0.065947-0.71640.237591
46-0.02242-0.24350.404003
47-0.104091-1.13070.130233
480.0170940.18570.426503
49-0.059394-0.64520.260032
50-0.028325-0.30770.379432
51-0.000611-0.00660.497359
52-0.031974-0.34730.364481
53-0.018407-0.19990.420933
540.0586910.63760.262501
55-0.078465-0.85230.197874
560.0274070.29770.383223
57-0.092546-1.00530.158404
58-0.033795-0.36710.357099
59-0.00668-0.07260.471138
600.0142430.15470.438655
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261399999p4y6ynye0u85m6k/1esuh1261399622.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261399999p4y6ynye0u85m6k/1esuh1261399622.ps (open in new window)


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


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