Home » date » 2010 » Nov » 20 »

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, 20 Nov 2010 16:36:46 +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/20/t12902709390cn19wnlu57tuig.htm/, Retrieved Sat, 20 Nov 2010 17:35:39 +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/20/t12902709390cn19wnlu57tuig.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
 
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
10.2021792.10110.018979
20.154151.6020.056041
30.2292.37980.009537
40.2513642.61230.005138
50.3270393.39870.000475
60.3241763.36890.000523
70.3002393.12020.001159
80.2291632.38150.009495
90.1880441.95420.026631
100.0822080.85430.197406
110.1165281.2110.114271
120.8158078.47810
130.1322681.37460.086055
140.077980.81040.209749
150.1319651.37140.086543
160.1712961.78020.038931
170.2192172.27820.012342
180.2156142.24070.013545
190.2051952.13240.017618
200.123521.28370.101004
210.1036171.07680.141979
220.0103580.10760.45724
230.0208190.21640.414557
240.6389616.64030
250.0547570.56910.285251
26-0.012876-0.13380.4469
270.0409910.4260.335481
280.0760020.78980.215678
290.1025971.06620.144352
300.1155861.20120.11615
310.1000571.03980.150371
320.0297960.30960.378714
330.0077090.08010.468148
34-0.076206-0.7920.21506
35-0.065502-0.68070.248754
360.4762724.94961e-06
37-0.042391-0.44050.330214
38-0.091349-0.94930.172287
39-0.04296-0.44650.32808
40-0.024561-0.25520.39951
410.0065080.06760.4731
420.009910.1030.45908
430.0064150.06670.473484
44-0.048343-0.50240.308205
45-0.080686-0.83850.201798
46-0.143241-1.48860.069753
47-0.132154-1.37340.086239
480.3151733.27540.000709


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2021792.10110.018979
20.1181011.22730.111181
30.1878281.9520.026766
40.1804021.87480.031761
50.24852.58250.005574
60.2238872.32670.010923
70.1944192.02050.022905
80.0892840.92790.177773
90.0068080.07080.471863
10-0.183265-1.90450.02975
11-0.187143-1.94480.027197
120.7779578.08480
13-0.282612-2.9370.002026
14-0.198525-2.06310.020749
15-0.137138-1.42520.078495
160.0103760.10780.457164
17-0.164981-1.71450.04465
18-0.071216-0.74010.230423
190.0522070.54260.294277
20-0.071312-0.74110.230123
210.0262610.27290.39272
220.1463981.52140.065539
230.0239430.24880.401986
24-0.040158-0.41730.338631
25-0.012837-0.13340.447059
26-0.053519-0.55620.289619
27-0.045884-0.47680.317219
28-0.102577-1.0660.144397
29-0.053168-0.55250.290859
300.0078310.08140.467645
31-0.034881-0.36250.358847
320.0679220.70590.240897
33-0.028771-0.2990.382757
34-0.015304-0.1590.436964
350.0311220.32340.373499
360.0114180.11870.452884
37-0.12366-1.28510.100751
380.0100780.10470.458389
390.0119810.12450.450571
40-0.097286-1.0110.157132
410.0110450.11480.454415
42-0.014485-0.15050.440313
430.0005850.00610.497579
44-0.016736-0.17390.431125
450.0323880.33660.368541
460.0136910.14230.443562
47-0.020008-0.20790.417839
48-0.121081-1.25830.105496
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902709390cn19wnlu57tuig/1hhwj1290271002.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t12902709390cn19wnlu57tuig/1hhwj1290271002.ps (open in new window)


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