Home » date » 2010 » Aug » 19 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 19 Aug 2010 09:40:21 +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/19/t1282210935c8ww5jcf3jq9nxe.htm/, Retrieved Thu, 19 Aug 2010 11:43:39 +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/19/t1282210935c8ww5jcf3jq9nxe.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 «
239 238 237 235 255 254 239 229 230 230 231 233 239 236 231 235 253 257 236 226 226 221 217 219 225 226 225 229 242 252 233 232 225 218 209 211 220 225 215 222 238 246 226 230 222 214 208 203 208 212 199 200 223 225 203 207 195 198 193 189 184 188 180 186 215 212 191 190 180 190 189 181 174 179 165 185 211 209 183 178 170 182 195 188 175 176 162 193 211 207 179 176 167 175 190 173 159 159 147 181 196 199 171 170 156 164 178 155 138 142 113 148 156 158 141 139 119 120 125 102
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0043760.04770.481005
2-0.240057-2.61870.004987
3-0.231426-2.52460.00645
4-0.134558-1.46780.072392
50.0004740.00520.497939
60.3270983.56820.00026
7-0.02967-0.32370.373382
8-0.135793-1.48130.070582
9-0.201318-2.19610.015011
10-0.280568-3.06060.001365
110.0740340.80760.210462
120.8139058.87870
130.0003070.00330.498669
14-0.199889-2.18050.015593
15-0.177401-1.93520.027668
16-0.099122-1.08130.140876
170.0197070.2150.415075
180.2508552.73650.003581
19-0.089815-0.97980.164594
20-0.094447-1.03030.152481
21-0.159261-1.73730.042458
22-0.252971-2.75960.003352
230.102941.12290.13186
240.6135366.69290
25-0.027791-0.30320.381145
26-0.162328-1.77080.039578
27-0.105074-1.14620.127002
28-0.048524-0.52930.29878
290.0203750.22230.412244
300.1849922.0180.022919
31-0.157484-1.71790.044204
32-0.04163-0.45410.325281
33-0.111007-1.21090.114159
34-0.200879-2.19130.015188
350.1232241.34420.090719
360.4374624.77213e-06
37-0.047986-0.52350.300811
38-0.138418-1.510.066852
39-0.032443-0.35390.362017
40-0.021887-0.23880.405852
410.0326250.35590.361272
420.1183461.2910.099603
43-0.202301-2.20680.014622
44-0.006591-0.07190.471402
45-0.077869-0.84940.198669
46-0.125687-1.37110.086464
470.1264531.37940.085174
480.3137793.42290.000425


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0043760.04770.481005
2-0.240081-2.6190.004983
3-0.243089-2.65180.004549
4-0.229018-2.49830.006922
5-0.169389-1.84780.033556
60.1870572.04060.021754
7-0.130265-1.4210.078963
8-0.085548-0.93320.176297
9-0.203357-2.21840.014214
10-0.440157-4.80152e-06
11-0.258698-2.82210.002797
120.679967.41750
130.0555160.60560.272966
140.0199750.21790.413941
150.1876862.04740.02141
160.1863912.03330.022124
170.0346460.37790.353075
18-0.1428-1.55780.060972
19-0.149011-1.62550.053349
200.016190.17660.430056
21-0.003821-0.04170.483411
220.029080.31720.375815
23-4.3e-05-5e-040.499813
24-0.096657-1.05440.146918
25-0.05035-0.54930.29193
26-0.051884-0.5660.286234
27-0.031126-0.33950.3674
28-0.018998-0.20720.418086
29-0.10291-1.12260.131931
300.045540.49680.31013
31-0.067476-0.73610.231567
320.0025120.02740.489094
330.0275430.30050.382176
34-0.002783-0.03040.487915
350.0718520.78380.217354
36-0.031594-0.34460.365485
370.0423240.46170.322569
38-0.008392-0.09150.463605
39-0.007135-0.07780.469047
40-0.02952-0.3220.374
41-0.04508-0.49180.311895
420.0036140.03940.48431
43-0.061504-0.67090.251782
44-0.050852-0.55470.290061
45-0.043421-0.47370.318301
460.0399360.43560.331941
470.0136740.14920.440836
48-0.004886-0.05330.47879
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282210935c8ww5jcf3jq9nxe/1jbrr1282210817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282210935c8ww5jcf3jq9nxe/1jbrr1282210817.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282210935c8ww5jcf3jq9nxe/2jbrr1282210817.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282210935c8ww5jcf3jq9nxe/2jbrr1282210817.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