Home » date » 2010 » May » 16 »

Time Series Analysis Champagne

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 May 2010 10:53:21 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/16/t12740072453u3p5mtslh9zvkx.htm/, Retrieved Sun, 16 May 2010 12:54:06 +0200
 
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/2010/May/16/t12740072453u3p5mtslh9zvkx.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2851 2672 2755 2721 2946 3036 2282 2212 2922 4301 5764 7132 2541 2475 3031 3266 3776 3230 3028 1759 3595 4474 6838 8357 3113 3006 4047 3523 3937 3986 3260 1573 3528 5211 7614 9254 5375 3088 3718 4514 4520 4539 3663 1643 4739 5428 8314 10651 3633 4292 4154 4121 4647 4753 3965 1723 5048 6922 9858 11331 4016 3975 4510 4276 4968 4677 3523 1821 5222 6873 10803 13916 2639 2899 3370 3740 2927 3986 4217 1738 5221 6424 9842 13076 3934 3162 4286 4676 5010 4874 4633 1659 5951 6981 9851 12670
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4815674.71844e-06
20.050120.49110.312248
3-0.158617-1.55410.061723
4-0.253133-2.48020.007436
5-0.024492-0.240.405433
60.0523730.51310.304513
7-0.024635-0.24140.404892
8-0.251627-2.46540.00773
9-0.176523-1.72960.043461
100.0057420.05630.477624
110.3903023.82420.000117
120.8383628.21420
130.407343.99116.4e-05
140.0101730.09970.460404
15-0.180952-1.7730.039703
16-0.257264-2.52070.006681
17-0.057281-0.56120.287973
180.0155140.1520.439752
19-0.051372-0.50330.307939
20-0.248919-2.43890.008285
21-0.175524-1.71980.044347
22-0.019334-0.18940.425078
230.3001532.94090.002051
240.6822816.6850
250.3197473.13290.001148
26-0.01602-0.1570.437802
27-0.185905-1.82150.035823
28-0.24073-2.35870.010184
29-0.067612-0.66250.254633
300.007610.07460.470359
31-0.038429-0.37650.353678
32-0.203697-1.99580.024394
33-0.15134-1.48280.070698
34-0.026724-0.26180.397004
350.2286182.240.013699
360.5024494.9232e-06
370.2130062.0870.019768
38-0.04735-0.46390.321875
39-0.176382-1.72820.043585
40-0.219515-2.15080.017001
41-0.075436-0.73910.230819
42-0.014046-0.13760.445413
43-0.055749-0.54620.29309
44-0.179556-1.75930.040857
45-0.135778-1.33030.093278
46-0.043524-0.42640.33537
470.1586781.55470.061652
480.3724643.64940.000214


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4815674.71844e-06
2-0.236673-2.31890.01126
3-0.102737-1.00660.158325
4-0.145322-1.42390.078864
50.2213062.16830.016302
6-0.108075-1.05890.146147
7-0.096159-0.94220.174237
8-0.318922-3.12480.001177
90.2482922.43280.008418
10-0.020068-0.19660.42227
110.5429395.31970
120.6102715.97940
13-0.377396-3.69770.000181
14-0.05947-0.58270.280735
150.0260420.25520.399575
160.0173850.17030.432553
17-0.140858-1.38010.085377
18-0.056402-0.55260.290901
190.0151270.14820.441241
200.0555450.54420.293774
210.0158950.15570.438282
22-0.046011-0.45080.326571
23-0.083463-0.81780.207757
24-0.00988-0.09680.461542
25-0.038717-0.37930.352636
260.0745390.73030.233484
27-0.05142-0.50380.307774
280.0427180.41860.338239
29-0.013085-0.12820.449126
300.0957610.93830.175233
310.0221020.21660.414507
320.0525260.51460.303991
33-0.108933-1.06730.144252
340.0356730.34950.363731
35-0.052616-0.51550.303684
36-0.214238-2.09910.019216
370.0100860.09880.460744
380.067350.65990.25545
390.0490810.48090.315842
40-0.095614-0.93680.175601
410.0196960.1930.42369
42-0.045594-0.44670.32804
43-0.057398-0.56240.287584
44-0.032147-0.3150.37673
45-0.013765-0.13490.446497
46-0.077487-0.75920.224792
470.0206660.20250.419982
480.1393421.36530.08768
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/16/t12740072453u3p5mtslh9zvkx/1p09u1274007197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/16/t12740072453u3p5mtslh9zvkx/1p09u1274007197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/16/t12740072453u3p5mtslh9zvkx/2p09u1274007197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/16/t12740072453u3p5mtslh9zvkx/2p09u1274007197.ps (open in new window)


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