Home » date » 2009 » Dec » 21 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 21 Dec 2009 04:27:10 -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/21/t1261394863d3ncs4s6kcijh15.htm/, Retrieved Mon, 21 Dec 2009 12:27:45 +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/21/t1261394863d3ncs4s6kcijh15.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 «
581 597 587 536 524 537 536 533 528 516 502 506 518 534 528 478 469 490 493 508 517 514 510 527 542 565 555 499 511 526 532 549 561 557 566 588 620 626 620 573 573 574 580 590 593 597 595 612 628 629 621 569 567 573 584 589 591 595 594 611
 
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.240481.84720.03487
2-0.253569-1.94770.028107
3-0.271351-2.08430.020736
4-0.173781-1.33480.093529
50.0845530.64950.259279
60.2248781.72730.044671
70.0879850.67580.250895
8-0.221612-1.70220.046988
9-0.275659-2.11740.019226
10-0.219224-1.68390.048743
110.242971.86630.033487
120.732575.6270
130.1246950.95780.171035
14-0.249413-1.91580.030121
15-0.244891-1.8810.032452
16-0.166905-1.2820.102425
170.0390170.29970.38273
180.1485681.14120.129205
190.0399080.30650.380136
20-0.232469-1.78560.03965
21-0.249982-1.92020.029838
22-0.167542-1.28690.101575
230.1934981.48630.071264
240.5117043.93050.000113
250.0500930.38480.350896
26-0.223415-1.71610.045697
27-0.153089-1.17590.122179
28-0.105792-0.81260.209856
290.0335140.25740.398872
300.0980420.75310.227199
310.0267010.20510.419102
32-0.193302-1.48480.071463
33-0.165037-1.26770.104947
34-0.064354-0.49430.311461
350.1415751.08750.140629
360.2941812.25960.013775
370.0386540.29690.383791
38-0.114281-0.87780.191805
39-0.087873-0.6750.251167
40-0.033213-0.25510.399763
410.0321990.24730.402758
420.0621320.47720.317476
430.019410.14910.440995
44-0.083383-0.64050.262172
45-0.065934-0.50640.307215
46-0.018748-0.1440.442995
470.0657920.50540.307596
480.1418821.08980.140112
490.0176230.13540.446392
50-0.066472-0.51060.305775
51-0.037475-0.28780.387235
52-0.014061-0.1080.45718
53-0.002394-0.01840.492696
540.0048440.03720.485221
55-0.006961-0.05350.478769
56-0.038169-0.29320.385206
57-0.00963-0.0740.470643
580.012510.09610.461888
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.240481.84720.03487
2-0.330514-2.53870.006892
3-0.131948-1.01350.157478
4-0.169972-1.30560.098382
50.0705310.54180.295013
60.0798360.61320.271041
7-0.005163-0.03970.484249
8-0.204601-1.57160.060699
9-0.121931-0.93660.176399
10-0.24529-1.88410.03224
110.2538041.94950.027996
120.5976184.59041.2e-05
13-0.191436-1.47040.073377
140.0591710.45450.325568
15-0.019912-0.1530.43948
16-0.103579-0.79560.214725
17-0.087362-0.6710.252408
18-0.172965-1.32860.094553
19-0.05221-0.4010.344922
20-0.035598-0.27340.392737
21-0.02674-0.20540.418986
22-0.011909-0.09150.463713
23-0.107881-0.82870.205321
24-0.042903-0.32950.371455
25-0.045142-0.34670.365009
26-0.072928-0.56020.288741
270.1052060.80810.211138
28-0.020181-0.1550.438669
290.028820.22140.412783
30-0.034198-0.26270.396855
310.0026620.02040.491879
32-0.008703-0.06690.473462
330.0231260.17760.429809
340.0386590.29690.383777
35-0.08653-0.66460.254433
36-0.161232-1.23840.110227
370.1202070.92330.179798
38-2.6e-05-2e-040.499921
39-0.093056-0.71480.238782
400.0785570.60340.274275
41-0.053609-0.41180.340997
420.0395540.30380.381167
43-0.008993-0.06910.472581
440.1100430.84530.200691
450.0166680.1280.449281
46-0.046516-0.35730.361073
470.0153550.11790.453255
48-0.027595-0.2120.416433
49-0.079807-0.6130.271113
50-0.026756-0.20550.418938
51-0.047335-0.36360.358733
52-0.056369-0.4330.333305
53-0.007249-0.05570.477893
54-0.051106-0.39260.348032
55-0.039865-0.30620.380263
56-0.088689-0.68120.249194
570.0211390.16240.435783
580.01060.08140.467691
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261394863d3ncs4s6kcijh15/1r4op1261394828.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261394863d3ncs4s6kcijh15/1r4op1261394828.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/21/t1261394863d3ncs4s6kcijh15/2hy6y1261394828.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/21/t1261394863d3ncs4s6kcijh15/2hy6y1261394828.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