Home » date » 2007 » Nov » 29 » attachments

workshop3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 09:11:06 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/29/t1196352040d90uoge7be5emg5.htm/, Retrieved Thu, 29 Nov 2007 17:00:40 +0100
 
User-defined keywords:
bridome
 
Dataseries X:
» Textbox « » Textfile « » CSV «
540 522 526 527 516 503 489 479 475 524 552 532 511 492 492 493 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 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
 
Text written by user:
 
Output produced by software:


Summary of compuational 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
019.69540
10.9453259.16530
20.8812628.54410
30.8256598.00510
40.7824847.58650
50.7360357.13610
60.6851146.64240
70.6395966.20110
80.5835955.65820
90.5297255.13591e-06
100.4685074.54238e-06
110.4235234.10624.3e-05
120.3866923.74910.000153
130.3602183.49240.000366
140.3298723.19820.000942
150.2851112.76430.003433
160.2379022.30650.011638
170.1870761.81380.036452
180.1450421.40620.081476
190.0989350.95920.169958
200.054350.52690.299738
210.0037350.03620.485596
22-0.049828-0.48310.684926
23-0.099655-0.96620.831786
24-0.1483-1.43780.923097
25-0.184177-1.78570.96131
26-0.217146-2.10530.981035
27-0.238743-2.31470.988597
28-0.270252-2.62020.994876
29-0.299113-2.90.997677
30-0.333213-3.23060.999149
31-0.363687-3.52610.999673
32-0.380791-3.69190.999813
33-0.393268-3.81290.999877
34-0.397952-3.85830.999895
35-0.415244-4.02590.999943
36-0.436749-4.23440.999973
37-0.462596-4.4850.99999
38-0.47762-4.63070.999994
39-0.49297-4.77950.999997
40-0.501163-4.8590.999998
41-0.498531-4.83340.999997
42-0.499283-4.84070.999997
43-0.496851-4.81710.999997
44-0.498871-4.83670.999997
45-0.497816-4.82650.999997
46-0.48752-4.72670.999996
47-0.466899-4.52680.999991


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9453259.16530
1-0.116367-1.12820.868951
20.0537780.52140.301658
30.0736150.71370.238582
4-0.069573-0.67450.749187
5-0.047361-0.45920.676417
60.0344060.33360.369721
7-0.152135-1.4750.928223
80.0089950.08720.465344
9-0.112909-1.09470.861777
100.1111881.0780.141894
110.0169750.16460.434814
120.0785890.76190.224
13-0.053247-0.51620.696553
14-0.123719-1.19950.883325
15-0.05371-0.52070.698114
16-0.072257-0.70060.757344
17-0.007869-0.07630.530324
18-0.073448-0.71210.760917
19-0.048605-0.47120.680719
20-0.085236-0.82640.794664
21-0.057501-0.55750.710742
220.0080660.07820.468916
23-0.025619-0.24840.597811
240.0428420.41540.339408
25-0.026075-0.25280.599516
260.0338650.32830.371693
27-0.119776-1.16130.875763
280.0137720.13350.447032
29-0.112678-1.09250.861287
30-0.020433-0.19810.578305
310.0345010.33450.369374
320.0021190.02050.491826
330.0220470.21380.4156
34-0.077692-0.75330.77341
35-0.08003-0.77590.780129
36-0.036821-0.3570.63905
370.0081580.07910.468563
38-0.08923-0.86510.805412
390.020210.19590.42254
400.0159970.15510.43854
41-0.045622-0.44230.670364
420.0177760.17230.431767
43-0.012454-0.12070.547924
44-0.068165-0.66090.744849
450.0586170.56830.28559
46-0.010767-0.10440.541461
470.0279260.27080.393587
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352040d90uoge7be5emg5/1ep8u1196352661.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352040d90uoge7be5emg5/1ep8u1196352661.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352040d90uoge7be5emg5/28q7u1196352661.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352040d90uoge7be5emg5/28q7u1196352661.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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 1:par1) {
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(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-1,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(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:

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