Home » date » 2010 » Dec » 29 »

*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: Wed, 29 Dec 2010 13:28:49 +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/Dec/29/t1293630141omscumo4ju7iuqs.htm/, Retrieved Wed, 29 Dec 2010 14:42: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/2010/Dec/29/t1293630141omscumo4ju7iuqs.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
60178 53200 59909 55970 47682 50173 43090 36031 42143 48478 36046 31060 54874 60051 71622 66526 50140 55973 40393 38483 42879 47875 40578 31027 62027 56493 65566 62653 53470 59600 42542 42018 44038 44988 43309 26843 69770 64886 79354 63025 54003 55926 45629 40361 43039 44570 43269 25563 68707 60223 74283 61232 61531 65305 51699 44599 35221 55066 45335 28702 69517 69240 71525 77740 62107 65450 51493 43067 49172 54483 38158 27898 58648 56000 62381 59849 48345 55376 45400 38389 44098 48290 41267 31238
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4285183.92748.8e-05
20.2217612.03250.022632
30.0295170.27050.39371
4-0.193686-1.77520.039747
5-0.307742-2.82050.002991
6-0.528413-4.8433e-06
7-0.347911-3.18870.001004
8-0.2587-2.3710.010014
9-0.060572-0.55510.290134
100.1197051.09710.137863
110.3132912.87140.002586
120.7901497.24180
130.3372723.09110.001352
140.179451.64470.051886
150.0319430.29280.385212
16-0.178789-1.63860.052516
17-0.291351-2.67030.004549
18-0.527265-4.83253e-06
19-0.344831-3.16040.001096
20-0.289364-2.65210.004781
21-0.11236-1.02980.153031
220.0515630.47260.318868
230.2291882.10050.01934
240.632295.7950
250.2923762.67970.004433
260.1406531.28910.10045
270.0367130.33650.368674
28-0.12823-1.17520.121609
29-0.221807-2.03290.02261
30-0.404151-3.70410.000189
31-0.268346-2.45940.007984
32-0.243031-2.22740.014297
33-0.115455-1.05820.146507
340.0224340.20560.418798
350.1481331.35770.089103
360.4792764.39261.6e-05
370.2437882.23440.014058
380.1262941.15750.125174
390.0501630.45980.323441
40-0.063331-0.58040.281588
41-0.165906-1.52050.066064
42-0.29453-2.69940.004199
43-0.208812-1.91380.029526
44-0.198599-1.82020.036146
45-0.11398-1.04460.149593
46-0.011525-0.10560.458063
470.0731750.67070.252139
480.3218872.95010.002057


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4285183.92748.8e-05
20.0467110.42810.334831
3-0.099546-0.91240.182096
4-0.226405-2.0750.020521
5-0.17891-1.63970.0524
6-0.390362-3.57770.000289
7-0.003795-0.03480.486168
8-0.104499-0.95770.170469
90.0380560.34880.36406
100.0065660.06020.476077
110.1689571.54850.062629
120.6795386.22810
13-0.405553-3.7170.000181
14-0.138659-1.27080.103648
15-0.018155-0.16640.434123
16-0.045148-0.41380.34004
17-0.03739-0.34270.366347
18-0.064246-0.58880.278781
190.0712710.65320.257704
20-0.082885-0.75970.224793
21-0.029371-0.26920.394221
22-0.05082-0.46580.321291
23-0.039236-0.35960.360023
24-0.047393-0.43440.33257
250.0336650.30850.379216
26-0.15503-1.42090.079527
27-0.024553-0.2250.411251
280.0728620.66780.25305
290.0403080.36940.356369
300.185421.69940.046472
31-0.106695-0.97790.165471
32-0.013129-0.12030.452256
33-0.098108-0.89920.185565
34-0.033412-0.30620.380096
35-0.120623-1.10550.136044
36-0.060987-0.5590.28884
370.0998670.91530.181327
380.0622060.57010.285058
39-0.037675-0.34530.365368
400.0174060.15950.436817
41-0.099045-0.90780.183301
42-0.01693-0.15520.43853
43-0.049183-0.45080.326659
44-0.06329-0.58010.281713
45-0.021806-0.19990.421037
46-0.041885-0.38390.351017
47-0.00063-0.00580.497704
48-0.072916-0.66830.252893
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630141omscumo4ju7iuqs/1ii0u1293629325.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630141omscumo4ju7iuqs/1ii0u1293629325.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630141omscumo4ju7iuqs/2s90x1293629325.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630141omscumo4ju7iuqs/2s90x1293629325.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630141omscumo4ju7iuqs/3s90x1293629325.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630141omscumo4ju7iuqs/3s90x1293629325.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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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