Home » date » 2010 » May » 01 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 01 May 2010 18:47:39 +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/May/01/t1272739739a7pbkuf1m028bms.htm/, Retrieved Sat, 01 May 2010 20:49:02 +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/2010/May/01/t1272739739a7pbkuf1m028bms.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6550 8728 12026 14395 14587 13791 9498 8251 7049 9545 9364 8456 7237 9374 11837 13784 15926 13821 11143 7975 7610 10015 12759 8816 10677 10947 15200 17010 20900 16205 12143 8997 5568 11474 12256 10583 10862 10965 14405 20379 20128 17816 12268 8642 7962 13932 15936 12628 12267 12470 18944 21259 22015 18581 15175 10306 10792 14752 13754 11738 12181 12965 19990 23125 23541 21247 15189 14767 10895 17130 17697 16611 12674 12760 20249 22135 20677 19933 15388 15113 13401 16135 17562 14720 12225 11608 20985 19692 24081 22114 14220 13434 13598 17187 16119 13713 13210 14251 20139 21725 26099 21084 18024 16722 14385 21342 17180 14577
 
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.7171337.45270
20.3583673.72430.000157
30.0725320.75380.226313
40.0287750.2990.382743
50.1629221.69310.046656
60.2039972.120.018148
70.1354921.40810.080991
8-0.014234-0.14790.441339
90.0112920.11740.453399
100.2563612.66420.00445
110.5938796.17180
120.7626247.92540
130.5476795.69170
140.2290922.38080.009513
15-0.01979-0.20570.418721
16-0.054115-0.56240.287511
170.0941220.97810.165094
180.1011791.05150.147692
190.0480410.49930.309307
20-0.106451-1.10630.135534
21-0.077778-0.80830.210351
220.1478741.53680.063639
230.4548374.72683e-06
240.5867936.09810
250.4102174.26312.2e-05
260.1389851.44440.075764
27-0.093136-0.96790.167628
28-0.102124-1.06130.145461
290.0099280.10320.459007
300.023340.24260.404404
31-0.044894-0.46660.320878
32-0.166577-1.73110.043143
33-0.165021-1.71490.044611
340.0527970.54870.292178
350.3039363.15860.001028
360.4217964.38341.4e-05
370.2593642.69540.004078
380.0274040.28480.388177
39-0.162227-1.68590.04735
40-0.156697-1.62840.053173
41-0.066457-0.69060.245638
42-0.066457-0.69060.245637
43-0.127176-1.32160.094539
44-0.256103-2.66150.004483
45-0.247931-2.57660.005664
46-0.07469-0.77620.219664
470.1389861.44440.075762
480.2242982.3310.010806


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7171337.45270
2-0.320992-3.33580.000583
3-0.084386-0.8770.191225
40.2518172.6170.005072
50.201442.09340.019326
6-0.216654-2.25150.013188
7-0.04635-0.48170.315501
8-0.001304-0.01350.494608
90.3246953.37430.000514
100.3645523.78850.000125
110.3802323.95156.9e-05
120.1603281.66620.049288
13-0.345716-3.59280.000247
14-0.075842-0.78820.216161
15-0.030126-0.31310.377412
16-0.129661-1.34750.090323
170.1275961.3260.093816
18-0.211572-2.19870.015015
190.1378161.43220.077483
20-0.092113-0.95730.170285
210.0446740.46430.321695
22-0.053693-0.5580.289
230.1107561.1510.126134
24-0.045493-0.47280.318663
250.0269570.28020.389949
260.0053390.05550.477929
27-0.054316-0.56450.286803
28-0.054829-0.56980.284998
290.0197580.20530.418848
30-0.067379-0.70020.242648
310.0056910.05910.476473
320.064110.66630.253334
33-0.142173-1.47750.071225
340.00760.0790.468598
35-0.000554-0.00580.497708
36-0.061407-0.63820.262361
37-0.058542-0.60840.272105
380.0456540.47440.318069
390.0269490.28010.389981
40-0.058452-0.60750.272413
410.0202430.21040.416887
42-0.108784-1.13050.130382
430.0314150.32650.372348
44-0.047442-0.4930.311495
45-0.059545-0.61880.268671
46-0.108206-1.12450.131646
470.0166270.17280.431568
48-0.087205-0.90630.183409
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/01/t1272739739a7pbkuf1m028bms/1idgq1272739657.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/01/t1272739739a7pbkuf1m028bms/1idgq1272739657.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/01/t1272739739a7pbkuf1m028bms/2b4fb1272739657.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/01/t1272739739a7pbkuf1m028bms/2b4fb1272739657.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