Home » date » 2010 » Nov » 14 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 14 Nov 2010 22:47:27 +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/Nov/14/t1289774767r2jrsjg0qscco92.htm/, Retrieved Sun, 14 Nov 2010 23:46:07 +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/2010/Nov/14/t1289774767r2jrsjg0qscco92.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:
KDGP2W11
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.35 1.91 1.31 1.19 1.3 1.14 1.1 1.02 1.11 1.18 1.24 1.36 1.29 1.73 1.41 1.15 1.31 1.15 1.08 1.1 1.14 1.24 1.33 1.49 1.38 1.96 1.36 1.24 1.35 1.23 1.09 1.08 1.33 1.35 1.38 1.5 1.47 2.09 1.52 1.29 1.52 1.27 1.35 1.29 1.41 1.39 1.45 1.53 1.45 2.11 1.53 1.38 1.54 1.35 1.29 1.33 1.47 1.47 1.54 1.59 1.5 2 1.51 1.4 1.62 1.44 1.29 1.28 1.4 1.39 1.46 1.49
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.400656-3.3760.000598
2-0.097978-0.82560.205904
30.2229321.87850.032212
4-0.132308-1.11480.134338
50.0129720.10930.456636
6-0.209984-1.76940.040564
70.0415090.34980.363778
8-0.136381-1.14920.127173
90.1870451.57610.059728
10-0.062871-0.52980.298965
11-0.318983-2.68780.004477
120.7849176.61380
13-0.296892-2.50170.007334
14-0.096654-0.81440.209065
150.2012351.69560.047168
16-0.110431-0.93050.177631
17-0.014664-0.12360.451006
18-0.171857-1.44810.075996
190.0511830.43130.333787
20-0.120477-1.01520.15674
210.1627381.37130.087307
22-0.062161-0.52380.301032
23-0.248691-2.09550.019846
240.6534995.50650
25-0.285667-2.40710.009342
26-0.046696-0.39350.347575
270.1376311.15970.125028
28-0.054749-0.46130.322989
29-0.029763-0.25080.401353
30-0.144552-1.2180.113625
310.0431930.3640.358487
32-0.067603-0.56960.285362
330.1062390.89520.186857
34-0.056548-0.47650.317596
35-0.17362-1.46290.073948
360.4679583.94319.3e-05
37-0.19397-1.63440.053299
38-0.053825-0.45350.325771
390.1263161.06440.145387
40-0.066795-0.56280.287664
41-0.018745-0.15790.437473
42-0.07381-0.62190.267988
430.0352810.29730.38356
44-0.072928-0.61450.270424
450.0840130.70790.240661
46-0.036424-0.30690.379905
47-0.10594-0.89270.187525
480.2887272.43290.008751


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.400656-3.3760.000598
2-0.307934-2.59470.005747
30.0634490.53460.297288
4-0.028186-0.23750.406476
50.0039040.03290.486924
6-0.334677-2.820.00311
7-0.259631-2.18770.015993
8-0.466796-3.93339.6e-05
9-0.064057-0.53980.295527
10-0.129341-1.08980.139734
11-0.667867-5.62750
120.2556872.15450.017299
130.1237711.04290.150263
140.0988510.83290.203839
15-0.02149-0.18110.428411
16-0.049623-0.41810.338558
17-0.104966-0.88450.189716
18-0.024901-0.20980.417206
19-0.014596-0.1230.451233
200.0425860.35880.360391
210.0781920.65890.256058
22-0.023369-0.19690.42223
23-0.061439-0.51770.303141
240.0729130.61440.270464
25-0.105705-0.89070.188052
260.025520.2150.415177
27-0.141505-1.19230.118548
280.0090180.0760.469821
290.0095230.08020.468134
300.0794460.66940.252699
31-0.066186-0.55770.289403
320.1156230.97430.166619
33-0.060645-0.5110.305467
340.0061910.05220.47927
350.0218860.18440.427108
36-0.189835-1.59960.057067
37-0.018823-0.15860.437214
38-0.086001-0.72470.235521
390.0351360.29610.384023
40-0.137248-1.15650.125683
41-0.143911-1.21260.114648
42-0.055704-0.46940.320122
430.1104440.93060.177602
44-0.058176-0.49020.312751
45-0.086302-0.72720.234749
46-0.034893-0.2940.384803
470.0756380.63730.262976
48-0.040604-0.34210.366631
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774767r2jrsjg0qscco92/1sxuy1289774844.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774767r2jrsjg0qscco92/1sxuy1289774844.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774767r2jrsjg0qscco92/2sxuy1289774844.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774767r2jrsjg0qscco92/2sxuy1289774844.ps (open in new window)


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