Home » date » 2009 » Dec » 11 »

Shwws9_v1

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 11 Dec 2009 08:41:35 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/11/t126054620529w9podnsn79s35.htm/, Retrieved Fri, 11 Dec 2009 16:43:27 +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/2009/Dec/11/t126054620529w9podnsn79s35.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
102.1 102.86 102.99 103.73 105.02 104.43 104.63 104.93 105.87 105.66 106.76 106 107.22 107.33 107.11 108.86 107.72 107.88 108.38 107.72 108.41 109.9 111.45 112.18 113.34 113.46 114.06 115.54 116.39 115.94 116.97 115.94 115.91 116.43 116.26 116.35 117.9 117.7 117.53 117.86 117.65 116.51 115.93 115.31 115
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.060604-0.4020.344814
20.1423240.94410.175145
30.2854721.89360.032432
4-0.151165-1.00270.160741
5-0.054911-0.36420.358713
60.165091.09510.139719
7-0.096678-0.64130.26233
8-0.083369-0.5530.291529
90.1364270.9050.185209
10-0.100963-0.66970.253269
11-0.050238-0.33320.370267
120.1788511.18640.120922
13-0.071804-0.47630.31811
14-0.026201-0.17380.43141
150.0562680.37320.355382
16-0.200462-1.32970.095233
17-0.171741-1.13920.130392
180.087010.57720.283387
19-0.211533-1.40320.083795
20-0.072986-0.48410.315346
21-0.028901-0.19170.424428
22-0.083222-0.5520.29186
23-0.002312-0.01530.493916
240.1495310.99190.16334
25-0.02824-0.18730.426135
260.0900580.59740.276659
27-0.001606-0.01070.495774
28-0.042-0.27860.390929
29-0.001004-0.00670.497358
30-0.015617-0.10360.458983
31-0.089136-0.59130.278685
320.0723770.48010.31677
33-0.011332-0.07520.470211
34-0.059271-0.39320.34805
350.0295250.19580.422815
360.0117450.07790.469128


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.060604-0.4020.344814
20.1391620.92310.180496
30.3084152.04580.023391
4-0.144129-0.9560.172137
5-0.18938-1.25620.107835
60.1350990.89610.187525
70.0675820.44830.328071
8-0.131878-0.87480.193222
90.0154530.10250.459411
100.0179320.11890.45293
11-0.018645-0.12370.451068
120.1003730.66580.254507
130.0053850.03570.485833
14-0.05603-0.37170.355964
15-0.073507-0.48760.314131
16-0.14893-0.98790.164305
17-0.161208-1.06930.145375
180.1054660.69960.243934
19-0.042015-0.27870.390892
20-0.094851-0.62920.266246
21-0.165755-1.09950.138767
220.0781380.51830.303419
230.1329230.88170.191362
240.1092750.72480.236191
25-0.071888-0.47690.317914
260.0330410.21920.413766
27-0.088966-0.59010.27906
280.0176850.11730.453575
290.0415120.27540.392164
30-0.020493-0.13590.446245
31-0.131995-0.87560.193012
320.0341220.22630.410993
330.0380010.25210.40108
34-0.016354-0.10850.457055
35-0.08459-0.56110.288785
36-0.068506-0.45440.325881
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t126054620529w9podnsn79s35/1ohbe1260546094.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t126054620529w9podnsn79s35/1ohbe1260546094.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t126054620529w9podnsn79s35/2qz0l1260546094.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t126054620529w9podnsn79s35/2qz0l1260546094.ps (open in new window)


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