Home » date » 2010 » Nov » 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: Thu, 18 Nov 2010 20:18:02 +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/18/t1290111463fahqosewj60kh6h.htm/, Retrieved Thu, 18 Nov 2010 21:17:45 +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/18/t1290111463fahqosewj60kh6h.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:
KDGP2W12 - Sofie Baert
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6,59 6,59 6,59 6,59 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,79 6,79 6,79 6,81 6,80 6,80 6,85 6,85 6,85 6,85 6,85 6,85 6,86 6,86 6,88 6,88 6,88 6,91 6,91 6,91 6,91 6,99 6,99 6,99 7,02 7,02 7,05 7,05 7,05 7,05 7,10 7,10 7,10 7,10 7,12 7,13 7,18 7,24 7,24 7,24 7,27 7,27 7,27 7,27 7,30 7,30 7,57 7,76 7,94 7,94 7,96
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9128517.74580
20.8167426.93030
30.7124996.04580
40.62935.33981e-06
50.5707584.8434e-06
60.5471724.64298e-06
70.5207484.41871.7e-05
80.4965684.21353.6e-05
90.4712943.99917.6e-05
100.4430663.75950.000172
110.4109213.48680.000419
120.3791973.21760.000969
130.344832.9260.002295
140.308982.62180.005333
150.2794512.37120.010204
160.2554122.16720.016762
170.2300041.95160.027435
180.2045511.73570.04345
190.1773021.50450.068419
200.1495451.26890.104276
210.1199411.01770.156107
220.1019760.86530.194874
230.0821380.6970.244034
240.0606210.51440.304279
250.0382510.32460.373224
260.0164550.13960.444674
27-0.008035-0.06820.472915
28-0.028355-0.24060.405274
29-0.048844-0.41450.339886
30-0.070713-0.60.275189
31-0.084249-0.71490.238498
32-0.099022-0.84020.20178
33-0.114498-0.97150.167264
34-0.130127-1.10420.136599
35-0.143565-1.21820.113564
36-0.156516-1.32810.094173
37-0.170756-1.44890.075852
38-0.183699-1.55870.061721
39-0.195867-1.6620.050432
40-0.206722-1.75410.041834
41-0.219921-1.86610.033051
42-0.23459-1.99060.025163
43-0.246307-2.090.020076
44-0.258636-2.19460.015709
45-0.271981-2.30780.011943
46-0.277822-2.35740.010562
47-0.289259-2.45440.008264
48-0.304862-2.58680.005853


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9128517.74580
2-0.099304-0.84260.201114
3-0.099671-0.84570.200252
40.0719570.61060.271702
50.0898740.76260.224096
60.1501421.2740.10338
7-0.057418-0.48720.313796
80.0006560.00560.497787
90.0322360.27350.392614
100.0027070.0230.49087
11-0.014114-0.11980.452501
12-0.020313-0.17240.431818
13-0.023748-0.20150.420436
14-0.025526-0.21660.41457
150.0144750.12280.451293
160.0055110.04680.481417
17-0.039301-0.33350.369869
18-0.025117-0.21310.415916
19-0.021308-0.18080.428514
20-0.00849-0.0720.471385
21-0.032665-0.27720.391221
220.039490.33510.369269
23-0.034468-0.29250.385385
24-0.041133-0.3490.364045
25-0.014646-0.12430.450723
26-0.009044-0.07670.469521
27-0.023486-0.19930.421301
28-0.014689-0.12460.450579
29-0.027131-0.23020.409291
30-0.030352-0.25750.398747
310.0316090.26820.39465
32-0.035006-0.2970.383646
33-0.028722-0.24370.404073
34-0.019708-0.16720.43383
35-0.004091-0.03470.486204
360.0001160.0010.499608
37-0.039668-0.33660.368701
38-0.017253-0.14640.442009
39-0.010841-0.0920.46348
40-0.010514-0.08920.464579
41-0.039385-0.33420.369602
42-0.037677-0.31970.37506
430.0060.05090.479769
44-0.032494-0.27570.391777
45-0.038143-0.32370.37357
460.0187130.15880.437141
47-0.061241-0.51960.302452
48-0.055747-0.4730.318811
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/18/t1290111463fahqosewj60kh6h/1v4eb1290111479.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/18/t1290111463fahqosewj60kh6h/1v4eb1290111479.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/18/t1290111463fahqosewj60kh6h/2v4eb1290111479.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/18/t1290111463fahqosewj60kh6h/2v4eb1290111479.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