Home » date » 2008 » Dec » 17 »

Taak

*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, 17 Dec 2008 11:31:00 -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/17/t1229538685aa8dcqbkq8zp29j.htm/, Retrieved Wed, 17 Dec 2008 19:31:27 +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/17/t1229538685aa8dcqbkq8zp29j.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 «
513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 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
 
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.2437692.08280.020388
2-0.167359-1.42990.078503
3-0.278663-2.38090.00994
4-0.228896-1.95570.027165
50.0459810.39290.347784
60.1702631.45470.075016
70.0553640.4730.318802
8-0.308419-2.63510.005133
9-0.277549-2.37140.010181
10-0.098362-0.84040.201714
110.2149951.83690.035146
120.7299376.23660
130.1863831.59250.057802
14-0.129118-1.10320.136786
15-0.275411-2.35310.010657
16-0.212718-1.81750.036625
170.0285760.24420.403899
180.1185071.01250.157315
190.0393090.33590.368973
20-0.261369-2.23310.014303
21-0.221253-1.89040.031338
22-0.072179-0.61670.269676
230.172791.47630.07208
240.5720154.88733e-06
250.1419421.21280.114567
26-0.141504-1.2090.11528
27-0.238429-2.03710.022631
28-0.165859-1.41710.080354
290.0245140.20940.417342
300.0759470.64890.259222
310.0156580.13380.446971
32-0.212222-1.81320.036954
33-0.168418-1.4390.077218
34-0.064829-0.55390.290671
350.1041310.88970.188275
360.4350493.71710.000196
370.1024760.87560.192071
38-0.120002-1.02530.154304
39-0.211838-1.80990.03721
40-0.120723-1.03150.152865
410.0186130.1590.437042
420.0851930.72790.234504
430.0259120.22140.412703
44-0.178996-1.52930.065251
45-0.127156-1.08640.140434
46-0.050363-0.43030.334122
470.0674460.57630.283107
480.313922.68210.004521


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2437692.08280.020388
2-0.24111-2.060.02148
3-0.191054-1.63240.053454
4-0.165811-1.41670.080413
50.0643870.55010.291956
60.0354270.30270.381494
7-0.063568-0.54310.29435
8-0.349505-2.98620.001922
9-0.120863-1.03270.152587
10-0.122529-1.04690.149303
110.0965620.8250.206023
120.6308095.38960
13-0.120584-1.03030.153142
140.1584551.35380.089983
15-0.088416-0.75540.226213
16-0.098928-0.84520.20037
17-0.042974-0.36720.357278
18-0.130303-1.11330.134615
19-0.012494-0.10670.457642
200.0967360.82650.205603
210.0082850.07080.47188
220.0131660.11250.455371
23-0.037932-0.32410.373397
240.0389140.33250.370239
25-0.070712-0.60420.273803
26-0.116978-0.99950.160437
270.0414180.35390.362227
28-0.010992-0.09390.462716
290.0364920.31180.378044
30-0.028306-0.24190.404787
31-0.060423-0.51630.303618
320.0477650.40810.342194
33-0.046642-0.39850.345708
34-0.104126-0.88970.188286
35-0.090863-0.77630.22003
36-0.025178-0.21510.415138
37-0.02951-0.25210.400824
380.0025930.02220.491194
39-0.071623-0.61190.271237
400.0638240.54530.2936
41-0.05033-0.430.334223
420.0627550.53620.296733
43-0.06508-0.5560.28994
44-0.040068-0.34230.366538
450.0122720.10490.45839
46-0.056493-0.48270.315385
47-0.027068-0.23130.408878
48-0.053985-0.46130.322995
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229538685aa8dcqbkq8zp29j/1zvcr1229538658.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229538685aa8dcqbkq8zp29j/1zvcr1229538658.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229538685aa8dcqbkq8zp29j/2dcqx1229538658.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229538685aa8dcqbkq8zp29j/2dcqx1229538658.ps (open in new window)


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