Home » date » 2010 » Dec » 21 »

ACFKoffie2

*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, 21 Dec 2010 08:31:37 +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/21/t1292920224gran1zfv1egjwc2.htm/, Retrieved Tue, 21 Dec 2010 09:30: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/21/t1292920224gran1zfv1egjwc2.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 «
7,14 7,24 7,33 7,61 7,66 7,69 7,7 7,68 7,71 7,71 7,72 7,68 7,72 7,74 7,76 7,9 7,97 7,96 7,95 7,97 7,93 7,99 7,96 7,92 7,97 7,98 8 8,04 8,17 8,29 8,26 8,3 8,32 8,28 8,27 8,32 8,31 8,34 8,32 8,36 8,33 8,35 8,34 8,37 8,31 8,33 8,34 8,25 8,27 8,31 8,25 8,3 8,3 8,35 8,78 8,9
 
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.851676.37330
20.7128055.33411e-06
30.6325314.73348e-06
40.5887664.40592.4e-05
50.5546424.15065.7e-05
60.5303913.96910.000104
70.4970383.71950.000232
80.470093.51780.000436
90.4512353.37670.00067
100.4185673.13230.001379
110.3886082.90810.002602
120.3504342.62240.005612
130.3015472.25660.013978
140.2493021.86560.033669
150.1926751.44180.077457
160.1566551.17230.123021
170.1249020.93470.176982
180.0958130.7170.238177
190.0633010.47370.318778
200.0367090.27470.392278
210.0018780.01410.49442
22-0.016416-0.12280.451336
23-0.042814-0.32040.374931
24-0.085254-0.6380.263042
25-0.123088-0.92110.180473
26-0.169992-1.27210.104296
27-0.234951-1.75820.042088
28-0.288959-2.16240.017438
29-0.312776-2.34060.01142
30-0.315582-2.36160.01085
31-0.323533-2.42110.00937
32-0.32152-2.4060.009726
33-0.3073-2.29960.01261
34-0.308426-2.3080.012357
35-0.314945-2.35680.010977
36-0.30601-2.290.012906
37-0.30624-2.29170.012853
38-0.2988-2.2360.014677
39-0.301421-2.25560.01401
40-0.309959-2.31950.012019
41-0.3188-2.38570.010227
42-0.306963-2.29710.012687
43-0.296419-2.21820.015307
44-0.277025-2.07310.02139
45-0.25751-1.9270.029528
46-0.240601-1.80050.038585
47-0.223207-1.67030.050217
48-0.21632-1.61880.055556


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.851676.37330
2-0.045647-0.34160.366968
30.1336140.99990.160836
40.0934980.69970.243512
50.0501090.3750.354545
60.0675490.50550.307599
7-0.00589-0.04410.482499
80.0429340.32130.374593
90.0336830.25210.400957
10-0.040059-0.29980.382729
110.0153970.11520.45434
12-0.051077-0.38220.351872
13-0.062613-0.46860.320603
14-0.058872-0.44060.330613
15-0.086546-0.64770.259927
160.0110040.08230.467332
17-0.046054-0.34460.365829
18-0.018377-0.13750.445557
19-0.031709-0.23730.406649
20-0.00928-0.06940.472441
21-0.04894-0.36620.357785
220.0341180.25530.399707
23-0.049417-0.36980.356461
24-0.064431-0.48220.315785
25-0.023463-0.17560.430627
26-0.094115-0.70430.242084
27-0.131172-0.98160.16526
28-0.066939-0.50090.309193
29-0.004882-0.03650.485492
300.0185620.13890.445011
31-0.038019-0.28450.388537
320.0494180.36980.356459
330.0652310.48810.313678
34-0.03402-0.25460.399989
350.0200380.150.440671
360.0615370.46050.32347
37-0.011983-0.08970.464433
380.0485390.36320.358899
39-0.044938-0.33630.368956
40-0.025904-0.19380.423499
41-0.048382-0.36210.359337
42-0.003302-0.02470.490187
43-0.033903-0.25370.400326
440.0144620.10820.457102
45-0.007537-0.05640.47761
460.0071740.05370.47869
470.0095810.07170.471549
48-0.035162-0.26310.396708
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292920224gran1zfv1egjwc2/1r9ih1292920293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292920224gran1zfv1egjwc2/1r9ih1292920293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292920224gran1zfv1egjwc2/2r9ih1292920293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292920224gran1zfv1egjwc2/2r9ih1292920293.ps (open in new window)


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