Home » date » 2010 » Dec » 10 »

verb 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: Fri, 10 Dec 2010 12:12:44 +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/10/t1291983054k6ojgs7aslvgyb5.htm/, Retrieved Fri, 10 Dec 2010 13:10:54 +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/10/t1291983054k6ojgs7aslvgyb5.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 «
101.76 102.37 102.38 102.86 102.87 102.92 102.95 103.02 104.08 104.16 104.24 104.33 104.73 104.86 105.03 105.62 105.63 105.63 105.94 106.61 107.69 107.78 107.93 108.48 108.14 108.48 108.48 108.89 108.93 109.21 109.47 109.80 111.73 111.85 112.12 112.15 112.17 112.67 112.80 113.44 113.53 114.53 114.51 115.05 116.67 117.07 116.92 117.00 117.02 117.35 117.36 117.82 117.88 118.24 118.50 118.80 119.76 120.09
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.243728-1.6350.054515
20.1387190.93060.178524
30.008370.05610.477735
40.2910491.95240.028563
5-0.103181-0.69220.246197
6-0.173061-1.16090.125897
70.2550011.71060.047021
8-0.285695-1.91650.030833
90.2897631.94380.029095
10-0.250304-1.67910.050033
110.2921781.960.028103
12-0.309274-2.07470.021882
130.1464610.98250.165556
14-0.040484-0.27160.393594
15-0.104534-0.70120.243384
16-0.055723-0.37380.355153
17-0.205059-1.37560.08788
180.2680671.79820.039424
19-0.212837-1.42780.080133
200.0856390.57450.28425
21-0.137971-0.92550.179812
220.3094172.07560.021836
23-0.112567-0.75510.227055
24-0.135622-0.90980.183893
250.0482210.32350.373916
260.0260250.17460.431095
27-0.032728-0.21950.413609
28-0.141388-0.94850.173981
290.1637411.09840.138935
30-0.129348-0.86770.195083
310.0317140.21270.416243
320.0094940.06370.47475
33-0.025533-0.17130.432385
34-0.09876-0.66250.255514
35-0.012853-0.08620.465836
36-0.000706-0.00470.498122
37-0.08916-0.59810.276384
38-0.039962-0.26810.394934
39-0.008345-0.0560.477801
400.0652730.43790.331789
41-0.048213-0.32340.373936
420.0006340.00430.498312
430.0605180.4060.343345
440.0067490.04530.482044
45NANANA
46NANANA
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.243728-1.6350.054515
20.0843250.56570.287213
30.0641190.43010.334579
40.3170812.1270.019466
50.0323160.21680.41468
6-0.306899-2.05870.022668
70.1405530.94290.175395
8-0.284631-1.90940.031302
90.3091422.07380.021926
10-0.02482-0.16650.434257
110.1369380.91860.1816
12-0.210219-1.41020.082679
13-0.108258-0.72620.235733
14-0.035796-0.24010.405661
15-0.037297-0.25020.401787
16-0.105714-0.70920.240945
17-0.074201-0.49780.31054
180.0592470.39740.346461
190.2149671.4420.078108
20-0.140106-0.93990.176153
210.0565350.37920.353144
220.0591770.3970.346631
230.0207930.13950.444846
24-0.200883-1.34760.092272
25-0.105042-0.70460.242332
260.1023990.68690.247831
27-0.037339-0.25050.401679
280.0995390.66770.25386
29-0.04036-0.27070.393913
30-0.079138-0.53090.299059
31-0.090501-0.60710.273418
32-0.060934-0.40880.342328
33-0.09203-0.61740.270055
340.0693590.46530.321989
35-0.005407-0.03630.485615
36-0.089661-0.60150.275275
37-0.007434-0.04990.480225
380.0436650.29290.385468
39-0.046695-0.31320.377774
400.0428320.28730.38759
41-0.145712-0.97750.166781
420.0860170.5770.283402
430.0689610.46260.322938
44-0.088976-0.59690.276793
45NANANA
46NANANA
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291983054k6ojgs7aslvgyb5/1arv81291983161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291983054k6ojgs7aslvgyb5/1arv81291983161.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291983054k6ojgs7aslvgyb5/230db1291983161.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291983054k6ojgs7aslvgyb5/230db1291983161.ps (open in new window)


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