Home » date » 2009 » Dec » 06 »

*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: Sun, 06 Dec 2009 08:35:28 -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/06/t1260113993zuzynyao2qvg6zh.htm/, Retrieved Sun, 06 Dec 2009 16:39: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/06/t1260113993zuzynyao2qvg6zh.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 «
9051 8823 8776 8255 7969 8758 8693 8271 7790 7769 8170 8209 9395 9260 9018 8501 8500 9649 9319 8830 8436 8169 8269 7945 9144 8770 8834 7837 7792 8616 8518 7940 7545 7531 7665 7599 8444 8549 7986 7335 7287 7870 7839 7327 7259 6964 7271 6956 7608 7692 7255 6804 6655 7341 7602 7086 6625 6272 6576 6491 7649 7400 6913 6532 6486 7295 7556 7088 6952 6773 6917 7371 8221 7953 8027 7287 8076 8933 9433 9479 9199 9469 10015 10999 13009 13699 13895 13248 13973 15095 15201 14823 14538 14547 14407
 
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.9335189.09880
20.8539638.32340
30.7823887.62580
40.7268027.0840
50.6661276.49260
60.5851995.70380
70.5054324.92632e-06
80.4166464.0615e-05
90.3226213.14450.00111
100.2522142.45830.007886
110.2033991.98250.025157
120.1738881.69490.04669
130.1165811.13630.129347
140.0615250.59970.275077
150.0202880.19770.421836
16-0.003454-0.03370.486605
17-0.024032-0.23420.407652
18-0.049277-0.48030.316063
19-0.073002-0.71150.239248
20-0.09835-0.95860.170099
21-0.129785-1.2650.104484
22-0.140862-1.3730.0865
23-0.141972-1.38380.084835
24-0.137538-1.34060.091631
25-0.158411-1.5440.062956
26-0.181844-1.77240.039768
27-0.195405-1.90460.02993
28-0.192861-1.87980.031601
29-0.192932-1.88050.031554
30-0.196722-1.91740.029095
31-0.197869-1.92860.028384
32-0.207152-2.01910.023149
33-0.218258-2.12730.017992
34-0.216701-2.11210.018649
35-0.208807-2.03520.022308
36-0.190615-1.85790.033141


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9335189.09880
2-0.136081-1.32640.093951
30.0297270.28970.386324
40.0734190.71560.237997
5-0.093382-0.91020.182517
6-0.17632-1.71860.044476
7-0.002869-0.0280.488873
8-0.157277-1.5330.064306
9-0.12333-1.20210.116161
100.1497651.45970.073832
110.0829310.80830.210464
120.0930540.9070.183357
13-0.206573-2.01340.023449
140.0500310.48760.313464
150.0033430.03260.487038
160.0061410.05990.476197
17-0.057382-0.55930.28864
18-0.026894-0.26210.396893
19-0.045322-0.44170.329838
20-0.027887-0.27180.393178
21-0.033845-0.32990.371109
220.1111081.0830.140786
23-0.007092-0.06910.472517
24-0.020484-0.19960.421091
25-0.118043-1.15050.126404
260.0044770.04360.482644
27-0.018392-0.17930.429055
280.0388010.37820.353067
29-0.068039-0.66320.254416
30-0.003328-0.03240.487095
310.0286260.2790.39042
32-0.083562-0.81450.208708
330.0361590.35240.362648
340.016180.15770.437514
35-0.045086-0.43940.330669
360.0385920.37610.353823
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260113993zuzynyao2qvg6zh/1ti561260113726.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260113993zuzynyao2qvg6zh/1ti561260113726.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260113993zuzynyao2qvg6zh/272xs1260113726.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260113993zuzynyao2qvg6zh/272xs1260113726.ps (open in new window)


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