Home » date » 2010 » Dec » 29 »

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 16:13:54 +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/t1293639097uelepfw6i4paalr.htm/, Retrieved Wed, 29 Dec 2010 17:11:39 +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/t1293639097uelepfw6i4paalr.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 «
9782 9938 10111 10259 10419 10622 11173 11542 11538 11837 12060 12423 12791 12891 13098 13418 13614 13653 13980 14087 14332 14232 14226 14186 14310 14152 14127 14163 13964 13811 14440 14724 14790 14961 15117 15452 16080 16284 16524 16782 16663 16678 17448 17745 17789 17864 18079 18483 19037 19344 19590 19862 20207 20593 21253 21507 21528 21818 22205 22621 23006 23178 23358 23519 23725 23789 24472 24773 24477 24669 24827
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.956758.06170
20.9124267.68820
30.8681087.31480
40.8202646.91170
50.7724416.50870
60.7270126.12590
70.6817285.74430
80.6373095.37010
90.5919314.98772e-06
100.5472454.61129e-06
110.5031064.23923.3e-05
120.461073.8850.000114
130.4205673.54380.000351
140.3811943.2120.000991
150.34352.89440.002522
160.3059212.57770.006011
170.2691052.26750.013202
180.2347451.9780.025905
190.2023541.70510.046277
200.1711031.44170.076886
210.141571.19290.118442
220.1117260.94140.174841
230.0824760.6950.244677
240.0548350.46210.322728
250.0281310.2370.406655
260.0007990.00670.497322
27-0.02687-0.22640.410766
28-0.055499-0.46760.320735
29-0.084834-0.71480.238531
30-0.111622-0.94050.175065
31-0.136622-1.15120.126757
32-0.16209-1.36580.088157
33-0.186706-1.57320.060057
34-0.210146-1.77070.04045
35-0.232549-1.95950.026991
36-0.250665-2.11210.019097
37-0.265136-2.23410.014314
38-0.278603-2.34760.010844
39-0.290472-2.44760.008429
40-0.301689-2.54210.006602
41-0.312926-2.63680.005137
42-0.321348-2.70770.004241
43-0.327899-2.76290.003645
44-0.335154-2.82410.003075
45-0.342853-2.88890.002561
46-0.35122-2.95940.002093
47-0.360432-3.03710.00167
48-0.367953-3.10040.001385


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.956758.06170
2-0.034788-0.29310.385139
3-0.022949-0.19340.423609
4-0.065467-0.55160.291464
5-0.025138-0.21180.41643
60.0013650.01150.495427
7-0.02356-0.19850.421603
8-0.016666-0.14040.44436
9-0.04101-0.34560.365348
10-0.020174-0.170.432752
11-0.022633-0.19070.424648
12-0.003303-0.02780.488937
13-0.011216-0.09450.462486
14-0.016732-0.1410.444139
15-0.010581-0.08920.464604
16-0.028927-0.24370.404065
17-0.01951-0.16440.434943
18-0.001047-0.00880.496492
19-0.004814-0.04060.483879
20-0.015-0.12640.449889
21-0.010103-0.08510.466198
22-0.03295-0.27760.391047
23-0.020791-0.17520.430714
24-0.008986-0.07570.469927
25-0.015607-0.13150.447872
26-0.03516-0.29630.383947
27-0.035078-0.29560.384209
28-0.042091-0.35470.361946
29-0.038045-0.32060.374739
300.0001350.00110.499548
31-0.00945-0.07960.46838
32-0.036247-0.30540.38047
33-0.025914-0.21840.41389
34-0.021352-0.17990.428866
35-0.018001-0.15170.439935
360.0198170.1670.433931
370.012320.10380.458807
38-0.018376-0.15480.438694
39-0.014841-0.12510.450419
40-0.024595-0.20720.418206
41-0.026069-0.21970.413384
420.0074290.06260.475131
43-0.004042-0.03410.486461
44-0.034912-0.29420.384743
45-0.037265-0.3140.37722
46-0.039736-0.33480.369375
47-0.034753-0.29280.385253
48-0.003784-0.03190.487326
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293639097uelepfw6i4paalr/16jwj1293639233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293639097uelepfw6i4paalr/16jwj1293639233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293639097uelepfw6i4paalr/2gsvm1293639233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293639097uelepfw6i4paalr/2gsvm1293639233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293639097uelepfw6i4paalr/3gsvm1293639233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293639097uelepfw6i4paalr/3gsvm1293639233.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 1 ; par3 = 0 ; par4 = 12 ;
 
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 (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

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