Home » date » 2010 » May » 03 »

*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, 03 May 2010 14:24:41 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/03/t1272896773m2mmzi83kcyh79t.htm/, Retrieved Mon, 03 May 2010 16:26:15 +0200
 
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/2010/May/03/t1272896773m2mmzi83kcyh79t.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
66857.2 64722.8 68489.6 71342.9 63542.5 69425.0 58927.9 61009.0 66837.0 66147.6 65982.3 65527.5 65914.6 59189.9 66211.4 66400.8 60167.7 64547.9 57706.2 58642.6 60082.1 63414.8 66044.0 57628.5 62838.8 55758.6 61004.5 66173.4 57489.0 59552.2 57061.8 55895.3 56314.7 61232.8 60014.1 57685.4 60403.1 52349.7 55693.3 65676.1 54898.8 55518.2 53779.1 52340.9 55704.4 60330.3 52837.4 55388.1 60383.4 52070.3 54077.0 62887.8 49212.8 57722.0 53936.8 46991.0 54984.2 56485.1 51277.8 53596.4 54252.5 49413.0 53213.2 58695.3 48723.5 54510.0 49454.1 46136.6 54622.5 50583.0 53224.3 53056.4
 
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.5399254.58149e-06
20.5504614.67087e-06
30.6468285.48850
40.3855323.27140.000822
50.5281014.48111.4e-05
60.5874784.98492e-06
70.435443.69480.000213
80.3479122.95210.002129
90.4857234.12155e-05
100.3231022.74160.003853
110.3035952.57610.006022
120.566024.80284e-06
130.2244651.90470.03041
140.2591142.19870.015558
150.2830932.40210.009441
160.0733140.62210.267924
170.231641.96550.026605
180.2253711.91230.029906
190.1431561.21470.114221
200.0654910.55570.290066
210.1270741.07830.14226
220.0635580.53930.295669
230.0350060.2970.383647
240.2038561.72980.043978
250.0062240.05280.479012
26-0.009223-0.07830.46892
270.0213770.18140.428287
28-0.125393-1.0640.145443
29-0.031362-0.26610.395455
30-0.046505-0.39460.347148
31-0.085963-0.72940.234055
32-0.152371-1.29290.100088
33-0.123199-1.04540.149672
34-0.120598-1.02330.154793
35-0.190214-1.6140.055449
36-0.05983-0.50770.306616
37-0.173893-1.47550.072215
38-0.223494-1.89640.030959
39-0.153335-1.30110.098688
40-0.265788-2.25530.013578
41-0.231233-1.96210.026809
42-0.211802-1.79720.038249
43-0.229401-1.94650.027747
44-0.278466-2.36290.010419
45-0.243716-2.0680.021117
46-0.223187-1.89380.031134
47-0.303016-2.57120.006101
48-0.173088-1.46870.073135


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5399254.58149e-06
20.3654893.10130.001375
30.4250453.60660.000284
4-0.171198-1.45270.07533
50.2091571.77480.040083
60.255452.16760.01675
70.0517060.43870.331081
8-0.400811-3.4010.000549
90.2435322.06640.021192
100.0220180.18680.426161
11-0.103082-0.87470.192329
120.280942.38390.009885
13-0.203978-1.73080.043885
14-0.161087-1.36690.087959
15-0.254913-2.1630.016931
160.0996850.84590.200217
170.1156250.98110.164913
18-0.11516-0.97720.16588
190.0498660.42310.336732
20-0.060776-0.51570.303822
210.005710.04850.480745
220.0972620.82530.205966
230.0004250.00360.498566
24-0.040736-0.34570.365305
250.0453960.38520.350614
26-0.135161-1.14690.127613
27-0.023644-0.20060.420778
28-0.070821-0.60090.274884
29-0.007897-0.0670.473379
30-0.112251-0.95250.172019
31-0.062324-0.52880.299272
320.077850.66060.255495
330.0182290.15470.438754
340.0140930.11960.452573
35-0.072883-0.61840.269121
36-0.012982-0.11020.456297
370.0230640.19570.422696
38-0.016018-0.13590.446133
390.0111650.09470.462394
40-0.041701-0.35380.362245
41-0.113097-0.95970.170219
42-0.022469-0.19070.424667
430.0534780.45380.325676
440.006470.05490.478185
45-0.019949-0.16930.433027
46-0.047511-0.40310.344017
470.0050360.04270.483015
480.0130650.11090.456017
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272896773m2mmzi83kcyh79t/1xe8e1272896679.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272896773m2mmzi83kcyh79t/1xe8e1272896679.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t1272896773m2mmzi83kcyh79t/2xe8e1272896679.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272896773m2mmzi83kcyh79t/2xe8e1272896679.ps (open in new window)


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