Home » date » 2010 » Dec » 15 »

workshop 9 link 2

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 15 Dec 2010 15:36:18 +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/Dec/15/t1292427328n2oj91zgoqa3w4r.htm/, Retrieved Wed, 15 Dec 2010 16:35:30 +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/2010/Dec/15/t1292427328n2oj91zgoqa3w4r.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
33 24 24 31 25 28 24 25 16 17 11 12 39 19 14 15 7 12 12 14 9 8 4 7 3 5 0 -2 6 11 9 17 21 21 41 57 65 68 73 71 71 70 69 65 57 57 57 55 65 65 64 60 43 47 40 31 27 24 23 17
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.004460.03430.486392
20.0915650.70330.242309
30.2516071.93260.029043
4-0.08877-0.68190.249
50.1308371.0050.159505
60.0565480.43430.332809
70.0975040.74890.228433
8-0.07994-0.6140.270777
90.0097650.0750.470232
10-0.087986-0.67580.250894
11-0.049134-0.37740.353615
120.0445740.34240.36664
130.040890.31410.377285
14-0.000112-9e-040.499658
15-0.119828-0.92040.180552
16-0.019919-0.1530.439459
17-0.015763-0.12110.45202
18-0.200445-1.53960.064496
19-0.014591-0.11210.455573
20-0.088158-0.67720.250477
21-0.297936-2.28850.012854
22-0.007384-0.05670.47748
23-0.007902-0.06070.475904
24-0.109299-0.83950.202276
25-0.031676-0.24330.404306
26-0.01711-0.13140.447944
27-0.136882-1.05140.148678
28-0.035937-0.2760.391743
290.0104470.08020.468157
30-0.016028-0.12310.451217
310.0473990.36410.35855
32-0.046746-0.35910.360416
33-0.021646-0.16630.434258
34-0.027472-0.2110.416801
35-0.076459-0.58730.279624
360.129540.9950.161897
37-0.013415-0.1030.459139
380.0342640.26320.396663
390.0868370.6670.253683
40-0.178777-1.37320.087442
410.0810360.62240.268023
420.0208340.160.436702
43-0.00575-0.04420.482462
440.015940.12240.451484
450.0082270.06320.474915
460.0725310.55710.289776
47-0.067808-0.52080.302212
480.0365520.28080.389938


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.004460.03430.486392
20.0915470.70320.242352
30.2529521.9430.028398
4-0.100608-0.77280.221367
50.0912060.70060.243164
60.0102210.07850.468845
70.1372491.05420.148038
8-0.169642-1.3030.098811
90.0066730.05130.479648
10-0.15476-1.18870.119653
110.0480020.36870.356832
12-0.008947-0.06870.47272
130.1534021.17830.121704
14-0.058151-0.44670.328376
15-0.088412-0.67910.249864
16-0.079347-0.60950.272275
170.0774610.5950.277062
18-0.243184-1.86790.03337
19-0.003121-0.0240.490477
20-0.129448-0.99430.162066
21-0.15559-1.19510.118413
22-0.023043-0.1770.430058
230.1751041.3450.091886
24-0.032695-0.25110.40129
25-0.050346-0.38670.35018
26-0.056868-0.43680.33192
27-0.047402-0.36410.358541
28-0.055138-0.42350.336726
29-0.033329-0.2560.399419
300.014360.11030.456271
310.0398320.3060.380359
32-0.045268-0.34770.364646
330.0090950.06990.472272
340.0202420.15550.438485
35-0.139773-1.07360.143682
360.0449970.34560.365424
37-0.047139-0.36210.359294
380.0793210.60930.272341
39-0.095306-0.73210.233515
40-0.14872-1.14230.128963
410.0262950.2020.420315
42-0.029655-0.22780.410302
43-0.011819-0.09080.463985
44-0.024442-0.18770.425863
45-0.027682-0.21260.416174
460.0552620.42450.336382
47-0.050234-0.38590.350497
48-0.059255-0.45510.325336
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292427328n2oj91zgoqa3w4r/1wu6v1292427376.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292427328n2oj91zgoqa3w4r/1wu6v1292427376.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292427328n2oj91zgoqa3w4r/2wu6v1292427376.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292427328n2oj91zgoqa3w4r/2wu6v1292427376.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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