Home » date » 2009 » Nov » 27 »

WS 8.2

*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 12:42:13 -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/t1259351010bz9sygobc3mz4vx.htm/, Retrieved Fri, 27 Nov 2009 20:43:32 +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/t1259351010bz9sygobc3mz4vx.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 «
100.00 94.97 107.50 124.27 107.06 79.71 163.41 144.83 166.82 154.26 132.60 157.51 104.02 106.03 113.23 117.64 113.34 66.62 185.99 174.57 208.19 163.81 162.46 148.16 113.41 105.63 111.79 132.36 110.75 67.37 178.29 156.38 189.71 152.80 150.80 160.40 127.25 108.47 117.09 147.25 116.19 75.83 181.94 179.12 183.15 197.90 155.42 162.54 125.90 105.50 121.11 137.51 97.20 69.74 152.58 146.59 161.16 152.84 121.95 140.12
 
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.5138643.56020.000424
20.5646313.91190.000144
30.3064552.12320.019461
40.2147271.48770.071689
50.1207540.83660.203479
60.1249940.8660.195403
70.0325420.22550.411291
80.0182020.12610.450087
9-0.113214-0.78440.218338
10-0.170398-1.18060.121799
11-0.241615-1.6740.050322
12-0.373026-2.58440.006426
13-0.290842-2.0150.024761
14-0.228984-1.58640.059602
15-0.11154-0.77280.221723
16-0.062324-0.43180.333913
17-0.017261-0.11960.452655
18-0.024176-0.16750.433841
19-0.023279-0.16130.436273
20-0.001146-0.00790.496848
210.1210980.8390.202816
220.0272760.1890.425456
230.2536741.75750.042604
240.1706021.1820.121521
250.2681471.85780.03467
260.2000281.38580.086101
270.1522871.05510.148336
28-0.017387-0.12050.45231
290.0141220.09780.461233
30-0.091645-0.63490.264243
31-0.052339-0.36260.359242
32-0.099314-0.68810.247362
33-0.144055-0.9980.161631
34-0.156176-1.0820.142325
35-0.232259-1.60910.057073
36-0.237222-1.64350.053405


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5138643.56020.000424
20.4084222.82960.003392
3-0.122411-0.84810.200299
4-0.136541-0.9460.174447
50.0086190.05970.476315
60.1241450.86010.197004
7-0.07045-0.48810.313852
8-0.0899-0.62280.268167
9-0.155709-1.07880.143038
10-0.106914-0.74070.231235
11-0.047831-0.33140.370898
12-0.238339-1.65130.052607
130.0407350.28220.389493
140.2181791.51160.068597
150.147821.02410.155455
16-0.066587-0.46130.323324
17-0.069567-0.4820.316007
180.0384320.26630.395589
190.0039110.02710.489248
20-0.011492-0.07960.468435
210.1288220.89250.188288
22-0.19297-1.33690.093772
230.2074061.4370.078609
240.0330610.22910.409901
250.0059090.04090.483756
260.0315820.21880.413865
27-0.022292-0.15440.438955
28-0.232758-1.61260.056694
29-0.008303-0.05750.477182
300.043250.29960.382871
31-0.098711-0.68390.248667
32-0.041571-0.2880.387288
330.018370.12730.44963
34-0.040358-0.27960.390489
35-0.008918-0.06180.475495
360.0094580.06550.474013
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259351010bz9sygobc3mz4vx/1w2cn1259350931.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259351010bz9sygobc3mz4vx/1w2cn1259350931.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259351010bz9sygobc3mz4vx/2y7f51259350931.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259351010bz9sygobc3mz4vx/2y7f51259350931.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