Home » date » 2009 » Dec » 16 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 16 Dec 2009 06:56:33 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/16/t1260971845ue9xs5b88etwoed.htm/, Retrieved Wed, 16 Dec 2009 14:57:27 +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/2009/Dec/16/t1260971845ue9xs5b88etwoed.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
1,61 1,58 1,69 1,78 1,76 1,83 1,8 1,57 1,45 1,4 1,55 1,58 1,58 1,59 1,8 1,99 2,06 2,06 2,08 2 1,85 1,77 1,7 1,66 1,67 1,73 1,91 2,02 2,07 2,15 2,1 1,68 1,68 1,65 1,72 1,73 1,76 1,84 1,99 2,05 2,12 2,13 2,08 1,88 1,81 1,81 1,88 1,87 1,87 1,9 2,01 2,05 2,16 2,18 2,15 2,12 2,04 2,04 2,06 1,93 1,86 1,94 2,35 2,46 2,59 2,66 2,41 2,18 2,13 2,11 2,12 2,16 2,07 2,2 2,29 2,32 2,37 2,38 2,38 2,28 2,22 2,25 2,3 2,3 2,23 2,27 2,3 2,32 2,41 2,43 2,45 2,47 2,46 2,5 2,46 2,43 2,37 2,45 2,53 2,56 2,62 2,67 2,62 2,6 2,53 2,49 2,48 2,44
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9332179.69830
20.823778.56090
30.7146977.42730
40.6222016.46610
50.553265.74960
60.5216785.42140
70.5185085.38850
80.5349695.55960
90.5596195.81570
100.587976.11040
110.6159776.40140
120.61436.3840
130.5598215.81780
140.4767534.95461e-06
150.3972554.12843.6e-05
160.3356313.4880.000353
170.2884832.9980.001686
180.2660832.76520.003346
190.2658642.76290.003368
200.286392.97630.001801
210.3163873.2880.000681
220.3596623.73770.000149
230.3984794.14113.4e-05
240.4039624.19812.8e-05
250.3617023.75890.000139
260.2999673.11730.001169
270.2407242.50170.00693
280.1876361.950.026886
290.1397581.45240.074644
300.1079111.12140.132292
310.0920060.95620.170564
320.0898280.93350.176317
330.1086161.12880.130747
340.140771.46290.073197
350.1814891.88610.030985
360.1921851.99720.024157
370.1541.60040.056214
380.0982041.02060.15487
390.0410390.42650.335301
40-0.013116-0.13630.445917
41-0.0524-0.54460.293592
42-0.084711-0.88030.190315
43-0.104241-1.08330.140544
44-0.113373-1.17820.120652
45-0.113283-1.17730.120837
46-0.10124-1.05210.147548
47-0.078548-0.81630.208063
48-0.07757-0.80610.21097


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9332179.69830
2-0.365003-3.79320.000123
30.0533460.55440.290228
40.0425410.44210.329649
50.0710730.73860.230871
60.1919881.99520.02427
70.0756880.78660.216628
80.1108181.15170.126003
90.0721640.750.227458
100.105661.0980.137313
110.1088011.13070.130344
12-0.162105-1.68460.047472
13-0.258705-2.68850.004157
14-0.035992-0.3740.354554
150.0532270.55310.290653
160.0372810.38740.349599
17-0.098869-1.02750.153246
180.0121370.12610.44993
190.0107720.11190.455537
200.1141381.18620.119082
210.0584430.60740.272443
220.1319181.37090.086619
23-0.016103-0.16730.433706
24-0.109788-1.1410.128207
25-0.093913-0.9760.165631
260.0796450.82770.204833
270.0131250.13640.445879
28-0.100998-1.04960.148122
29-0.135078-1.40380.081627
30-0.030062-0.31240.377664
31-0.026668-0.27710.3911
320.0012030.01250.495025
330.10111.05070.14788
34-0.049058-0.50980.305606
350.1197971.2450.107919
36-0.108332-1.12580.131369
37-0.0985-1.02360.154146
380.0884850.91960.179925
39-0.059455-0.61790.268979
40-0.015129-0.15720.43768
410.0577560.60020.274809
42-0.205912-2.13990.017307
430.0303820.31570.376403
44-0.098416-1.02280.15435
45-0.059363-0.61690.269294
46-0.009388-0.09760.461229
470.0119470.12420.450709
48-0.04886-0.50780.306325
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260971845ue9xs5b88etwoed/12vvf1260971791.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260971845ue9xs5b88etwoed/12vvf1260971791.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260971845ue9xs5b88etwoed/2fy6i1260971791.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260971845ue9xs5b88etwoed/2fy6i1260971791.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