Home » date » 2010 » May » 09 »

Autocorrelation Function - Verkoop wijn - Veronika Kaplova

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 09 May 2010 08:55: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/May/09/t1273395418rczmsz621nl8krq.htm/, Retrieved Sun, 09 May 2010 10:57:00 +0200
 
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/May/09/t1273395418rczmsz621nl8krq.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2550 2867 3458 2961 3163 2880 3331 3062 3534 3622 4464 5411 2564 2820 3508 3088 3299 2939 3320 3418 3604 3495 4163 4882 2211 3260 2992 2425 2707 3244 3965 3315 3333 3583 4021 4904 2252 2952 3573 3048 3059 2731 3563 3092 3478 3478 4308 5029 2075 3264 3308 3688 3136 2824 3644 4694 2914 3686 4358 5587 2265 3685 3754 3708 3210 3517 3905 3670 4221 4404 5086 5725 2367 3819 4067 4022 3937 4365 4290
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1251131.1120.13475
2-0.02936-0.2610.397403
30.0800180.71120.239523
40.1432771.27350.103293
5-0.015521-0.1380.445313
6-0.212344-1.88740.031393
70.0349450.31060.378463
80.1258021.11820.133446
90.0614160.54590.293344
10-0.08162-0.72550.235157
110.039750.35330.3624
120.6508025.78450
130.0159520.14180.443806
14-0.067335-0.59850.275614
150.0387830.34470.365613
160.0775810.68960.246249
17-0.068664-0.61030.271707
18-0.247184-2.1970.015475
190.0205610.18280.42773
200.0369120.32810.371858
210.0027860.02480.490155
22-0.095633-0.850.198945
230.0173970.15460.438753
240.4924024.37661.8e-05
25-0.022466-0.19970.421121
26-0.079866-0.70990.239939
27-0.017595-0.15640.438062
28-0.012594-0.11190.455579
29-0.045461-0.40410.343626
30-0.21207-1.88490.031559
31-0.061491-0.54650.293116
32-0.022494-0.19990.421022
33-0.018699-0.16620.434213
34-0.140398-1.24790.107879
35-0.012199-0.10840.456967
360.3632633.22880.000906
37-0.054744-0.48660.313953
38-0.08223-0.73090.233509
39-0.023328-0.20730.418137
400.0092990.08260.46717
41-0.038498-0.34220.366562
42-0.183681-1.63260.053267
43-0.06199-0.5510.291603
44-0.019978-0.17760.429758
45-0.014849-0.1320.447669
46-0.108878-0.96770.168066
47-0.011625-0.10330.458985
480.2444622.17280.016395
49-0.050001-0.44440.328977
50-0.09725-0.86440.194998
51-0.037994-0.33770.368242
52-0.033861-0.3010.382118
53-0.052605-0.46760.320691
54-0.099335-0.88290.189983
55-0.009249-0.08220.467345
56-0.039045-0.3470.364742
57-0.017303-0.15380.439084
58-0.079878-0.710.239907
590.0050580.0450.482126
600.1388921.23450.110339


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1251131.1120.13475
2-0.045729-0.40640.342757
30.0911960.81060.210026
40.1225431.08920.139692
5-0.044143-0.39230.347929
6-0.208929-1.8570.033519
70.0696110.61870.268943
80.0969260.86150.195786
90.0821190.72990.233808
10-0.056976-0.50640.306987
110.0193640.17210.431895
120.6282065.58360
13-0.201358-1.78970.038666
14-0.032095-0.28530.388093
15-0.034591-0.30750.379654
16-0.096955-0.86180.195716
17-0.000536-0.00480.498104
18-0.07897-0.70190.242402
19-0.011465-0.10190.459547
20-0.08312-0.73880.231112
21-0.023482-0.20870.417605
220.0457480.40660.342695
230.020570.18280.427701
240.1255381.11580.133944
25-0.025364-0.22540.41111
26-0.038267-0.34010.367334
27-0.073679-0.65490.257225
28-0.111806-0.99380.161688
290.147411.31020.096961
300.0011890.01060.495799
31-0.207224-1.84180.034625
320.0166490.1480.441368
33-0.03668-0.3260.372637
34-0.062248-0.55330.290819
350.0867840.77140.221398
36-0.021609-0.19210.424093
37-0.052121-0.46330.322225
38-0.024995-0.22220.412381
390.0400860.35630.361286
400.1288041.14480.127866
41-0.068546-0.60920.272055
42-0.007224-0.06420.474482
43-0.001705-0.01520.493974
44-0.028875-0.25670.399058
450.0059870.05320.478848
460.0664850.59090.278127
47-0.009192-0.08170.467545
48-0.189924-1.68810.04767
490.0194510.17290.431593
500.0059210.05260.479082
51-0.035927-0.31930.375162
52-0.060522-0.53790.296069
53-0.024226-0.21530.415033
540.1028940.91450.181608
550.0515240.4580.324122
56-0.06212-0.55210.291206
570.075510.67110.252042
58-0.04879-0.43370.332861
59-0.064786-0.57580.283182
600.0044350.03940.484328
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/09/t1273395418rczmsz621nl8krq/1v14u1273395344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/09/t1273395418rczmsz621nl8krq/1v14u1273395344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/09/t1273395418rczmsz621nl8krq/2v14u1273395344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/09/t1273395418rczmsz621nl8krq/2v14u1273395344.ps (open in new window)


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