Home » date » 2009 » Dec » 18 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 18 Dec 2009 04:43:54 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136658di9p2u4ejrrwjcc.htm/, Retrieved Fri, 18 Dec 2009 12:44:20 +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/2009/Dec/18/t1261136658di9p2u4ejrrwjcc.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100.00 100.00 93.55 88.17 89.25 91.40 92.47 91.40 88.17 87.10 84.95 92.47 93.55 93.55 91.40 90.32 91.40 93.55 93.55 92.47 91.40 89.25 86.02 88.17 87.10 87.10 86.02 84.95 84.95 86.02 86.02 84.95 86.02 82.80 77.42 80.65 78.49 75.27 75.27 75.27 77.42 78.49 76.34 73.12 68.82 65.59 69.89 82.80 84.95 80.65 74.19 70.97 74.19 82.80 86.02 86.02 82.80 78.49 79.57 87.10 89.25
 
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.1739821.19280.119475
2-0.240384-1.6480.053013
3-0.408461-2.80030.003694
4-0.41107-2.81820.003522
5-0.019212-0.13170.447887
60.2080751.42650.080168
70.3368032.3090.012694
80.1993371.36660.089129
9-0.173584-1.190.120006
10-0.108209-0.74180.230936
11-0.057658-0.39530.347211
12-0.18761-1.28620.102339
13-0.004132-0.02830.48876
140.166541.14170.129673
150.1309720.89790.186908
16-0.015505-0.10630.457899
17-0.048984-0.33580.36925
18-0.029207-0.20020.42108
19-0.133413-0.91460.182527
200.0210680.14440.442888
210.2172411.48930.07154
220.0253920.17410.431275
23-0.113932-0.78110.219337
24-0.13339-0.91450.182567
25-0.016571-0.11360.455018
260.1013810.6950.245228
270.0847880.58130.281916
280.0501260.34360.366322
29-0.049955-0.34250.36676
30-0.215845-1.47980.072805
310.0323950.22210.412603
320.1072920.73560.232828
330.0692660.47490.318543
340.0159710.10950.456639
35-0.060013-0.41140.341314
36-0.024966-0.17120.432416
37-0.068774-0.47150.319736
380.0597380.40950.342001
390.0297180.20370.419719
400.0228890.15690.437989
410.0159730.10950.456634
42-0.011412-0.07820.468985
43000.5
44-0.064106-0.43950.331162
45-0.018413-0.12620.450042
460.0458630.31440.377297
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1739821.19280.119475
2-0.279102-1.91340.030898
3-0.342665-2.34920.011534
4-0.441436-3.02630.002004
5-0.221526-1.51870.067768
6-0.253178-1.73570.044585
7-0.092143-0.63170.265322
8-0.08329-0.5710.285357
9-0.252071-1.72810.045267
100.0586030.40180.34484
110.129760.88960.189109
12-0.190459-1.30570.099002
13-0.107629-0.73790.232133
140.0809470.55490.290782
15-0.026605-0.18240.428029
16-0.200258-1.37290.08815
17-0.070324-0.48210.31598
18-0.055213-0.37850.353374
19-0.225791-1.54790.064172
20-0.01518-0.10410.458778
210.1442460.98890.163887
22-0.092585-0.63470.264342
23-0.028393-0.19470.423253
24-0.002695-0.01850.492669
25-0.063471-0.43510.332727
260.0423220.29010.386491
270.0682670.4680.32097
28-0.180583-1.2380.11093
29-0.095477-0.65460.257972
30-0.091989-0.63060.265663
31-0.051736-0.35470.362206
32-0.161467-1.1070.136972
330.0112260.0770.469489
34-0.07363-0.50480.308036
35-0.151723-1.04020.151794
360.0110460.07570.469979
37-0.085466-0.58590.280364
38-0.015084-0.10340.459038
39-0.145321-0.99630.16211
400.0309280.2120.4165
41-0.049375-0.33850.368247
42-0.10213-0.70020.243637
430.0229370.15720.437862
44-0.035114-0.24070.405406
450.032920.22570.41121
460.0482440.33070.371155
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136658di9p2u4ejrrwjcc/19yul1261136632.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136658di9p2u4ejrrwjcc/19yul1261136632.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136658di9p2u4ejrrwjcc/2rwz21261136632.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261136658di9p2u4ejrrwjcc/2rwz21261136632.ps (open in new window)


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