Home » date » 2008 » Dec » 24 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 24 Dec 2008 07:31:53 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/24/t12301291902zavyeo879v4t47.htm/, Retrieved Wed, 24 Dec 2008 15:33:10 +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/2008/Dec/24/t12301291902zavyeo879v4t47.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8851946.85670
20.7214475.58830
30.6033464.67359e-06
40.5532374.28543.4e-05
50.5486364.24973.8e-05
60.5087963.94110.000107
70.4314573.3420.000718
80.3592722.78290.003596
90.3343382.58980.006018
100.3660532.83540.003114
110.4309883.33840.000726
120.4393893.40350.000595
130.3008332.33020.011587
140.1427621.10580.136608
150.0296970.230.409425
16-0.0155-0.12010.452417
17-0.029292-0.22690.410637
18-0.082128-0.63620.263546
19-0.151946-1.1770.121929
20-0.215521-1.66940.050122
21-0.232821-1.80340.038172
22-0.203239-1.57430.06034
23-0.155499-1.20450.116566
24-0.148866-1.15310.12672
25-0.234602-1.81720.037089
26-0.330452-2.55970.006507
27-0.374881-2.90380.002576
28-0.368928-2.85770.002929
29-0.339515-2.62990.005418
30-0.340277-2.63580.005335
31-0.357881-2.77210.003703
32-0.373032-2.88950.002681
33-0.352139-2.72770.004177
34-0.303862-2.35370.01094
35-0.244493-1.89380.031536
36-0.206212-1.59730.057725
37-0.235487-1.82410.036561
38-0.266876-2.06720.021518
39-0.26138-2.02460.023681
40-0.227214-1.760.041753
41-0.184447-1.42870.079135
42-0.17643-1.36660.088422
43-0.181898-1.4090.082002
44-0.177937-1.37830.086615
45-0.149749-1.160.125331
46-0.11182-0.86620.194929
47-0.068549-0.5310.298697
48-0.040475-0.31350.377487
49-0.042818-0.33170.370649
50-0.039739-0.30780.379644
51-0.022101-0.17120.432323
520.0075370.05840.476819
530.0340090.26340.396558
540.0280850.21750.414261
550.013320.10320.459083
560.0035040.02710.489218
570.0010480.00810.496776
580.0019640.01520.493957
590.0030910.02390.490487
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8851946.85670
2-0.287031-2.22330.014985
30.1787471.38460.085656
40.1595561.23590.110654
50.114250.8850.189852
6-0.18081-1.40050.08325
7-0.025096-0.19440.423262
80.047730.36970.35645
90.1212080.93890.17578
100.1277730.98970.163141
110.1821851.41120.081675
12-0.176188-1.36470.088715
13-0.580726-4.49831.6e-05
140.0699540.54190.294961
15-0.07743-0.59980.275459
16-0.04371-0.33860.368055
17-0.041441-0.3210.374664
180.0674680.52260.301586
190.0396570.30720.379885
20-0.183047-1.41790.0807
210.0423630.32810.371975
22-0.037162-0.28790.387225
23-0.0347-0.26880.39451
240.0387060.29980.382678
250.0148750.11520.454327
26-0.041823-0.3240.373548
270.0681170.52760.299851
28-0.081248-0.62930.265756
290.0697180.540.295586
300.0066670.05160.479494
31-0.013203-0.10230.459441
32-0.040432-0.31320.377614
33-0.009712-0.07520.470141
34-0.035897-0.27810.390962
35-0.01598-0.12380.450951
360.1048380.81210.209981
37-0.039327-0.30460.380852
380.021930.16990.432843
39-0.027579-0.21360.415782
40-0.029402-0.22770.41031
41-0.135298-1.0480.149417
42-0.042733-0.3310.370895
430.0515940.39960.34542
440.0123140.09540.462165
45-0.001267-0.00980.496102
46-0.044714-0.34640.365145
470.0263740.20430.419409
48-0.08404-0.6510.258775
490.1362261.05520.147781
50-0.01953-0.15130.440131
51-0.008948-0.06930.472485
52-0.016053-0.12430.450728
530.0179290.13890.445007
54-0.071917-0.55710.289776
55-0.057656-0.44660.328385
560.011680.09050.464107
57-0.084217-0.65230.258337
58-0.003972-0.03080.487779
59-0.05539-0.42910.334711
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301291902zavyeo879v4t47/1uy961230129107.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301291902zavyeo879v4t47/1uy961230129107.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301291902zavyeo879v4t47/24frl1230129107.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301291902zavyeo879v4t47/24frl1230129107.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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