Home » date » 2009 » Nov » 29 »

ws9

*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: Sun, 29 Nov 2009 05:25:47 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/29/t1259497585v8thtcsjy6hwsrc.htm/, Retrieved Sun, 29 Nov 2009 13:26:28 +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/2009/Nov/29/t1259497585v8thtcsjy6hwsrc.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
103.63 103.64 103.66 103.77 103.88 103.91 103.91 103.92 104.05 104.23 104.30 104.31 104.31 104.34 104.55 104.65 104.73 104.75 104.75 104.76 104.94 105.29 105.38 105.43 105.43 105.42 105.52 105.69 105.72 105.74 105.74 105.74 105.95 106.17 106.34 106.37 106.37 106.36 106.44 106.29 106.23 106.23 106.23 106.23 106.34 106.44 106.44 106.48 106.50 106.57 106.40 106.37 106.25 106.21 106.21 106.24 106.19 106.08 106.13 106.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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.005433-0.03720.485223
20.0409030.28040.390194
3-0.047713-0.32710.372521
40.0712120.48820.313838
5-0.071603-0.49090.312895
60.2373721.62730.055175
70.3139632.15240.018265
8-0.127806-0.87620.19269
9-0.020696-0.14190.443888
10-0.049089-0.33650.368982
110.2581671.76990.041615
12-0.192962-1.32290.096138
130.2087971.43140.07946
140.0082430.05650.477587
150.001240.00850.496626
16-0.117205-0.80350.21286
170.1887161.29380.101034
18-0.055018-0.37720.353868
19-0.154269-1.05760.147819
200.0813090.55740.289941
21-0.017092-0.11720.453609
22-0.027865-0.1910.424661
23-0.133056-0.91220.183163
240.0586570.40210.344704
25-0.303383-2.07990.021507
26-0.065531-0.44930.327655
27-0.026695-0.1830.427788
280.0631850.43320.333434
29-0.09364-0.6420.262009
30-0.029764-0.20410.419598
310.0087320.05990.476258
32-0.115823-0.7940.215581
33-0.008853-0.06070.47593
340.0255880.17540.43075
35-0.018674-0.1280.449339
36-0.204258-1.40030.083992
370.0390790.26790.39497
38-0.034433-0.23610.407207
39-0.032601-0.22350.412058
400.0087810.06020.476127
410.0268570.18410.427354
42-0.071884-0.49280.312221
43-0.104251-0.71470.239162
440.0158490.10870.45697
45-0.021304-0.14610.442253
46-0.005752-0.03940.484356
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.005433-0.03720.485223
20.0408750.28020.390268
3-0.047358-0.32470.373435
40.069410.47580.318193
5-0.06809-0.46680.321398
60.233021.59750.058428
70.3427832.350.011512
8-0.169214-1.16010.125939
9-0.026513-0.18180.428275
10-0.047259-0.3240.373691
110.2893691.98380.026567
12-0.23282-1.59610.058581
130.0067860.04650.481546
140.0302340.20730.418346
150.07660.52510.300977
16-0.067754-0.46450.322219
170.0449850.30840.379571
18-0.138697-0.95090.17327
19-0.035555-0.24380.404242
20-0.004922-0.03370.486611
210.0059680.04090.483769
22-0.104924-0.71930.237752
23-0.052113-0.35730.361246
24-0.117136-0.8030.212996
25-0.163612-1.12170.133851
26-0.072214-0.49510.311426
270.0055310.03790.484957
28-0.053342-0.36570.358117
290.0814010.55810.289728
30-0.006117-0.04190.483362
310.1140540.78190.219093
320.0567390.3890.349524
330.0261820.17950.429161
340.0074690.05120.47969
35-0.066098-0.45310.326264
36-0.062177-0.42630.335931
37-0.011944-0.08190.467544
38-0.019372-0.13280.447456
390.0028850.01980.492153
400.0347450.23820.40638
412.9e-052e-040.49992
420.0323330.22170.412769
43-0.070682-0.48460.315116
44-0.08748-0.59970.275782
45-0.046109-0.31610.376661
46-0.00904-0.0620.475423
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259497585v8thtcsjy6hwsrc/1basm1259497545.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259497585v8thtcsjy6hwsrc/1basm1259497545.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/29/t1259497585v8thtcsjy6hwsrc/2hflu1259497545.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t1259497585v8thtcsjy6hwsrc/2hflu1259497545.ps (open in new window)


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