Home » date » 2009 » Dec » 28 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 28 Dec 2009 12:57:26 -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/28/t1262030398kt08x1xeaxoglo0.htm/, Retrieved Mon, 28 Dec 2009 21:00:00 +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/28/t1262030398kt08x1xeaxoglo0.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 «
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.41 2443.27 2513.17 2466.92
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2933672.25340.013982
20.077640.59640.276606
30.2221851.70660.046574
40.2405631.84780.034823
50.2524651.93920.028631
6-0.040352-0.310.378845
7-0.051907-0.39870.345775
80.1417851.08910.140275
90.0243640.18710.426095
10-0.169302-1.30040.099255
110.1146390.88060.191065
12-0.012426-0.09540.462142
13-0.039393-0.30260.381635
140.0488170.3750.354514
15-0.058522-0.44950.327353
160.0429460.32990.371331
17-0.124097-0.95320.172186
18-0.170674-1.3110.097473
190.0180370.13850.445142
20-0.09558-0.73420.232879
21-0.170992-1.31340.097064
22-0.177413-1.36270.089073
23-0.159168-1.22260.113173
24-0.116244-0.89290.187773
25-0.07093-0.54480.293964
26-0.123643-0.94970.173065
27-0.029967-0.23020.409374
280.0535750.41150.341092
29-0.034815-0.26740.395039
30-0.037619-0.2890.386814
31-0.079569-0.61120.271714
32-0.020117-0.15450.438863
33-0.039693-0.30490.380761
34-0.090533-0.69540.244768
35-0.115249-0.88520.189808
36-0.044641-0.34290.366447
37-0.007423-0.0570.477363
38-0.03327-0.25550.399594
39-0.053953-0.41440.340035
40-0.04658-0.35780.360889
410.0126550.09720.461446
420.0151030.1160.454019
430.0235980.18130.428394
44-0.007077-0.05440.478416
450.0040280.03090.48771
460.012680.09740.461372
470.0015480.01190.495275
480.0074190.0570.477375
490.0145180.11150.455793
500.0239430.18390.427358
510.0174690.13420.446859
520.0059610.04580.481816
530.0051740.03970.484218
540.019660.1510.44024
550.0183410.14090.444222
560.0094370.07250.471231
570.0006320.00490.498072
58-0.0014-0.01080.495729
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2933672.25340.013982
2-0.009218-0.07080.471897
30.2209341.6970.047481
40.1326511.01890.156202
50.1746991.34190.092387
6-0.217285-1.6690.050209
7-0.057807-0.4440.329325
80.0726630.55810.289431
9-0.061318-0.4710.319691
10-0.172441-1.32450.095216
110.3081952.36730.010609
12-0.179998-1.38260.086001
130.0198720.15260.439602
140.1100280.84510.200724
15-0.056897-0.4370.33184
16-0.092939-0.71390.239058
17-0.091982-0.70650.241322
18-0.060666-0.4660.321472
19-0.006218-0.04780.481034
20-0.087256-0.67020.252663
210.0633780.48680.314096
22-0.206877-1.58910.058696
23-0.0011-0.00840.496644
24-0.045473-0.34930.36406
250.0536150.41180.340979
260.0030950.02380.490557
270.0538240.41340.340395
280.1061820.81560.209005
29-0.025131-0.1930.423797
30-0.162629-1.24920.108267
310.0159740.12270.451382
32-0.090504-0.69520.244837
33-0.084261-0.64720.259999
340.0098970.0760.469831
35-0.034761-0.2670.395199
360.0224550.17250.431825
370.0409230.31430.377187
380.0719330.55250.291338
39-0.141722-1.08860.140382
40-0.064896-0.49850.31
410.0134680.10350.458978
42-0.051069-0.39230.348137
430.0229680.17640.430284
440.0157150.12070.452166
45-0.02366-0.18170.428208
46-0.011574-0.08890.464731
47-0.05012-0.3850.350819
480.016510.12680.449757
490.0162230.12460.450627
500.041220.31660.376326
510.0158460.12170.45177
52-0.033316-0.25590.399457
53-0.048727-0.37430.354768
54-0.038271-0.2940.384909
55-0.034485-0.26490.39601
56-0.056396-0.43320.333229
57-0.090805-0.69750.244118
580.0678530.52120.302093
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030398kt08x1xeaxoglo0/1y0vu1262030243.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030398kt08x1xeaxoglo0/1y0vu1262030243.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030398kt08x1xeaxoglo0/2pgz71262030243.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030398kt08x1xeaxoglo0/2pgz71262030243.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 0.9 ; 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