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 12:19:02 +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/t1272716368kixl4frg6amq73y.htm/, Retrieved Sat, 01 May 2010 14:19:28 +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/t1272716368kixl4frg6amq73y.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 «
7089 77102 35123 23109 11115 48105 7896 79102 2494 76101 9484 8183 9092 49109 27127 31116 77120 80115 67117 18110 3099 3105 5786 7387 5089 288 65108 44100 68102 8798 8183 288 3680 9374 2271 4671 3466 8068 2780 9883 6479 3373 6468 460 5553 6157 2345 3744 6144 9948 2049 9549 6049 745 9643 9938 5535 6932 1827 9726 7624 9529 7631 6132 7534 2137 8738 8836 3230 633 9126 123
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3516252.98360.001944
20.4388073.72340.000194
30.0451810.38340.351285
40.2046711.73670.04336
5-0.005291-0.04490.482158
60.1282731.08840.140017
70.0505030.42850.334772
80.2796242.37270.010166
90.304392.58280.005916
100.3497612.96780.002035
110.3363142.85370.002819
120.2454232.08250.020426
130.1382021.17270.122395
140.0735720.62430.267208
150.1266151.07440.143124
160.0413640.3510.363311
170.0969720.82280.206659
18-0.05201-0.44130.330152
190.1082360.91840.180736
20-0.047394-0.40220.344382
210.0953560.80910.210556
22-0.056964-0.48340.315155
23-0.003174-0.02690.489294
24-0.056779-0.48180.315709
250.0318920.27060.393731
26-0.003788-0.03210.487225
27-0.008146-0.06910.472542
28-0.091359-0.77520.220379
29-0.10948-0.9290.178005
30-0.11372-0.96490.168901
31-0.101457-0.86090.196078
32-0.089989-0.76360.223806
33-0.093089-0.78990.216093
34-0.109885-0.93240.177122
35-0.102048-0.86590.194708
36-0.113674-0.96460.168997
37-0.124863-1.05950.146457
38-0.101027-0.85720.197077
39-0.120812-1.02510.154369
40-0.128527-1.09060.139546
41-0.143504-1.21770.113662
42-0.125907-1.06840.144465
43-0.14268-1.21070.114988
44-0.105509-0.89530.186812
45-0.115546-0.98040.165076
46-0.08648-0.73380.232725
47-0.091082-0.77290.221068
48-0.089915-0.7630.223991


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3516252.98360.001944
20.3596323.05160.001593
3-0.236011-2.00260.024492
40.128411.08960.139763
5-0.021625-0.18350.427462
60.0251480.21340.415812
70.0854050.72470.235496
80.2272081.92790.028905
90.225631.91450.029763
100.0434970.36910.356574
110.1585461.34530.091374
12-0.002536-0.02150.491445
13-0.099102-0.84090.201591
140.0145540.12350.45103
150.1359861.15390.126183
16-0.091478-0.77620.220081
17-0.062207-0.52780.299615
18-0.192223-1.63110.053622
19-0.032177-0.2730.392805
20-0.201292-1.7080.04597
21-0.04271-0.36240.359055
22-0.032186-0.27310.392777
23-0.215806-1.83120.035606
240.0057410.04870.480642
250.017690.15010.44055
260.0008090.00690.497273
27-0.032481-0.27560.39182
28-0.012604-0.10690.457564
290.023320.19790.421848
30-0.008244-0.070.472212
310.0947270.80380.212083
320.1130670.95940.170283
330.0207920.17640.430229
34-0.03737-0.31710.376044
350.0369950.31390.377248
36-0.087278-0.74060.230679
37-0.018416-0.15630.43813
380.0631230.53560.296938
390.0330270.28020.390047
40-0.140438-1.19170.118655
41-0.115286-0.97820.165618
42-0.014419-0.12240.45148
43-0.127318-1.08030.1418
440.0310070.26310.396612
450.0755070.64070.261877
46-0.024562-0.20840.417745
47-0.047945-0.40680.342672
480.0221650.18810.425673
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/01/t1272716368kixl4frg6amq73y/18imn1272716338.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/01/t1272716368kixl4frg6amq73y/18imn1272716338.ps (open in new window)


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