Home » date » 2009 » Dec » 13 »

*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, 13 Dec 2009 03:07:50 -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/13/t1260698988lsq9fjwrd047sb9.htm/, Retrieved Sun, 13 Dec 2009 11:09:50 +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/13/t1260698988lsq9fjwrd047sb9.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2.14 2.45 2.52 2.3 2.2541086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698 2.06 1.99 2.25 2.26 2.36 2.3 2.19 2.31 2.21 2.21 2.26 2.18 2.21 2.33 2.12 2.08 1.97 2.09 2.11 2.24 2.45 2.68 2.73 2.76 2.83 3.16 3.22 3.22 3.34 3.35 3.42 3.58 3.71 3.68 3.83 3.94 3.88 4.03 4.15 4.32 4.4 4.37 4.14 4.11 4.16 3.98 4.13 3.76 3.66 3.85 4.03 4.31 4.58 4.46 4.41 3.84 2.84 2.66 2.17 1.43 1.47 1.29 1.23 1.09 0.94 0.76 0.67
 
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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.150315-1.79120.037695
2-0.121051-1.44250.075682
30.0787580.93850.174788
4-0.145475-1.73350.042585
5-0.011174-0.13320.447129
6-0.061946-0.73820.230814
7-0.060237-0.71780.237027
80.035420.42210.336802
90.0151690.18080.428409
10-0.159525-1.9010.029667
110.0634880.75650.225287
120.3656974.35781.3e-05
13-0.09936-1.1840.119193
14-0.075372-0.89820.185311
150.0808980.9640.16834
16-0.131967-1.57260.059022
170.0244460.29130.385622
18-0.053887-0.64210.26091
19-0.089269-1.06380.144622
200.1394261.66150.049414
21-0.044227-0.5270.299501
22-0.170554-2.03240.021989
230.1137531.35550.088702
240.2959533.52670.000284
25-0.09988-1.19020.117975
260.0134690.16050.436359
27-0.060905-0.72580.234588
28-0.098191-1.17010.121965
290.0700340.83460.202686
30-0.114979-1.37010.086403
31-0.014583-0.17380.431145
320.0727650.86710.193675
33-0.042227-0.50320.307804
34-0.102699-1.22380.111526
350.1205751.43680.076486
360.1224121.45870.073427
37-0.030048-0.35810.360413
380.0043910.05230.479174
39-0.027949-0.33310.369793
40-0.065922-0.78560.216718
410.0746670.88980.187549
42-0.110003-1.31080.096014
430.0268230.31960.37486
440.0863331.02880.152666
45-0.095462-1.13760.12861
46-0.006968-0.0830.466973
470.0385130.45890.323493
480.0980821.16880.122226
490.0469870.55990.28821
50-0.041271-0.49180.311809
51-0.068837-0.82030.206712
52-0.015981-0.19040.42462
530.0089670.10690.457526
54-0.051595-0.61480.269827
550.0233130.27780.390781
560.0423350.50450.307354
57-0.05686-0.67760.249573
58-0.022995-0.2740.392236
590.1078191.28480.100476
60-0.062571-0.74560.228566


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.150315-1.79120.037695
2-0.146967-1.75130.041026
30.0374320.44610.328117
4-0.150492-1.79330.037525
5-0.046108-0.54940.291783
6-0.122073-1.45470.073985
7-0.092273-1.09960.136691
8-0.040892-0.48730.313403
9-0.012774-0.15220.439614
10-0.202159-2.4090.008639
11-0.033996-0.40510.343005
120.3410864.06454e-05
130.0357010.42540.335584
14-0.066139-0.78810.215965
150.0409240.48770.313268
16-0.042227-0.50320.307806
170.0166870.19890.421331
18-0.024676-0.2940.384577
19-0.069796-0.83170.203483
200.040550.48320.314846
21-0.003333-0.03970.484189
22-0.109109-1.30020.097821
23-0.033094-0.39440.346954
240.225152.6830.004082
250.029690.35380.362008
260.035860.42730.334898
27-0.109834-1.30880.096354
28-0.032986-0.39310.347429
290.0432230.51510.303656
30-0.013668-0.16290.435424
31-0.025716-0.30640.37986
32-0.101619-1.21090.113967
330.0228250.2720.393013
34-0.002043-0.02430.490305
35-0.007793-0.09290.463072
36-0.041426-0.49360.311159
370.0178950.21320.41572
380.0043880.05230.479187
390.039110.4660.320947
40-0.042252-0.50350.3077
410.027320.32560.372621
420.0152360.18160.428093
430.0535550.63820.262192
44-0.026447-0.31510.376556
45-0.018401-0.21930.413374
460.0447430.53320.297375
47-0.006718-0.080.468156
480.0220250.26250.396674
490.0475870.56710.285783
50-0.018092-0.21560.414806
51-0.012795-0.15250.439517
520.009190.10950.456474
53-0.029394-0.35030.36333
540.0196490.23410.407605
55-0.007352-0.08760.465155
560.0090030.10730.457359
57-0.025399-0.30270.381295
58-0.023269-0.27730.390984
590.0907571.08150.140656
60-0.127793-1.52280.065013
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698988lsq9fjwrd047sb9/1d00p1260698868.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698988lsq9fjwrd047sb9/1d00p1260698868.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698988lsq9fjwrd047sb9/2b7rq1260698868.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698988lsq9fjwrd047sb9/2b7rq1260698868.ps (open in new window)


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