Home » date » 2010 » Dec » 07 »

Workshop 9; Coffee Price, ACF

*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: Tue, 07 Dec 2010 09:31:16 +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/Dec/07/t1291714162xmignqy7ydt7ome.htm/, Retrieved Tue, 07 Dec 2010 10:29:24 +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/Dec/07/t1291714162xmignqy7ydt7ome.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
168,67 164,83 184,38 180,81 190,54 181,41 155,67 135,99 125,88 126,09 114,86 127,98 127,98 125,11 125,93 128,2 125,93 111,94 120,01 124,09 126,02 136,41 143,79 141,67 143,9 155 144,83 141,4 137 141,02 131,11 132,83 136,73 141,18 137,86 133,79 128,53 125,87 124,27 123,96 128,15 126,4 127,86 129,31 132,56 141,28 145,55 146,54 143,14 145,72 148,21 150,4 149,94 146,66 143,37 145,29 140,24 136,12 140,25 140,64 145,58 143,73 141,27 140,66 141,94 141,16 134,31 132,93 133,07 140,48 154,85 196,77 235,3 226,52 237,62 224,07 208,74 174,54 170,63 172,23 198,36 175,91 154,63 134,31 121,75 119,6 102,04 106,3 116,38 103,72 98,56 100,9 110 118,26 124,77 125,22 126,38 137,14 134,74 134,3 136,39 141,83 139,24 128,89 134,83 130,43 132,09 144,95 149,5 137,57 139,38 143,06 138,65 123,21 85,91 77,4 77,84 67,76 70,72 72,55 75,83 84,01 93,96 93,73 92,02 88,26 86,48 94,42 94,92 91,41 84,84 89,89 86,32 8 etc...
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.95140518.27590
20.89169117.12880
30.82096515.77020
40.75249714.4550
50.69033813.2610
60.64312512.3540
70.60533711.62810
80.56974710.94450
90.5357710.29180
100.4975779.55810
110.4610338.85620
120.4204518.07660
130.3839257.3750
140.3507096.73690
150.3266676.27510
160.3078125.91290
170.2957555.68130
180.2987325.73850
190.3064445.88660
200.3123145.99930
210.3178436.10560
220.3195786.13890
230.3177776.10430
240.316496.07960
250.3109785.97370


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.95140518.27590
2-0.14215-2.73060.003312
3-0.137186-2.63530.004381
40.0082760.1590.436891
50.0345750.66420.253499
60.1055882.02830.021625
70.0308840.59330.276682
8-0.047135-0.90540.182912
9-0.015944-0.30630.379784
10-0.054819-1.0530.146506
110.0241460.46380.321523
12-0.046511-0.89340.186101
130.0200210.38460.350383
140.0088060.16920.432885
150.0530451.0190.154445
160.0145780.280.389803
170.0301830.57980.281205
180.1436872.76010.003033
190.0312090.59950.274603
20-0.03849-0.73940.230074
210.0234310.45010.326453
22-0.010821-0.20790.417726
230.0163760.31460.376629
240.0358360.68840.245822
25-0.049191-0.94490.172654
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291714162xmignqy7ydt7ome/1qjni1291714274.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291714162xmignqy7ydt7ome/1qjni1291714274.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291714162xmignqy7ydt7ome/2qjni1291714274.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291714162xmignqy7ydt7ome/2qjni1291714274.ps (open in new window)


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