Home » date » 2008 » Dec » 17 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 17 Dec 2008 01:31:56 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/17/t122950274529v2x6vfikpyem5.htm/, Retrieved Wed, 17 Dec 2008 09:32:27 +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/2008/Dec/17/t122950274529v2x6vfikpyem5.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
6.4 6.8 7.5 7.5 7.6 7.6 7.4 7.3 7.1 6.9 6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.2 8.3 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.6 6.2 6.2 6.8 6.9
 
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.3639963.33610.000633
2-0.134596-1.23360.110397
3-0.424546-3.8911e-04
4-0.377078-3.4560.000431
5-0.038335-0.35130.363105
60.2575082.36010.010294
70.1305071.19610.117508
8-0.114331-1.04790.148854
9-0.182115-1.66910.049409
10-0.086801-0.79550.21427
110.1747941.6020.056454
120.5248334.81023e-06
130.1583181.4510.075251
14-0.082306-0.75430.226375
15-0.245782-2.25260.013445
16-0.193219-1.77090.040104
17-0.026135-0.23950.405637
180.1544561.41560.080293
190.0589090.53990.295345
20-0.07791-0.71410.238587
21-0.113283-1.03830.151065
22-0.017894-0.1640.435061
230.09160.83950.201778
240.3012842.76130.003534
250.0653070.59860.275541
26-0.058885-0.53970.29542
27-0.163218-1.49590.069212
28-0.10674-0.97830.165371
29-0.022498-0.20620.418568
300.02630.2410.405055
310.0271770.24910.401953
32-0.034779-0.31880.375351
330.0102530.0940.462677
340.025460.23330.40803
350.0023550.02160.491417
360.122041.11850.133268
37-0.054869-0.50290.308181
38-0.054874-0.50290.308166
39-0.057837-0.53010.298727
400.0413180.37870.35294
410.0951360.87190.192864
420.0751240.68850.246511
43-0.040282-0.36920.356457
44-0.188546-1.72810.043826
45-0.118261-1.08390.140759
46-0.071017-0.65090.258449
470.0319030.29240.385354
480.1926351.76550.040554
490.0713270.65370.257538
50-0.018303-0.16770.433592
51-0.036985-0.3390.367736
52-0.034629-0.31740.375871
53-0.02253-0.20650.418454
540.0260440.23870.405962
55-0.038124-0.34940.363827
56-0.090696-0.83120.204096
57-0.027942-0.25610.399253
58-0.054455-0.49910.309512
59-0.030536-0.27990.390134
600.0887010.8130.20927


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3639963.33610.000633
2-0.307882-2.82180.00298
3-0.316325-2.89920.002386
4-0.17312-1.58670.058172
50.0506610.46430.32181
60.0863290.79120.215523
7-0.214844-1.96910.02612
8-0.185326-1.69850.046554
90.0085740.07860.468775
100.0204440.18740.42591
110.1037450.95080.172207
120.427033.91389.2e-05
13-0.209203-1.91740.029295
140.1949911.78710.038763
150.1330741.21960.113007
160.1320311.21010.11482
17-0.030181-0.27660.391377
180.0193770.17760.429734
190.0087710.08040.46806
20-0.005952-0.05460.478312
21-0.084088-0.77070.221531
220.0527990.48390.314855
23-0.118446-1.08560.140387
240.040490.37110.35575
25-0.060889-0.55810.289145
260.0072980.06690.473414
27-0.046141-0.42290.336728
280.0068460.06270.475058
29-0.017623-0.16150.436037
30-0.157704-1.44540.076036
310.0888930.81470.208769
32-0.042243-0.38720.349807
330.0904370.82890.204765
34-0.129746-1.18910.118868
35-0.011769-0.10790.457179
360.0443050.40610.342863
37-0.113301-1.03840.151026
38-0.012393-0.11360.454919
390.0356220.32650.372437
400.0483690.44330.329341
410.1584821.45250.075042
420.0772150.70770.24055
43-0.024749-0.22680.410552
44-0.096827-0.88740.188691
450.0015040.01380.494518
46-0.111426-1.02120.155036
47-0.048195-0.44170.329917
48-0.019381-0.17760.42972
490.0106080.09720.461391
50-0.104904-0.96150.169541
510.0808340.74090.230423
52-0.086663-0.79430.214634
53-0.094029-0.86180.195628
540.0066090.06060.475923
55-0.040858-0.37450.354498
560.095680.87690.191516
57-0.042266-0.38740.349729
580.0060260.05520.478044
59-0.030256-0.27730.391117
60-0.041904-0.38410.350954
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t122950274529v2x6vfikpyem5/1bc681229502713.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t122950274529v2x6vfikpyem5/1bc681229502713.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t122950274529v2x6vfikpyem5/2yrq31229502713.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t122950274529v2x6vfikpyem5/2yrq31229502713.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; 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