Home » date » 2008 » Dec » 21 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 21 Dec 2008 11:02:12 -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/21/t1229882568kquchf1519695fv.htm/, Retrieved Sun, 21 Dec 2008 19:02:48 +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/21/t1229882568kquchf1519695fv.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 «
10244 10511 10812 10738 10171 9721 9897 9828 9924 10371 10846 10413 10709 10662 10570 10297 10635 10872 10296 10383 10431 10574 10653 10805 10872 10625 10407 10463 10556 10646 10702 11353 11346 11451 11964 12574 13031 13812 14544 14931 14886 16005 17064 15168 16050 15839 15137 14954 15648 15305 15579 16348 15928 16171 15937 15713 15594 15683 16438 17032
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0201970.15510.438622
2-0.079338-0.60940.272298
30.2265511.74020.043522
40.052050.39980.345373
5-0.291641-2.24010.014431
60.0064790.04980.480239
70.2556471.96370.027144
8-0.113601-0.87260.193213
9-0.102377-0.78640.217397
100.0511440.39280.347924
110.0478180.36730.357356
12-0.222249-1.70710.046529
13-0.034235-0.2630.396747
140.1042060.80040.213338
15-0.062341-0.47890.316907
16-0.215774-1.65740.051375
17-0.032275-0.24790.402532
18-0.036102-0.27730.391258
19-0.054398-0.41780.338792
20-0.028277-0.21720.414402
210.1146780.88090.190984
220.0862290.66230.255166
23-0.103495-0.7950.21491
24-0.092107-0.70750.241024
250.1747911.34260.092273
26-0.125365-0.96290.169752
27-0.050184-0.38550.350639
280.1569631.20570.116382
290.0691420.53110.298674
30-0.11022-0.84660.200314
31-0.07314-0.56180.28819
320.1127250.86590.195037
33-0.213802-1.64220.05293
34-0.060957-0.46820.320676
350.0520710.40.345314
360.0052280.04020.484051
37-0.159637-1.22620.112499
380.0860220.66070.255673
390.1040440.79920.213697
40-0.041796-0.3210.374658
410.0728380.55950.288975
420.0855740.65730.256771
43-0.009453-0.07260.47118
44-0.052094-0.40010.34525
45-0.019747-0.15170.439978
46-0.046956-0.36070.359814
47-0.032243-0.24770.402626
480.0148850.11430.454681
490.0681720.52360.301246
500.0522970.40170.344679
510.0249670.19180.424289
520.0192790.14810.441389
53-0.031253-0.24010.405559
54-0.062583-0.48070.316249
55-0.0349-0.26810.394788
560.004930.03790.484962
570.0171020.13140.447967
580.0065130.050.480136
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0201970.15510.438622
2-0.079778-0.61280.271186
30.2314591.77790.040289
40.0335320.25760.398819
5-0.2739-2.10390.019831
6-0.021323-0.16380.43523
70.2400111.84360.035136
8-0.013892-0.10670.457693
9-0.08979-0.68970.246547
10-0.145507-1.11770.134122
110.0850880.65360.257963
12-0.057024-0.4380.33149
13-0.055473-0.42610.335795
14-0.024048-0.18470.427043
150.0127230.09770.46124
16-0.163736-1.25770.106731
17-0.138942-1.06720.145107
18-0.091287-0.70120.24297
190.1730371.32910.094462
200.0003060.00230.499068
21-0.031668-0.24320.404328
220.0074960.05760.477138
23-0.02095-0.16090.436353
24-0.130373-1.00140.160358
250.1642121.26130.106076
26-0.139547-1.07190.14407
270.0774620.5950.277059
28-0.042657-0.32770.372167
290.0173260.13310.447289
30-0.032165-0.24710.402859
31-0.113596-0.87260.193223
32-0.015676-0.12040.452283
33-0.155448-1.1940.118624
34-0.029743-0.22850.410039
35-0.015934-0.12240.451503
36-0.072966-0.56050.288644
37-0.029737-0.22840.410058
380.0802760.61660.269933
390.0351060.26970.394185
400.0456850.35090.363452
410.0517040.39710.346347
42-0.057202-0.43940.330996
43-0.002315-0.01780.492935
44-0.017267-0.13260.44747
45-0.07379-0.56680.286502
46-0.064706-0.4970.310511
47-0.097784-0.75110.227792
480.0280840.21570.414975
49-0.000607-0.00470.498148
50-0.016936-0.13010.448469
510.0305930.2350.407514
520.0095650.07350.47084
53-0.051468-0.39530.347011
54-0.076668-0.58890.279088
55-0.035625-0.27360.392659
560.1371761.05370.148166
57-0.029122-0.22370.411885
580.0431520.33150.370736
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229882568kquchf1519695fv/12e131229882526.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229882568kquchf1519695fv/12e131229882526.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229882568kquchf1519695fv/2mogq1229882526.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229882568kquchf1519695fv/2mogq1229882526.ps (open in new window)


 
Parameters (Session):
par1 = 4 ;
 
Parameters (R input):
par1 = 60 ; par2 = -0.8 ; 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