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 17:25:04 +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/t1272907796eyf9gi5iz2hojew.htm/, Retrieved Mon, 03 May 2010 19:29:56 +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/t1272907796eyf9gi5iz2hojew.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 «
132.8 132.5 131.4 131.4 130.7 131.5 131.2 130.1 130.5 129 128.2 128.4 127.3 127.7 127 123.9 125.4 124.6 124.5 124.8 124.1 124.2 122.8 122.3 121.1 121.7 122.2 122.2 122.7 121.7 121 119.8 120.2 116.6 116 118 117.1 116.2 113.3 114.3 113.6 113 112.9 112.7 112.5 113 111.9 110.9 109.8 108.3 109.2 109.2 108.7 109.8 110.8 110 109.6 109.5 110.8 111.6 113.1 114.3 114.1 113.8 112.6 112.7 111.5 110.7 110.4 109.7 110 111.3 109 108.2 107.2 108.7 110.3 110.3 109.5 109.5 109.4 109.6 111.3 110 109.5 110.693 109.195 108.095 108.199 106.87 105.278 108.711 111.192 109.641 109.42 109.935 111.126 110.733 110.34 111.766 111.294 111.54 112.008 111.007 114.963 112.045 110.703 108.894 107.51 111.35 112.964 115.203 115.182 115.191 112.346 110.774 113.07 111.138 109.092 107.971 107.051
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.95393410.49330
20.90959410.00550
30.871899.59080
40.8362699.1990
50.8094448.90390
60.7738328.51210
70.7422978.16530
80.7129017.84190
90.6825737.50830
100.6555877.21150
110.6271326.89840
120.5970016.5670
130.5629396.19230
140.5298695.82860
150.5015415.5170
160.4823345.30570
170.4613635.0751e-06
180.4348614.78352e-06
190.4067354.47419e-06
200.3753794.12923.4e-05
210.3458713.80460.000112
220.3153533.46890.000362
230.2875713.16330.000986
240.2642552.90680.002172
250.2426072.66870.00433
260.2166282.38290.009367
270.1892292.08150.019748
280.1639421.80340.03691
290.1384121.52250.065243
300.111691.22860.110804
310.0849550.93450.175951
320.0586970.64570.259859
330.0336120.36970.356114
340.0171850.1890.425192
35-0.002721-0.02990.488084
36-0.026915-0.29610.383845
37-0.050574-0.55630.289512
38-0.069229-0.76150.223916
39-0.07662-0.84280.200496
40-0.089168-0.98090.164312
41-0.102661-1.12930.13051
42-0.117954-1.29750.098465
43-0.133117-1.46430.072855
44-0.14474-1.59210.056981
45-0.152749-1.68020.047746
46-0.164495-1.80940.036432
47-0.175606-1.93170.02787
48-0.180567-1.98620.024634


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.95393410.49330
2-0.004391-0.04830.480777
30.0508420.55930.288508
40.0055670.06120.475638
50.0845030.92950.177232
6-0.106692-1.17360.121427
70.0387530.42630.335328
8-0.002605-0.02870.488592
9-0.013691-0.15060.440272
100.0062480.06870.47266
11-0.013867-0.15250.439507
12-0.037686-0.41450.339606
13-0.065312-0.71840.236937
14-0.005325-0.05860.476693
150.0182530.20080.420604
160.0863180.94950.172131
17-0.030618-0.33680.368426
18-0.05344-0.58780.278868
19-0.035388-0.38930.348882
20-0.054303-0.59730.275701
21-0.023014-0.25320.400288
22-0.035848-0.39430.347017
230.0190340.20940.417255
240.0221890.24410.403793
250.0173170.19050.424623
26-0.074748-0.82220.206281
27-0.035107-0.38620.350022
28-0.011502-0.12650.449765
29-0.022512-0.24760.402421
30-0.027545-0.3030.381206
31-0.003824-0.04210.483258
32-0.02028-0.22310.411923
33-0.029272-0.3220.374007
340.0731860.80510.211185
35-0.066738-0.73410.232149
36-0.060535-0.66590.253375
37-0.017453-0.1920.42404
380.0628080.69090.245481
390.0999951.09990.13677
40-0.060216-0.66240.254494
41-0.020267-0.22290.411981
42-0.049796-0.54780.292433
430.0003550.00390.498447
44-0.013874-0.15260.439478
450.0492650.54190.294435
46-0.06186-0.68050.248755
470.0160340.17640.430147
480.0694040.76340.223342
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272907796eyf9gi5iz2hojew/1hcrf1272907500.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272907796eyf9gi5iz2hojew/1hcrf1272907500.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t1272907796eyf9gi5iz2hojew/2rlqi1272907500.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272907796eyf9gi5iz2hojew/2rlqi1272907500.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