Home » date » 2010 » Aug » 17 »

tijdreeks 2 stap 18

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 17 Aug 2010 16:11:19 +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/Aug/17/t1282061507n3k52od3lafxdqs.htm/, Retrieved Tue, 17 Aug 2010 18:11:50 +0200
 
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/Aug/17/t1282061507n3k52od3lafxdqs.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:
Magali De Reu
 
Dataseries X:
» Textbox « » Textfile « » CSV «
120 119 118 116 114 113 114 116 117 117 118 120 123 125 120 116 111 108 113 112 126 124 124 118 119 122 114 108 104 101 107 104 123 125 134 131 127 124 123 117 112 118 123 124 144 148 152 154 146 132 136 128 120 124 126 121 140 142 142 139 131 117 122 112 98 103 108 102 126 129 126 126 112 99 106 104 90 98 99 91 118 115 119 123
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.02409-0.21950.413411
20.0591850.53920.295595
30.2237332.03830.022352
4-0.312817-2.84990.002757
5-0.366456-3.33860.000631
60.0637070.58040.281608
7-0.364446-3.32030.000669
8-0.268948-2.45020.008189
90.2097531.91090.029732
100.0359760.32780.371962
11-0.007849-0.07150.471584
120.7226746.58390
130.0173350.15790.43745
140.0619890.56480.286883
150.1084280.98780.163055
16-0.253367-2.30830.011736
17-0.355572-3.23940.000862
180.00180.01640.493479
19-0.300164-2.73460.003817
20-0.187423-1.70750.045733
210.1318291.2010.11658
220.0811780.73960.230825
230.0176340.16070.436379
240.4789554.36351.8e-05
250.0312680.28490.38823
260.0377640.3440.36584
270.032340.29460.384506
28-0.173187-1.57780.059206
29-0.279046-2.54220.006436
30-0.035201-0.32070.374624
31-0.198042-1.80420.03741
32-0.09409-0.85720.196901
330.0877950.79990.21304
340.0955940.87090.193159
350.0166530.15170.439888
360.3079612.80570.003127
370.0445070.40550.343086
380.0686170.62510.2668
39-0.033538-0.30550.380357
40-0.114954-1.04730.149004
41-0.12724-1.15920.124847
42-0.076485-0.69680.243933
43-0.054467-0.49620.310527
44-0.025647-0.23370.407913
450.0331180.30170.381811
460.0824750.75140.227275
470.0055720.05080.479817
480.1770091.61260.055311


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.02409-0.21950.413411
20.0586390.53420.297307
30.2274012.07170.020698
4-0.320873-2.92330.002231
5-0.465341-4.23952.9e-05
60.0452110.41190.340739
7-0.168458-1.53470.064327
8-0.360894-3.28790.000741
9-0.078532-0.71550.238167
100.1593951.45220.075114
11-0.116713-1.06330.145364
120.4892884.45761.3e-05
130.0690450.6290.265527
140.0448930.4090.341798
15-0.277734-2.53030.006643
16-0.018567-0.16920.433042
17-0.001526-0.01390.494472
18-0.052986-0.48270.315281
19-0.079178-0.72140.236361
200.0452810.41250.340506
21-0.082467-0.75130.227296
22-0.008485-0.07730.469283
23-0.060375-0.550.291884
24-0.108512-0.98860.162869
25-0.14292-1.30210.098248
26-0.106832-0.97330.16662
27-0.02553-0.23260.408325
28-0.009928-0.09040.464074
290.0264250.24070.405172
30-0.041967-0.38230.351594
31-0.012512-0.1140.45476
32-0.011296-0.10290.459141
33-0.015242-0.13890.44495
34-0.124777-1.13680.129452
35-0.142944-1.30230.09821
36-0.088972-0.81060.209965
370.0158160.14410.442888
380.0940190.85660.19708
39-0.081561-0.74310.229772
40-0.125411-1.14260.128255
410.1379251.25660.106219
42-0.029216-0.26620.395385
430.07020.63960.262113
44-0.098161-0.89430.186877
45-0.008381-0.07640.469661
46-0.107299-0.97750.16557
47-0.065405-0.59590.276442
480.0853370.77750.21955
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/17/t1282061507n3k52od3lafxdqs/1e3vv1282061477.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t1282061507n3k52od3lafxdqs/1e3vv1282061477.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/17/t1282061507n3k52od3lafxdqs/27ucy1282061477.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t1282061507n3k52od3lafxdqs/27ucy1282061477.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