Home » date » 2009 » Dec » 28 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 28 Dec 2009 13:01:50 -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/28/t1262030584vcsdqu5jwpoauxj.htm/, Retrieved Mon, 28 Dec 2009 21:03:06 +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/28/t1262030584vcsdqu5jwpoauxj.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2921.44 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 3161.69 3257.16 3277.01 3295.32 3363.99 3494.17 3667.03 3813.06 3917.96 3895.51 3801.06 3570.12 3701.61 3862.27 3970.1 4138.52 4199.75 4290.89 4443.91 4502.64 4356.98 4591.27 4696.96 4621.4 4562.84 4202.52 4296.49 4435.23 4105.18 4116.68 3844.49 3720.98 3674.4 3857.62 3801.06 3504.37 3032.6 3047.03 2962.34 2197.82 2014.45 1862.83 1905.41 1810.99 1670.07 1864.44 2052.02 2029.6 2070.83 2293.41 2443.27 2513.17 2466.92
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9665437.48680
20.9215137.1380
30.8724216.75770
40.8103996.27730
50.7328935.6770
60.6425114.97693e-06
70.5545574.29563.2e-05
80.465283.6040.000319
90.3661232.8360.00311
100.2688472.08250.020785
110.1810441.40240.082981
120.0876050.67860.250004
13-0.001051-0.00810.496766
14-0.082668-0.64030.262195
15-0.149292-1.15640.126049
16-0.210744-1.63240.053915
17-0.274793-2.12850.018704
18-0.324712-2.51520.007296
19-0.363288-2.8140.003303
20-0.400261-3.10040.001471
21-0.435169-3.37080.000658
22-0.460573-3.56760.000358
23-0.474081-3.67220.000257
24-0.474544-3.67580.000254
25-0.469263-3.63490.000289
26-0.452875-3.5080.000431
27-0.433243-3.35590.000688
28-0.415587-3.21910.001038
29-0.391022-3.02880.001809
30-0.362813-2.81030.003337
31-0.33219-2.57310.006284
32-0.300695-2.32920.011618
33-0.276362-2.14070.018186
34-0.246505-1.90940.030497
35-0.212507-1.64610.052489
36-0.179565-1.39090.084696
37-0.146368-1.13380.130702
38-0.116667-0.90370.184885
39-0.090038-0.69740.244114
40-0.063634-0.49290.311939
41-0.036695-0.28420.388602
42-0.013608-0.10540.458201
430.0105720.08190.467503
440.0310720.24070.405311
450.052570.40720.342652
460.0710450.55030.292073
470.078570.60860.272543
480.0808730.62640.266702
490.0788560.61080.271814
500.0754250.58420.280623
510.069780.54050.295422
520.0617070.4780.317199
530.0536110.41530.339713
540.0460180.35650.361376
550.0366960.28420.388601
560.0282830.21910.413667
570.0215180.16670.434092
580.015750.1220.451653
590.0087280.06760.473162
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9665437.48680
2-0.192909-1.49430.070173
3-0.057238-0.44340.329548
4-0.215277-1.66750.050311
5-0.227935-1.76560.041278
6-0.205385-1.59090.058444
70.0513430.39770.346132
8-0.032222-0.24960.401878
9-0.144465-1.1190.133796
100.0164090.12710.449641
110.0692850.53670.296736
12-0.212292-1.64440.052661
130.0484490.37530.354387
14-0.005271-0.04080.483785
150.106240.82290.206904
16-0.069369-0.53730.296515
17-0.113558-0.87960.191288
180.0357720.27710.391332
19-0.043734-0.33880.367984
20-0.091104-0.70570.241557
21-0.059775-0.4630.322513
22-0.00278-0.02150.491447
230.0303960.23540.407333
240.1397141.08220.141742
250.0675670.52340.301321
260.0036260.02810.488842
27-0.146216-1.13260.130947
28-0.11423-0.88480.189893
29-0.011152-0.08640.465724
30-0.037748-0.29240.385497
310.0005570.00430.498287
320.0646110.50050.309285
33-0.169446-1.31250.097171
340.0202310.15670.437999
350.028670.22210.412503
360.0812190.62910.265829
370.0146040.11310.455156
38-0.00933-0.07230.471313
39-0.079834-0.61840.26933
40-0.046829-0.36270.359038
410.0611880.4740.318625
42-0.084819-0.6570.256845
430.056580.43830.331383
44-0.035831-0.27750.391157
45-0.014293-0.11070.456106
46-6.5e-05-5e-040.499801
47-0.142895-1.10690.136387
48-0.046259-0.35830.36068
49-0.007065-0.05470.478271
50-0.005686-0.0440.482507
510.0081580.06320.474913
520.0195730.15160.440002
530.0573980.44460.329103
54-0.029033-0.22490.411416
55-0.007903-0.06120.475695
56-0.09483-0.73450.232738
570.0189320.14660.441952
580.0665490.51550.304053
59-0.000732-0.00570.497747
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030584vcsdqu5jwpoauxj/1hsk61262030506.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030584vcsdqu5jwpoauxj/1hsk61262030506.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030584vcsdqu5jwpoauxj/2ol831262030506.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262030584vcsdqu5jwpoauxj/2ol831262030506.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 0.9 ; 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