Home » date » 2010 » May » 05 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 05 May 2010 18:45:35 +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/May/05/t1273085221nacrvmy15m0chas.htm/, Retrieved Wed, 05 May 2010 20:47:01 +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/May/05/t1273085221nacrvmy15m0chas.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
306 303 344 254 309 310 379 294 356 318 405 545 268 243 273 273 236 222 302 285 309 322 362 471 198 253 173 186 185 105 228 214 189 270 277 378 185 182 258 179 197 168 250 211 260 234 305 347 203 217 227 242 185 175 252 319 202 254 336 431 150 280 187 279 193 227 225 205 259 254 275 394 159 230 188 195 189 220 274
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3206582.85010.002786
20.2642742.34890.010664
30.1549821.37750.086122
40.1602771.42460.07911
50.0319780.28420.38849
6-0.210939-1.87490.032253
7-0.01898-0.16870.433232
80.0847290.75310.226817
90.0725120.64450.26056
100.1532871.36240.088465
110.1930331.71570.045067
120.5455214.84873e-06
130.1702721.51340.067083
140.054810.48720.313747
150.0036310.03230.487166
16-0.03085-0.27420.392322
17-0.085197-0.75720.225578
18-0.351997-3.12860.00123
19-0.114843-1.02070.155245
20-0.088172-0.78370.217782
21-0.049259-0.43780.331356
22-0.074905-0.66580.25375
230.0561990.49950.309404
240.2711632.41010.009135
25-0.001767-0.01570.493754
26-0.081647-0.72570.235085
27-0.080119-0.71210.239246
28-0.093518-0.83120.204182
29-0.158263-1.40670.081723
30-0.267811-2.38040.009853
31-0.124191-1.10380.136507
32-0.08863-0.78780.216597
33-0.014446-0.12840.449079
34-0.048372-0.42990.334205
350.0470250.4180.338551
360.2697642.39770.009429
37-0.011309-0.10050.460095
380.0206190.18330.427528
39-0.086417-0.76810.222361
40-0.006551-0.05820.476857
41-0.096875-0.8610.195909
42-0.197221-1.75290.041746
43-0.054769-0.48680.313876
44-0.023773-0.21130.416599
45-0.016541-0.1470.441745
46-0.011712-0.10410.458677
470.0548080.48710.313752
480.2085631.85370.033754


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3206582.85010.002786
20.1799561.59950.056853
30.0320070.28450.388392
40.0747430.66430.254207
5-0.070507-0.62670.266337
6-0.291861-2.59410.00565
70.1161491.03240.152528
80.2023511.79850.037956
90.0457250.40640.34277
100.1671841.4860.070634
110.0905110.80450.211768
120.4014383.56810.000307
13-0.179324-1.59390.05748
14-0.229984-2.04410.022136
15-0.099891-0.88790.188657
16-0.10571-0.93960.175151
170.0053540.04760.481084
18-0.130069-1.15610.125566
190.06810.60530.273361
20-0.083201-0.73950.230896
21-0.030518-0.27120.393453
22-0.150924-1.34140.09181
230.0514350.45720.324403
240.0599960.53330.297678
25-0.093393-0.83010.204494
260.0012180.01080.495694
270.0099490.08840.46488
280.0109980.09770.46119
29-0.062108-0.5520.291244
300.1750841.55620.061831
31-0.040448-0.35950.360088
32-0.028591-0.25410.400029
330.0914540.81290.209371
34-0.010995-0.09770.461198
35-0.022055-0.1960.422546
360.1383031.22930.111311
37-0.07161-0.63650.26315
380.053140.47230.319002
39-0.084159-0.7480.228335
40-0.037784-0.33580.368945
410.0209870.18650.426252
42-0.070687-0.62830.265816
43-0.002124-0.01890.492493
440.0187330.16650.434094
45-0.098023-0.87120.19313
46-0.030568-0.27170.393284
47-0.001243-0.0110.495606
48-0.046537-0.41360.340133
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273085221nacrvmy15m0chas/1nxjz1273085132.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273085221nacrvmy15m0chas/1nxjz1273085132.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273085221nacrvmy15m0chas/2nxjz1273085132.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273085221nacrvmy15m0chas/2nxjz1273085132.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