Home » date » 2010 » Aug » 07 »

Tijdsreeks B - 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: Sat, 07 Aug 2010 12:46:50 +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/07/t1281185215u7q6jsoig1iyhuj.htm/, Retrieved Sat, 07 Aug 2010 14:46:57 +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/07/t1281185215u7q6jsoig1iyhuj.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:
Gosselin Claudia
 
Dataseries X:
» Textbox « » Textfile « » CSV «
166 165 164 162 160 159 160 162 163 163 164 166 163 166 170 171 176 172 169 180 172 170 161 167 158 163 165 169 168 165 156 157 146 150 146 159 146 151 156 152 152 143 127 126 122 122 114 127 125 123 124 123 127 117 104 110 106 107 100 115 117 123 130 129 125 112 90 96 99 108 101 113 113 120 131 135 137 120 102 114 121 134 122 131
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.078204-0.71250.239084
20.1065910.97110.167162
3-0.238096-2.16920.016466
4-0.000435-0.0040.498424
5-0.125958-1.14750.12723
6-0.138124-1.25840.105893
7-0.096652-0.88050.190554
80.045930.41840.338353
9-0.113828-1.0370.151368
100.1755931.59970.05673
11-0.116552-1.06180.145694
120.6564175.98020
13-0.102205-0.93110.177242
140.0652270.59420.276982
15-0.193398-1.76190.04088
16-0.035169-0.32040.374732
17-0.107954-0.98350.164109
18-0.141485-1.2890.100491
19-0.075784-0.69040.245926
200.0571750.52090.301916
210.0108030.09840.460917
220.1800041.63990.052404
23-0.178378-1.62510.053967
240.4349473.96267.8e-05
25-0.09773-0.89040.187924
26-0.020016-0.18240.427876
27-0.15079-1.37380.086607
28-0.008131-0.07410.470564
29-0.033376-0.30410.380919
30-0.122835-1.11910.133167
31-0.117966-1.07470.142807
320.030640.27910.390415
33-0.019552-0.17810.429529
340.1697351.54640.062911
35-0.149799-1.36470.088013
360.3058792.78670.003299
37-0.108486-0.98840.162926
38-0.03342-0.30450.380766
39-0.160525-1.46250.073697
40-0.029293-0.26690.395116
410.0032910.030.488076
420.0015010.01370.494562
43-0.054983-0.50090.308876
440.0401680.3660.357666
45-0.016013-0.14590.442185
460.17081.55610.061749
47-0.159651-1.45450.074791
480.1568591.4290.078371


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.078204-0.71250.239084
20.1010940.9210.179858
3-0.226381-2.06240.021147
4-0.041258-0.37590.353982
5-0.08989-0.81890.207584
6-0.216692-1.97420.025845
7-0.129404-1.17890.120898
8-0.001484-0.01350.494622
9-0.220461-2.00850.023921
100.0754470.68740.246888
11-0.143582-1.30810.097227
120.5997015.46350
13-0.042305-0.38540.350457
14-0.028073-0.25580.399386
150.1368021.24630.108076
16-0.057164-0.52080.301949
17-0.000342-0.00310.498762
18-0.04175-0.38040.352324
19-0.050969-0.46440.321806
20-0.02569-0.23410.407761
210.0976780.88990.188048
22-0.054779-0.49910.309527
23-0.126335-1.1510.126525
240.0605510.55160.291335
25-0.021935-0.19980.421047
26-0.165157-1.50470.068105
270.0496670.45250.32605
280.0533490.4860.314111
29-0.020725-0.18880.42535
300.0034470.03140.48751
31-0.152802-1.39210.083807
32-0.047033-0.42850.334703
33-0.129588-1.18060.120566
34-0.066361-0.60460.273555
350.0208340.18980.424962
36-0.064169-0.58460.280198
37-0.100177-0.91270.182034
380.0170380.15520.438512
39-0.157976-1.43920.076923
40-0.122934-1.120.132977
410.0180660.16460.434834
420.0692870.63120.26481
430.0340510.31020.378587
440.0484830.44170.329927
450.0840170.76540.223092
460.0241760.22030.413106
470.0127940.11660.453744
48-0.104819-0.95490.171189
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281185215u7q6jsoig1iyhuj/1wzpg1281185208.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281185215u7q6jsoig1iyhuj/1wzpg1281185208.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/07/t1281185215u7q6jsoig1iyhuj/268o11281185208.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281185215u7q6jsoig1iyhuj/268o11281185208.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