Home » date » 2010 » Nov » 17 »

*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, 17 Nov 2010 17:44:34 +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/17/t1290015922429vn44j7bq8sxg.htm/, Retrieved Wed, 17 Nov 2010 18:45: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/Nov/17/t1290015922429vn44j7bq8sxg.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 «
95,05 96,84 96,92 97,44 97,78 97,69 96,67 98,29 98,2 98,71 98,54 98,2 96,92 99,06 99,65 99,82 99,99 100,33 99,31 101,1 101,1 100,93 100,85 100,93 99,6 101,88 101,81 102,38 102,74 102,82 101,72 103,47 102,98 102,68 102,9 103,03 101,29 103,69 103,68 104,2 104,08 104,16 103,05 104,66 104,46 104,95 105,85 106,23 104,86 107,44 108,23 108,45 109,39 110,15 109,13 110,28 110,17 109,99 109,26 109,11 107,06 109,53 108,92 109,24 109,12 109 107,23 109,49 109,04 109,02 109,23 109,46
 
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.9326617.91390
20.8994557.63210
30.8616497.31130
40.8255657.00520
50.7840016.65250
60.7746666.57330
70.7077696.00560
80.6716565.69920
90.6311725.35570
100.5951175.04972e-06
110.5522894.68636e-06
120.5368254.55511e-05
130.4649293.94519.2e-05
140.4247583.60420.000287
150.3825013.24560.00089
160.3382572.87020.002691
170.2918462.47640.007811
180.2715392.30410.012053
190.2042211.73290.043699
200.1684881.42970.078568
210.1346921.14290.128433
220.0999490.84810.199598
230.0627970.53290.297888
240.0544680.46220.322675
25-0.001671-0.01420.494363
26-0.028686-0.24340.404191
27-0.056089-0.47590.317783
28-0.078127-0.66290.254747
29-0.102066-0.86610.194668
30-0.102692-0.87140.193225
31-0.143059-1.21390.114378
32-0.158935-1.34860.090845
33-0.180336-1.53020.065175
34-0.202567-1.71880.04497
35-0.22653-1.92220.02927
36-0.226106-1.91860.029502
37-0.268817-2.2810.012755
38-0.287153-2.43660.00865
39-0.306623-2.60180.005625
40-0.323974-2.7490.003776
41-0.346382-2.93910.00221
42-0.349689-2.96720.002038
43-0.383559-3.25460.000866
44-0.399452-3.38950.00057
45-0.416579-3.53480.000359
46-0.428795-3.63840.000256
47-0.437752-3.71440.000199
48-0.427262-3.62540.000267


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9326617.91390
20.2274281.92980.028786
30.0116310.09870.460829
4-0.007182-0.06090.475788
5-0.05869-0.4980.310001
60.2181051.85070.034159
7-0.369816-3.1380.001233
80.0608310.51620.30366
90.0005860.0050.498022
100.0100190.0850.466242
11-0.018472-0.15670.437943
120.0469590.39850.345734
13-0.271139-2.30070.012154
140.0291980.24780.402515
150.0181790.15430.43892
16-0.070548-0.59860.275653
170.0086120.07310.470974
180.0099310.08430.466539
19-0.126574-1.0740.143201
200.0249480.21170.416473
210.0390990.33180.370515
22-0.021675-0.18390.427297
23-0.002316-0.01970.492188
240.0569290.48310.315261
25-0.12946-1.09850.137823
26-0.000279-0.00240.499058
27-0.009504-0.08060.467973
280.0594120.50410.307854
290.0176410.14970.440714
30-0.01313-0.11140.455799
31-0.040731-0.34560.36532
32-0.038035-0.32270.373916
33-0.056957-0.48330.315177
34-0.05162-0.4380.331345
35-0.011307-0.09590.461915
360.0051550.04370.482616
37-0.098226-0.83350.203667
38-0.043516-0.36920.356514
39-0.016394-0.13910.444877
400.0008990.00760.496968
41-0.050012-0.42440.336282
42-0.06173-0.52380.301014
430.0092430.07840.468853
44-0.065828-0.55860.289094
45-0.024185-0.20520.418991
460.013470.11430.454662
470.0652580.55370.29074
480.015860.13460.44666
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290015922429vn44j7bq8sxg/1oxy51290015872.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290015922429vn44j7bq8sxg/1oxy51290015872.ps (open in new window)


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