Home » date » 2007 » Nov » 28 » attachments

partial autocorrelation

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 11:17:29 -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/28/t1196273502c8w298l3zqmf37o.htm/, Retrieved Wed, 28 Nov 2007 19:11:42 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,52 103,5 103,52 103,53 103,53 103,53 103,52 103,54 103,59 103,59 103,59 103,59 103,63 103,74 103,7 103,72 103,81 103,8 104,22 106,91 107,06 107,17 107,25 107,28 107,24 107,23 107,34 107,34 107,3 107,24 107,3 107,32 107,28 107,33 107,33 107,33 107,28 107,28 107,29 107,29 107,23 107,24 107,24 107,2 107,23 107,2 107,21 107,24 107,21 113,89 114,05 114,05 114,05 114,05 115,12 115,68 116,05 116,18 116,35 116,44 117 117,61 118,17 118,33 118,33 118,42 118,5 118,67 119,09 119,14 119,23 119,33
 
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
018.48530
10.9557948.11020
20.9100037.72160
30.8638547.330
40.8173376.93530
50.7723446.55360
60.7242436.14540
70.6739775.71890
80.6221445.27911e-06
90.5694614.8324e-06
100.5170344.38721.9e-05
110.4668263.96118.7e-05
120.4173623.54140.000351
130.3684533.12640.001276
140.3184912.70250.004289
150.2684362.27780.012856
160.2189771.85810.033623
170.1709721.45070.075597
180.1254151.06420.145402
190.0854470.7250.235388
200.0513570.43580.332151
210.017730.15040.440418
22-0.015694-0.13320.552782
23-0.048435-0.4110.658846
24-0.050224-0.42620.664369
25-0.052212-0.4430.670466
26-0.053958-0.45780.67578
27-0.055377-0.46990.680072
28-0.057179-0.48520.68549
29-0.059381-0.50390.692054
30-0.062404-0.52950.70096
31-0.073694-0.62530.733128
32-0.086408-0.73320.767091
33-0.09954-0.84460.799442
34-0.112875-0.95780.829309
35-0.126365-1.07220.856405
36-0.141178-1.19790.882564
37-0.15767-1.33790.907426
38-0.174897-1.4840.928919
39-0.192419-1.63270.946554
40-0.210034-1.78220.960534
41-0.228239-1.93670.971645
42-0.24734-2.09880.980327
43-0.267221-2.26740.986817
44-0.28833-2.44660.991567
45-0.309893-2.62950.994776
46-0.331635-2.8140.996848
47-0.35306-2.99580.998124


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9557948.11020
1-0.040933-0.34730.635322
2-0.02781-0.2360.592939
3-0.028895-0.24520.596495
4-0.007754-0.06580.526137
5-0.062029-0.52630.699863
6-0.052019-0.44140.669874
7-0.047508-0.40310.655973
8-0.040765-0.34590.634786
9-0.031558-0.26780.605184
10-0.008352-0.07090.528152
11-0.025335-0.2150.584804
12-0.027395-0.23250.591579
13-0.04696-0.39850.654267
14-0.037139-0.31510.623214
15-0.033556-0.28470.611667
16-0.024956-0.21180.583555
17-0.01475-0.12520.549625
180.0243480.20660.418451
190.030670.26020.39771
20-0.029377-0.24930.598071
21-0.032795-0.27830.609199
22-0.028389-0.24090.594838
230.3261992.76790.003584
24-0.038421-0.3260.627319
25-0.022149-0.18790.574274
26-0.019481-0.16530.565415
27-0.000841-0.00710.502838
28-0.043143-0.36610.642311
29-0.042228-0.35830.639422
30-0.141174-1.19790.882558
31-0.049377-0.4190.661761
32-0.036249-0.30760.620357
33-0.01547-0.13130.552036
34-0.034979-0.29680.616266
35-0.036765-0.3120.622016
36-0.051543-0.43740.668418
37-0.027648-0.23460.592407
38-0.028617-0.24280.595584
39-0.02988-0.25350.599713
40-0.036169-0.30690.620099
41-0.005647-0.04790.519041
420.0080440.06830.472886
43-0.048494-0.41150.65903
44-0.044285-0.37580.645905
45-0.040929-0.34730.635307
460.1069640.90760.183553
47-0.059896-0.50820.693578
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273502c8w298l3zqmf37o/1usa51196273845.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273502c8w298l3zqmf37o/1usa51196273845.ps (open in new window)


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


 
Parameters:
par1 = 48 ; 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 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