Home » date » 2009 » May » 14 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 14 May 2009 12:27:23 -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/May/14/t1242325660dh3djhi71n9llj3.htm/, Retrieved Thu, 14 May 2009 20:27:43 +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/May/14/t1242325660dh3djhi71n9llj3.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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9587468.19150
20.9156437.82330
30.8717037.44780
40.8285047.07870
50.7860746.71620
60.7436166.35350
70.7023956.00130
80.6624875.66030
90.623055.32331e-06
100.583954.98932e-06
110.5457884.66327e-06
120.5083674.34352.2e-05
130.4700824.01647.1e-05
140.4311983.68420.000219
150.3926053.35440.000632
160.3551153.03410.00167
170.3193652.72870.003981
180.2853972.43840.008592
190.2546152.17540.016418
200.2249121.92170.029277
210.1953281.66890.049712
220.1641781.40270.082467
230.1320631.12830.131434
240.0996220.85120.198728
250.06590.5630.287563
260.0297140.25390.400153
27-0.007108-0.06070.475871
28-0.046489-0.39720.346188
29-0.086916-0.74260.230049
30-0.126081-1.07720.14246
31-0.164361-1.40430.082235
32-0.200395-1.71220.045555
33-0.232519-1.98660.025358
34-0.260483-2.22560.014566
35-0.287013-2.45220.008294
36-0.311361-2.66030.004797
37-0.331699-2.8340.00297
38-0.348627-2.97870.001964
39-0.36456-3.11480.001315
40-0.38004-3.24710.000881
41-0.391729-3.34690.000647
42-0.398904-3.40820.000534
43-0.402702-3.44070.000482
44-0.403882-3.45080.000466
45-0.402631-3.44010.000483
46-0.400655-3.42320.000509
47-0.398958-3.40870.000533
48-0.396409-3.38690.000571


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9587468.19150
2-0.043934-0.37540.354237
3-0.032387-0.27670.391389
4-0.013865-0.11850.453012
5-0.014371-0.12280.451308
6-0.024685-0.21090.416775
7-0.009078-0.07760.469194
8-0.008385-0.07160.471541
9-0.019135-0.16350.435294
10-0.020506-0.17520.430701
11-0.012848-0.10980.456446
12-0.015853-0.13540.446316
13-0.036034-0.30790.379527
14-0.03264-0.27890.390565
15-0.022335-0.19080.424593
16-0.013839-0.11820.453102
17-0.006611-0.05650.477555
18-0.005713-0.04880.480601
190.0118970.10160.459659
20-0.013938-0.11910.452765
21-0.024694-0.2110.416742
22-0.044438-0.37970.352644
23-0.037544-0.32080.374649
24-0.031399-0.26830.394622
25-0.044274-0.37830.353162
26-0.060539-0.51720.303274
27-0.040275-0.34410.365875
28-0.068261-0.58320.280771
29-0.053661-0.45850.323983
30-0.027413-0.23420.407737
31-0.035249-0.30120.382073
32-0.020175-0.17240.431809
330.0029040.02480.490137
340.0090310.07720.469353
35-0.023156-0.19780.421858
36-0.011768-0.10050.460092
370.0134610.1150.454375
380.006330.05410.478509
39-0.023102-0.19740.422038
40-0.027886-0.23830.406176
410.0143640.12270.451329
420.0229490.19610.422547
430.0108180.09240.463304
440.0046310.03960.484274
450.0049870.04260.483066
46-0.016249-0.13880.444983
47-0.023986-0.20490.419096
48-0.005047-0.04310.48286
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242325660dh3djhi71n9llj3/1cuk91242325641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242325660dh3djhi71n9llj3/1cuk91242325641.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242325660dh3djhi71n9llj3/2kxkx1242325641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242325660dh3djhi71n9llj3/2kxkx1242325641.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 = 0 ; 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