Home » date » 2011 » Jan » 15 »

Retail sale of wines and spirits in specialised stores

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 15 Jan 2011 11:58:20 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Jan/15/t129509255670zzrrww9qd1c8r.htm/, Retrieved Sat, 15 Jan 2011 12:55:56 +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/2011/Jan/15/t129509255670zzrrww9qd1c8r.htm/},
    year = {2011},
}
@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 = {2011},
    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
 
Dataseries X:
» Textbox « » Textfile « » CSV «
57.7 63.6 78 77.4 74.1 85.9 82 78.4 68.1 70.9 85.2 149.6 57.9 63.7 85 66.1 80.2 83.4 85.7 81.8 69.4 76.4 90.3 157.3 65.3 68.4 72.7 86.6 82.6 84.8 93.4 82.2 75.2 83.9 85.4 166.3 70.4 73.9 82.4 92.3 82.7 95.8 105.8 84.2 82.7 88.4 90.2 176.6 69.5 77.3 98.6 86.4 90.8 101.5 112.2 93.6 93.8 90.8 98.1 187.6 75 83.7 99.7 104.9 98.9 117.3 115.7 102.2 101.9 96.6 110 203.7 82.3 93.3 121.9 100.9 107.7 130 123.2 116.1 105.3 107.7 123.9 205.2 90.3 106.9 122.4 111.3 122.6 124.8 139.5 118.8 111 121.2 120.6 219.1 101.3 105 113.4 133.6 123.9 136.2 151.7 121.9 120.2 132.2 125.2 233.8
 
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.439496-4.54627e-06
2-0.087729-0.90750.183097
30.0451020.46650.320889
4-0.039874-0.41250.340413
50.0345810.35770.360633
60.0248150.25670.398957
70.0407120.42110.337253
8-0.031762-0.32850.37157
90.0606750.62760.265793
10-0.087905-0.90930.182617
11-0.443501-4.58766e-06
120.8487888.77990
13-0.363267-3.75770.00014
14-0.070858-0.7330.232591
150.012260.12680.449663
16-0.008778-0.09080.463911
170.0202620.20960.417193
180.0158720.16420.43495
190.0496370.51340.304348
20-0.038525-0.39850.345525
210.0438270.45330.325608
22-0.057368-0.59340.277077
23-0.393071-4.0664.6e-05
240.7250557.50
25-0.298637-3.08910.001279
26-0.072036-0.74510.228909
270.0180760.1870.426017
28-0.004163-0.04310.482868
290.0038580.03990.484122
300.0161940.16750.433641
310.0513890.53160.298062
32-0.031054-0.32120.374335
330.0286080.29590.38393
34-0.044484-0.46010.323173
35-0.34021-3.51920.000319
360.6199786.41310
37-0.256429-2.65250.004602
38-0.056186-0.58120.281165
390.0188230.19470.422995
40-0.012443-0.12870.448914
410.0116990.1210.451951
420.0054890.05680.477414
430.0431480.44630.328133
44-0.021498-0.22240.41222
450.0257230.26610.395345
46-0.039394-0.40750.342228
47-0.274372-2.83810.002715
480.495.06861e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.439496-4.54627e-06
2-0.34813-3.60110.000241
3-0.225481-2.33240.010776
4-0.224321-2.32040.011108
5-0.155153-1.60490.05573
6-0.082527-0.85370.197598
70.0406980.4210.337304
80.0649430.67180.251587
90.1909581.97530.025406
100.1083091.12040.132534
11-0.692879-7.16720
120.5111435.28730
130.0672370.69550.244124
140.0022620.02340.490689
15-0.131809-1.36340.087802
160.0521240.53920.295444
170.0185930.19230.423927
180.0145360.15040.44038
190.0385870.39910.345291
20-0.004216-0.04360.482647
21-0.164828-1.7050.045549
22-0.079446-0.82180.206509
230.0893580.92430.178699
240.0667630.69060.245655
25-0.008184-0.08470.466346
26-0.093189-0.9640.168621
270.1147691.18720.118892
280.0119710.12380.450843
29-0.010316-0.10670.457609
30-0.001313-0.01360.494595
31-0.021605-0.22350.411791
32-0.043958-0.45470.325123
33-0.027903-0.28860.386709
34-0.004424-0.04580.481792
350.0249640.25820.398363
36-0.022245-0.23010.409224
37-0.045113-0.46670.320847
380.0824350.85270.19786
390.0407650.42170.337055
40-0.045293-0.46850.320186
410.0214030.22140.412604
420.0201690.20860.417567
43-0.050963-0.52720.299583
44-0.069953-0.72360.235444
450.0333990.34550.365207
460.0018480.01910.492394
470.0572810.59250.277378
48-0.137244-1.41970.079307
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/15/t129509255670zzrrww9qd1c8r/1yvby1295092696.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/15/t129509255670zzrrww9qd1c8r/1yvby1295092696.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/15/t129509255670zzrrww9qd1c8r/2d0hw1295092696.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/15/t129509255670zzrrww9qd1c8r/2d0hw1295092696.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/15/t129509255670zzrrww9qd1c8r/3gzf81295092696.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/15/t129509255670zzrrww9qd1c8r/3gzf81295092696.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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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