Home » date » 2010 » Aug » 07 »

Tijdsreeks B - stap 17

*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:35:18 +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/t1281184498wreicfmb0rqf1hx.htm/, Retrieved Sat, 07 Aug 2010 14:34:59 +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/t1281184498wreicfmb0rqf1hx.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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9425658.63870
20.8914318.17010
30.8321547.62680
40.7948317.28470
50.7569726.93780
60.729476.68570
70.7179256.57990
80.7176456.57730
90.711666.52250
100.7159176.56150
110.6999026.41470
120.6926046.34780
130.6215095.69620
140.556185.09751e-06
150.4829114.42591.4e-05
160.4259653.9049.5e-05
170.3685393.37770.000555
180.3221052.95210.002045
190.2946252.70030.004188
200.2705072.47920.007583
210.2452922.24810.013593
220.2198382.01490.023559
230.1797561.64750.051596
240.1525231.39790.082912
250.086280.79080.215652
260.0237280.21750.414184
27-0.037268-0.34160.366767
28-0.086309-0.7910.215575
29-0.133901-1.22720.111583
30-0.178277-1.63390.053008
31-0.203812-1.8680.032627
32-0.216809-1.98710.025086
33-0.227961-2.08930.019853
34-0.239491-2.1950.015463
35-0.266163-2.43940.008408
36-0.285055-2.61260.005322
37-0.327171-2.99860.001784
38-0.363997-3.33610.000633
39-0.399208-3.65880.000221
40-0.416795-3.820.000127
41-0.431143-3.95158.1e-05
42-0.441098-4.04275.8e-05
43-0.439795-4.03086.1e-05
44-0.430852-3.94888.1e-05
45-0.423638-3.88270.000103
46-0.414001-3.79440.000139
47-0.417705-3.82830.000124
48-0.413484-3.78960.000141


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9425658.63870
20.0269130.24670.402886
3-0.097151-0.89040.187897
40.1589461.45680.074455
5-0.004491-0.04120.483631
60.0484920.44440.328933
70.1727851.58360.058521
80.1054890.96680.168203
9-0.034152-0.3130.377524
100.1476171.35290.089854
11-0.125415-1.14940.126817
120.0649370.59520.27667
13-0.525873-4.81973e-06
14-0.052373-0.480.316234
15-0.093648-0.85830.196585
16-0.11421-1.04680.149108
17-0.104916-0.96160.169513
18-0.040262-0.3690.356525
190.0423090.38780.349585
20-0.14252-1.30620.097522
210.056280.51580.303671
22-0.108267-0.99230.161956
230.0126230.11570.454086
240.0534390.48980.312784
25-0.070215-0.64350.260815
26-0.037797-0.34640.364949
270.0945820.86690.194245
28-0.040167-0.36810.35685
29-0.050081-0.4590.323709
30-0.018103-0.16590.434311
31-0.018174-0.16660.434056
320.1490651.36620.087761
330.0022670.02080.491736
340.0517540.47430.318248
35-0.025542-0.23410.40774
36-0.003026-0.02770.488969
37-0.030989-0.2840.388548
380.0349380.32020.374801
39-0.020374-0.18670.426161
400.0878280.8050.211558
410.0306980.28140.389566
420.0178480.16360.435229
43-0.019318-0.17710.429946
44-0.0321-0.29420.384665
45-0.02847-0.26090.39739
46-0.001363-0.01250.495031
470.0086920.07970.468347
48-0.035997-0.32990.371141
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281184498wreicfmb0rqf1hx/1shzb1281184513.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281184498wreicfmb0rqf1hx/1shzb1281184513.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/07/t1281184498wreicfmb0rqf1hx/2shzb1281184513.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/07/t1281184498wreicfmb0rqf1hx/2shzb1281184513.ps (open in new window)


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