Home » date » 2009 » Nov » 26 »

*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: Thu, 26 Nov 2009 12:32:46 -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/26/t1259264144bxtzkn0bigt7k1l.htm/, Retrieved Thu, 26 Nov 2009 20:35: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/2009/Nov/26/t1259264144bxtzkn0bigt7k1l.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 «
115.6 111.9 107 107.1 100.6 99.2 108.4 103 99.8 115 90.8 95.9 114.4 108.2 112.6 109.1 105 105 118.5 103.7 112.5 116.6 96.6 101.9 116.5 119.3 115.4 108.5 111.5 108.8 121.8 109.6 112.2 119.6 104.1 105.3 115 124.1 116.8 107.5 115.6 116.2 116.3 119 111.9 118.6 106.9 103.2 118.6 118.7 102.8 100.6 94.9 94.5 102.9 95.3 92.5 102.7 91.5 89.5
 
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
10.4134663.20270.00109
20.1912291.48130.071886
30.3887273.01110.001903
40.2188471.69520.047613
50.2707582.09730.020095
60.3364712.60630.005764
70.1202950.93180.177587
80.0252920.19590.422671
9-0.003002-0.02330.490763
10-0.258498-2.00230.024888
11-0.051313-0.39750.346215
120.2727212.11250.019408
13-0.090726-0.70280.242463
14-0.275943-2.13740.018323
15-0.152396-1.18050.121238
16-0.13265-1.02750.154154
17-0.083757-0.64880.259479
18-0.054923-0.42540.336023
19-0.097242-0.75320.227127
20-0.172402-1.33540.093392
21-0.169821-1.31540.096686
22-0.258641-2.00340.024827
23-0.130254-1.00890.158527
240.0993990.76990.222179
25-0.097459-0.75490.226627
26-0.309277-2.39560.009864
27-0.175666-1.36070.089348
28-0.114396-0.88610.189548
29-0.133356-1.0330.152882
30-0.066656-0.51630.303767
31-0.080742-0.62540.267033
32-0.181906-1.4090.081992
33-0.139-1.07670.142964
34-0.134753-1.04380.150385
35-0.128383-0.99440.162
360.0796420.61690.269816


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4134663.20270.00109
20.0244560.18940.425196
30.3638672.81850.003263
4-0.085617-0.66320.254876
50.2642882.04720.022514
60.0415220.32160.374427
7-0.070031-0.54250.294756
8-0.15798-1.22370.112923
9-0.156796-1.21450.114651
10-0.413665-3.20420.001085
110.1932011.49650.06988
120.4003193.10090.001469
13-0.055703-0.43150.333837
14-0.250793-1.94260.028379
15-0.142541-1.10410.136975
160.1759241.36270.089035
17-0.04308-0.33370.369887
18-0.188061-1.45670.075205
19-0.008204-0.06350.474771
20-0.081252-0.62940.265746
210.1169790.90610.18425
220.0417420.32330.373784
23-0.038338-0.2970.383758
24-0.143587-1.11220.13524
25-0.04166-0.32270.374022
26-0.065181-0.50490.307743
270.0450390.34890.364203
28-0.185621-1.43780.077841
29-0.069428-0.53780.296356
300.0205740.15940.436957
310.1539541.19250.118876
32-0.0859-0.66540.254179
33-0.058872-0.4560.325012
340.0343150.26580.39565
35-0.132675-1.02770.154108
36-0.074464-0.57680.283117
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259264144bxtzkn0bigt7k1l/1dawu1259263964.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259264144bxtzkn0bigt7k1l/1dawu1259263964.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t1259264144bxtzkn0bigt7k1l/2fmru1259263964.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259264144bxtzkn0bigt7k1l/2fmru1259263964.ps (open in new window)


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