Home » date » 2010 » Dec » 19 »

Autocorrelation function D=d=1

*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, 19 Dec 2010 12:57:51 +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/19/t12927635178otqnpnaews2tg7.htm/, Retrieved Sun, 19 Dec 2010 13:58:37 +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/19/t12927635178otqnpnaews2tg7.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 «
206010 198112 194519 185705 180173 176142 203401 221902 197378 185001 176356 180449 180144 173666 165688 161570 156145 153730 182698 200765 176512 166618 158644 159585 163095 159044 155511 153745 150569 150605 179612 194690 189917 184128 175335 179566 181140 177876 175041 169292 166070 166972 206348 215706 202108 195411 193111 195198 198770 194163 190420 189733 186029 191531 232571 243477 227247 217859 208679 213188 216234 213586 209465 204045 200237 203666 241476 260307 243324 244460 233575 237217 235243 230354 227184 221678 217142 219452 256446 265845 248624 241114 229245 231805 219277 219313 212610 214771 211142 211457 240048 240636 230580 208795 197922 194596 194581 185686 178106 172608 167302 168053 202300 202388 182516 173476 166444 171297 169701 164182 161914 159612 151001 158114 186530 187069 174330 169362 166827 178037 186413 189226 191563 188906 186005 195309 223532 226899 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.025997-0.29640.383693
20.2264642.58210.005464
30.0158920.18120.428249
40.1656991.88930.030542
50.1295851.47750.070981
60.0380050.43330.33275
70.0962921.09790.13714
8-0.000309-0.00350.498598
90.1624351.8520.033144
10-0.002752-0.03140.487507
110.1049691.19680.116776
12-0.275431-3.14040.001045
130.0550590.62780.265628
140.0841490.95940.169559
15-0.041229-0.47010.319543
16-0.055564-0.63350.263751
17-0.103555-1.18070.119938
180.056180.64050.261471
19-0.018641-0.21250.416009
200.0144440.16470.434725
21-0.038242-0.4360.331771
22-0.07331-0.83590.202382
23-0.093117-1.06170.145172
24-0.148312-1.6910.046615
25-0.025843-0.29470.384363
26-0.195339-2.22720.013827
27-0.077996-0.88930.187745
28-0.068761-0.7840.217235
29-0.071968-0.82060.206698
30-0.159171-1.81480.035928
31-0.123897-1.41260.080076
32-0.063795-0.72740.234153
330.0280180.31950.374946
34-0.046966-0.53550.296612
350.0807560.92080.17944
36-0.021862-0.24930.401774
370.0083850.09560.46199
38-0.087389-0.99640.160457
390.0227470.25940.397887
40-0.087291-0.99530.160727
410.0500130.57020.284751
420.0086860.0990.460631
430.0398450.45430.325186
44-0.031583-0.36010.359677
45-0.063797-0.72740.234146
460.0348320.39720.345954
47-0.106806-1.21780.112758
48-0.008885-0.10130.459731


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.025997-0.29640.383693
20.2259412.57610.005554
30.0277580.31650.376071
40.1219381.39030.083405
50.1365991.55750.060895
6-0.014493-0.16520.434505
70.0422260.48150.315501
8-0.024637-0.28090.389613
90.1050331.19760.116633
10-0.008122-0.09260.463181
110.036180.41250.340321
12-0.310453-3.53970.000278
13-0.028368-0.32340.373438
140.1899752.16610.016066
15-0.062509-0.71270.23865
16-0.083488-0.95190.171455
17-0.032328-0.36860.356515
180.0377460.43040.333819
190.0445030.50740.306363
200.0112210.12790.449196
210.0458450.52270.30103
22-0.084-0.95780.169983
23-0.121266-1.38260.084573
24-0.259604-2.95990.001829
250.0122460.13960.444585
260.0166140.18940.425026
27-0.110376-1.25850.105237
28-0.041531-0.47350.318314
29-0.031713-0.36160.359127
30-0.07849-0.89490.186241
31-0.015488-0.17660.430052
320.0421940.48110.315634
330.2161842.46490.007505
340.0046250.05270.479013
350.0983841.12170.132019
36-0.061732-0.70390.24139
370.0403370.45990.323172
38-0.133387-1.52080.065364
39-0.109979-1.2540.106054
40-0.103939-1.18510.119072
410.0342650.39070.348337
42-0.048607-0.55420.290196
430.0005310.00610.497589
44-0.00977-0.11140.455736
450.0600870.68510.247249
46-0.02749-0.31340.377227
47-0.055133-0.62860.265351
48-0.0551-0.62820.265475
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927635178otqnpnaews2tg7/1hrzl1292763467.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927635178otqnpnaews2tg7/1hrzl1292763467.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927635178otqnpnaews2tg7/290g51292763467.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927635178otqnpnaews2tg7/290g51292763467.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927635178otqnpnaews2tg7/32sgq1292763467.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927635178otqnpnaews2tg7/32sgq1292763467.ps (open in new window)


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