Home » date » 2009 » Nov » 27 »

*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, 27 Nov 2009 14:26:19 -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/Nov/27/t125935724564zwiyq98a9irxp.htm/, Retrieved Fri, 27 Nov 2009 22:27:28 +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/Nov/27/t125935724564zwiyq98a9irxp.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 «
95.6 74.3 88.5 88 84.3 112.8 105.3 97.2 112.4 123.2 143.7 205.1 102.8 89.4 90.7 101.1 93.6 119.3 106.4 105.2 106.5 117.6 144.2 195.5 109.5 84.9 102.9 93.9 104.6 115.2 104.9 114.9 115.1 126.4 156.7 197.3 116.1 89.1 107.8 100.4 113.6 128.3 113.3 113.7 116.1 133.6 167.7 214.6 120.3 106 103.9 118 116.3 134.8 117.8 123.3 125.2 135.8 158.9 217.9
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.059734-0.41380.340414
20.3855952.67150.005141
3-0.110364-0.76460.22412
40.110020.76220.224823
5-0.015392-0.10660.457761
60.0817450.56630.2869
70.0146380.10140.459821
8-0.005683-0.03940.484377
9-0.010926-0.07570.469988
10-0.114837-0.79560.215088
11-0.203037-1.40670.082982
12-0.217151-1.50450.069507
130.0256240.17750.429921
14-0.052809-0.36590.358033
150.1662951.15210.127488
16-0.078178-0.54160.295288
17-0.104175-0.72170.236976
18-0.07744-0.53650.297039
19-0.045889-0.31790.375959
20-0.085617-0.59320.277926
210.0918220.63620.263847
22-0.166733-1.15520.126872
230.1673661.15950.125985
24-0.273461-1.89460.032089
250.0432750.29980.382805
26-0.259622-1.79870.039176
27-0.011418-0.07910.468638
28-0.078606-0.54460.294276
290.026820.18580.426686
30-0.016225-0.11240.455485
31-0.016298-0.11290.455285
320.0378660.26230.397089
330.0126630.08770.465229
340.0909330.630.265841
350.0335680.23260.408544
360.1469931.01840.156798


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.059734-0.41380.340414
20.3833952.65620.005347
3-0.086191-0.59720.276606
4-0.04997-0.34620.365351
50.0711560.4930.312135
60.0569760.39470.347392
70.0016760.01160.495393
8-0.055946-0.38760.350011
9-0.014138-0.0980.461189
10-0.109427-0.75810.226039
11-0.250173-1.73320.044736
12-0.191216-1.32480.095758
130.1997651.3840.086378
140.0958070.66380.255007
150.0963390.66750.25384
16-0.031488-0.21820.414116
17-0.237203-1.64340.053419
18-0.030499-0.21130.416772
190.0639550.44310.329845
20-0.129493-0.89720.187058
210.080260.55610.290378
22-0.237834-1.64780.052967
230.0309850.21470.415466
24-0.154152-1.0680.145433
25-0.036069-0.24990.401868
260.0410370.28430.388696
27-0.063643-0.44090.330621
28-0.149215-1.03380.153208
29-0.065589-0.45440.325788
30-0.011593-0.08030.468158
310.0205490.14240.443693
320.1454471.00770.15933
330.0008540.00590.497653
34-0.071894-0.49810.310347
35-0.011122-0.07710.469451
36-0.066718-0.46220.323
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t125935724564zwiyq98a9irxp/1n8b31259357177.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t125935724564zwiyq98a9irxp/1n8b31259357177.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t125935724564zwiyq98a9irxp/2pjtp1259357177.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t125935724564zwiyq98a9irxp/2pjtp1259357177.ps (open in new window)


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