Home » date » 2009 » Jun » 02 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 02 Jun 2009 10:02:43 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/02/t1243958582pt48c31cek0bh8k.htm/, Retrieved Tue, 02 Jun 2009 18:03:08 +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/2009/Jun/02/t1243958582pt48c31cek0bh8k.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 «
3851,3 3851,8 3854,1 3858,4 3861,6 3856,3 3855,8 3860,4 3855,1 3839,5 3833 3833,6 3826,8 3818,2 3811,4 3806,8 3810,3 3818,2 3858,9 3867,8 3872,3 3873,3 3876,7 3882,6 3883,5 3882,2 3888,1 3893,7 3901,9 3914,3 3930,3 3948,3 3971,5 3990,1 3993 3998 4015,8 4041,2 4060,7 4076,7 4103 4125,3 4139,7 4146,7 4158 4155,1 4144,8 4148,2 4142,5 4142,1 4145,4 4146,3 4143,5 4149,2 4158,9 4166,1 4179,1 4194,4 4211,7 4226,3 4235,8 4243,6 4258,7 4278,2 4298 4315,1 4334,3 4356 4374 4395,5 4417,8 4432,8 4446,3
 
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.6955535.9020
20.4933644.18634e-05
30.4197733.56190.000329
40.3585893.04270.001635
50.2338061.98390.02554
60.1411271.19750.117519
70.129271.09690.138172
80.0563260.47790.31707
9-0.019944-0.16920.433044
10-0.002941-0.0250.49008
110.0189590.16090.436323
12-0.020744-0.1760.430387
13-0.072973-0.61920.26887
14-0.058723-0.49830.309902
15-0.127455-1.08150.141544
16-0.229117-1.94410.027894
17-0.239007-2.0280.023129
18-0.145349-1.23330.110733
19-0.099645-0.84550.200313
20-0.096719-0.82070.207267
21-0.078639-0.66730.253366
22-0.029948-0.25410.400064
23-0.053362-0.45280.326031
24-0.062027-0.52630.300142
25-0.017097-0.14510.442531
260.0307240.26070.397533
27-0.064687-0.54890.292389
28-0.120113-1.01920.155761
29-0.025806-0.2190.413645
30-0.018946-0.16080.436366
31-0.009459-0.08030.468127
320.0188460.15990.436699
330.068180.57850.282356
340.0562790.47750.317212
350.0593970.5040.307899
360.1171420.9940.16178
370.1483051.25840.106155
380.1528091.29660.09945
390.1479141.25510.106753
400.1535421.30280.098389
410.0930920.78990.216087
420.0284890.24170.404834
430.0069240.05870.476657
440.006040.05130.479633
45-0.004667-0.03960.484261
46-0.005317-0.04510.482069
47-0.021588-0.18320.427586
48-0.053501-0.4540.325607


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6955535.9020
20.0185390.15730.437721
30.1358051.15230.126495
40.0300430.25490.399753
5-0.111134-0.9430.174416
6-0.032383-0.27480.392138
70.0607340.51530.303944
8-0.107106-0.90880.183237
9-0.042466-0.36030.359825
100.0882750.7490.228137
110.0120240.1020.459511
12-0.05186-0.440.33061
13-0.055109-0.46760.320735
140.0128580.10910.45671
15-0.171132-1.45210.075409
16-0.122395-1.03860.151243
170.0115590.09810.46107
180.1370651.1630.124328
190.0589390.50010.309261
200.024940.21160.416501
21-0.041537-0.35250.362764
220.0124320.10550.45814
23-0.090124-0.76470.223467
24-0.024845-0.21080.416813
250.0302930.2570.398937
260.0825370.70030.242984
27-0.156942-1.33170.09358
28-0.044478-0.37740.353491
290.1643481.39450.083721
30-0.077663-0.6590.256001
310.0637620.5410.295076
32-0.026886-0.22810.410095
33-0.006741-0.05720.477274
340.0064190.05450.478357
350.1135340.96340.169294
360.0355070.30130.382032
370.0485330.41180.340848
380.0677090.57450.2837
39-0.027631-0.23450.40765
40-0.060286-0.51150.305268
41-0.07007-0.59460.276998
42-0.020449-0.17350.431366
43-0.086593-0.73480.232433
44-0.008628-0.07320.470921
450.0545080.46250.322552
460.101260.85920.196537
47-0.043966-0.37310.355099
48-0.056526-0.47960.316468
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243958582pt48c31cek0bh8k/1tzu21243958562.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243958582pt48c31cek0bh8k/1tzu21243958562.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243958582pt48c31cek0bh8k/2o3m91243958562.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243958582pt48c31cek0bh8k/2o3m91243958562.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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