Home » date » 2009 » Dec » 12 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 12 Dec 2009 07:12:51 -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/12/t1260627215c397cah465q3dub.htm/, Retrieved Sat, 12 Dec 2009 15:13:37 +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/12/t1260627215c397cah465q3dub.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 «
2.02 2.03 2.01 2.08 2.02 2.03 2.07 2.04 2.05 2.11 2.09 2.05 2.08 2.06 2.06 2.08 2.07 2.06 2.07 2.06 2.09 2.07 2.09 2.28 2.33 2.35 2.52 2.63 2.58 2.70 2.81 2.97 3.04 3.28 3.33 3.50 3.56 3.57 3.69 3.82 3.79 3.96 4.06 4.05 4.03 3.94 4.02 3.88 4.02 4.03 4.09 3.99 4.01 4.01 4.19 4.30 4.27 3.82 3.15 2.49 1.81 1.26 1.06 0.84 0.78 0.70 0.36 0.35 0.36 0.36 0.36
 
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.95678.06130
20.8927097.52210
30.81146.8370
40.7182776.05230
50.6175435.20351e-06
60.5206584.38712e-05
70.4208723.54630.000348
80.318412.6830.004536
90.2177021.83440.035393
100.1203711.01430.156949
110.0361970.3050.380628
12-0.031127-0.26230.396934
13-0.081939-0.69040.246088
14-0.117631-0.99120.162482
15-0.143069-1.20550.116002
16-0.169171-1.42550.079203
17-0.197533-1.66440.050216
18-0.229434-1.93320.028597
19-0.258933-2.18180.016218
20-0.287092-2.41910.009062
21-0.309697-2.60960.005525
22-0.332103-2.79840.003304
23-0.35147-2.96150.00208
24-0.370675-3.12340.001294
25-0.382118-3.21980.000968
26-0.390533-3.29070.000779
27-0.391261-3.29680.000765
28-0.385584-3.2490.000885
29-0.374716-3.15740.001169
30-0.361856-3.04910.001612
31-0.348891-2.93980.002215
32-0.330113-2.78160.003461
33-0.310956-2.62020.005371
34-0.289558-2.43990.008596
35-0.264036-2.22480.014637
36-0.234975-1.97990.025794


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.95678.06130
2-0.266349-2.24430.013966
3-0.194563-1.63940.052775
4-0.121669-1.02520.154375
5-0.086143-0.72590.235156
60.0408450.34420.365868
7-0.104897-0.88390.189873
8-0.110685-0.93260.177081
9-0.048279-0.40680.342688
10-0.042381-0.35710.361036
110.0889470.74950.228021
120.0773270.65160.258392
130.0320730.27030.393875
140.0155830.13130.447953
15-0.045737-0.38540.350553
16-0.142238-1.19850.11735
17-0.114063-0.96110.169879
18-0.113806-0.95890.17042
19-0.010018-0.08440.466484
20-0.042709-0.35990.360005
21-0.002734-0.0230.490842
22-0.063941-0.53880.295863
23-0.000185-0.00160.499382
24-0.011165-0.09410.462656
250.0903430.76120.224515
26-0.025362-0.21370.415695
27-0.011995-0.10110.45989
28-0.057507-0.48460.314738
29-0.077869-0.65610.25693
30-0.082182-0.69250.245448
31-0.084287-0.71020.239949
320.0402620.33930.367709
33-0.02518-0.21220.416292
34-0.008867-0.07470.470327
350.0356740.30060.382302
360.0158630.13370.447022
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260627215c397cah465q3dub/1rk5i1260627169.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260627215c397cah465q3dub/1rk5i1260627169.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/12/t1260627215c397cah465q3dub/2zhzp1260627169.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260627215c397cah465q3dub/2zhzp1260627169.ps (open in new window)


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