| Paper | *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, 29 Dec 2010 13:55:52 +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/Dec/29/t1293630826vml48eaa0aima5x.htm/, Retrieved Wed, 29 Dec 2010 14:53:46 +0100 | | 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/Dec/29/t1293630826vml48eaa0aima5x.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 « | 26548
26752
26967
27034
27056
27476
28497
29085
28720
29067
29249
29672
29761
30066
30315
30571
30757
30742
31310
31381
31470
31226
31081
31061
31114
30828
30418
30195
29877
29192
29876
29409
28458
28340
28164
28438
28053
27599
27226
27119
26625
26541
27023
26631
26154
26029
26008
26632
27010
27041
27244
26976
26715
27017
27714
27655
27103
27088
26968
27770
27616
27481
27279
26918
26503
26547
27467
27305
26259
26048
25743
| | Output produced by software: |
Autocorrelation Function | Time lag k | ACF(k) | T-STAT | P-value | 1 | 0.308609 | 2.3503 | 0.011091 | 2 | 0.33776 | 2.5723 | 0.006343 | 3 | 0.308487 | 2.3494 | 0.011116 | 4 | 0.40698 | 3.0995 | 0.001495 | 5 | 0.309436 | 2.3566 | 0.010921 | 6 | 0.288869 | 2.2 | 0.015904 | 7 | 0.192437 | 1.4656 | 0.074085 | 8 | 0.149611 | 1.1394 | 0.12961 | 9 | 0.128148 | 0.9759 | 0.166572 | 10 | 0.051327 | 0.3909 | 0.348653 | 11 | 0.108993 | 0.8301 | 0.204953 | 12 | -0.281541 | -2.1442 | 0.018112 | 13 | -0.067366 | -0.513 | 0.304935 | 14 | -0.04618 | -0.3517 | 0.36317 | 15 | -0.102087 | -0.7775 | 0.220021 | 16 | -0.347985 | -2.6502 | 0.005176 | 17 | -0.220086 | -1.6761 | 0.049548 | 18 | -0.237163 | -1.8062 | 0.03804 | 19 | -0.207836 | -1.5828 | 0.059449 | 20 | -0.222141 | -1.6918 | 0.048028 | 21 | -0.320811 | -2.4432 | 0.008811 | 22 | -0.273493 | -2.0829 | 0.020842 | 23 | -0.283558 | -2.1595 | 0.017479 | 24 | -0.185803 | -1.415 | 0.081203 | 25 | -0.181664 | -1.3835 | 0.085906 | 26 | -0.168866 | -1.286 | 0.101769 | 27 | -0.276343 | -2.1046 | 0.019836 | 28 | -0.042574 | -0.3242 | 0.373465 | 29 | -0.109349 | -0.8328 | 0.204193 | 30 | -0.099079 | -0.7546 | 0.226782 | 31 | -0.078107 | -0.5948 | 0.277129 | 32 | -0.019294 | -0.1469 | 0.441845 | 33 | 0.068665 | 0.5229 | 0.301506 | 34 | 0.016186 | 0.1233 | 0.45116 | 35 | 0.041332 | 0.3148 | 0.377031 | 36 | 0.049 | 0.3732 | 0.355191 | 37 | 0.079626 | 0.6064 | 0.273304 | 38 | 0.008314 | 0.0633 | 0.474866 | 39 | 0.129666 | 0.9875 | 0.163749 | 40 | 0.012491 | 0.0951 | 0.462271 | 41 | 0.067911 | 0.5172 | 0.303494 | 42 | 0.06462 | 0.4921 | 0.312242 | 43 | 0.088398 | 0.6732 | 0.251741 | 44 | 0.030604 | 0.2331 | 0.408263 | 45 | 0 | 0 | 0.499999 | 46 | 0.040199 | 0.3061 | 0.380296 | 47 | 0.006543 | 0.0498 | 0.480216 | 48 | -0.030321 | -0.2309 | 0.409095 |
Partial Autocorrelation Function | Time lag k | PACF(k) | T-STAT | P-value | 1 | 0.308609 | 2.3503 | 0.011091 | 2 | 0.26805 | 2.0414 | 0.022884 | 3 | 0.177992 | 1.3555 | 0.090249 | 4 | 0.270711 | 2.0617 | 0.021865 | 5 | 0.103379 | 0.7873 | 0.217154 | 6 | 0.055813 | 0.4251 | 0.336183 | 7 | -0.065125 | -0.496 | 0.310891 | 8 | -0.117786 | -0.897 | 0.186706 | 9 | -0.084534 | -0.6438 | 0.261123 | 10 | -0.138225 | -1.0527 | 0.148424 | 11 | 0.0334 | 0.2544 | 0.400056 | 12 | -0.449385 | -3.4224 | 0.000572 | 13 | -0.044832 | -0.3414 | 0.367006 | 14 | 0.102668 | 0.7819 | 0.218729 | 15 | 0.001264 | 0.0096 | 0.496175 | 16 | -0.191384 | -1.4575 | 0.075181 | 17 | -0.000453 | -0.0034 | 0.49863 | 18 | 0.044902 | 0.342 | 0.366807 | 19 | 0.017912 | 0.1364 | 0.445982 | 20 | 0.074135 | 0.5646 | 0.287264 | 21 | -0.106726 | -0.8128 | 0.209829 | 22 | -0.073898 | -0.5628 | 0.287874 | 23 | 0.027715 | 0.2111 | 0.416785 | 24 | -0.108471 | -0.8261 | 0.206069 | 25 | 0.02709 | 0.2063 | 0.418634 | 26 | 0.126966 | 0.9669 | 0.168792 | 27 | -0.093371 | -0.7111 | 0.239939 | 28 | -0.029159 | -0.2221 | 0.412522 | 29 | 0.001281 | 0.0098 | 0.496126 | 30 | -0.003982 | -0.0303 | 0.487956 | 31 | 0.00077 | 0.0059 | 0.49767 | 32 | 0.026102 | 0.1988 | 0.421563 | 33 | 0.036113 | 0.275 | 0.392137 | 34 | -0.105984 | -0.8071 | 0.21144 | 35 | 0.024478 | 0.1864 | 0.426384 | 36 | -0.016425 | -0.1251 | 0.450443 | 37 | -0.076936 | -0.5859 | 0.2801 | 38 | -0.087582 | -0.667 | 0.253708 | 39 | -0.109444 | -0.8335 | 0.20399 | 40 | -0.122523 | -0.9331 | 0.177316 | 41 | 0.047733 | 0.3635 | 0.358768 | 42 | 0.040235 | 0.3064 | 0.380191 | 43 | -0.040859 | -0.3112 | 0.378393 | 44 | 0.016255 | 0.1238 | 0.450954 | 45 | 0.009739 | 0.0742 | 0.470567 | 46 | -0.017492 | -0.1332 | 0.447241 | 47 | -0.010615 | -0.0808 | 0.467924 | 48 | -0.079579 | -0.6061 | 0.273421 |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630826vml48eaa0aima5x/1hlbn1293630948.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630826vml48eaa0aima5x/1hlbn1293630948.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630826vml48eaa0aima5x/2rusq1293630948.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630826vml48eaa0aima5x/2rusq1293630948.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630826vml48eaa0aima5x/3rusq1293630948.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630826vml48eaa0aima5x/3rusq1293630948.ps (open in new window) |
| | Parameters (Session): | par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; | | Parameters (R input): | par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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
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
|