Home » date » 2010 » Aug » 16 »

TIJDREEKS B - STAP 18

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 16 Aug 2010 19:12:43 +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/Aug/16/t1281985990u1mhtozbjag885r.htm/, Retrieved Mon, 16 Aug 2010 21:13:10 +0200
 
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/Aug/16/t1281985990u1mhtozbjag885r.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:
De Cock Nicola
 
Dataseries X:
» Textbox « » Textfile « » CSV «
76 75 74 72 70 69 70 72 73 73 74 76 74 67 66 58 55 58 64 68 66 76 75 88 85 83 77 66 65 65 63 62 57 68 69 79 74 76 82 75 75 76 78 77 67 74 68 87 76 88 95 96 96 105 108 113 101 107 102 116 105 121 134 140 131 141 131 128 123 129 125 144 135 141 156 159 146 154 145 133 126 127 122 148
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.257414-2.34520.010703
20.2315092.10910.018973
3-0.129923-1.18370.119964
40.1080950.98480.163795
5-0.349165-3.1810.001032
60.066510.60590.273107
7-0.291941-2.65970.004692
80.0699170.6370.262946
9-0.071336-0.64990.258774
100.2097951.91130.029707
11-0.312855-2.85020.002754
120.6541725.95980
13-0.212432-1.93530.028177
140.1989461.81250.036764
15-0.132719-1.20910.115023
160.1728151.57440.059597
17-0.242369-2.20810.014998
180.0329380.30010.382432
19-0.168654-1.53650.064108
200.0705660.64290.261035
21-0.060081-0.54740.292798
220.1543771.40640.081663
23-0.271331-2.47190.007741
240.3724523.39320.00053
25-0.214388-1.95320.027084
260.1134811.03390.152102
27-0.130418-1.18820.119079
280.1533691.39730.083029
29-0.075241-0.68550.247475
300.0663890.60480.273469
31-0.075951-0.69190.245451
320.0002090.00190.499243
33-0.051857-0.47240.318927
340.0397070.36170.359231
35-0.196052-1.78610.038866
360.219251.99750.024525
37-0.123361-1.12390.132153
380.0795050.72430.235451
39-0.040949-0.37310.355026
400.106910.9740.166445
410.0046840.04270.483031
420.0360990.32890.371539
43-0.044828-0.40840.342015
44-0.049323-0.44940.327173
45-0.05177-0.47160.319208
46-0.053066-0.48350.315024
47-0.128386-1.16970.122744
480.0664440.60530.273303


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.257414-2.34520.010703
20.1769741.61230.055346
3-0.03905-0.35580.36146
40.0358310.32640.372459
5-0.320932-2.92380.002228
6-0.111427-1.01520.156492
7-0.223042-2.0320.022676
8-0.08023-0.73090.233441
90.0147890.13470.446576
100.1126521.02630.153865
11-0.336678-3.06730.001458
120.5013534.56758e-06
13-0.00446-0.04060.483843
14-0.026918-0.24520.403441
150.0303210.27620.391528
160.0269050.24510.403485
170.1324591.20680.115477
18-0.124969-1.13850.129089
190.0836120.76170.224188
200.1098171.00050.159993
210.0048890.04450.482292
22-0.039147-0.35660.361131
23-0.000815-0.00740.497046
24-0.072181-0.65760.256307
25-0.09515-0.86690.19426
26-0.102425-0.93310.176729
270.0381380.34750.364565
28-0.03876-0.35310.362448
290.0642840.58570.279849
300.0585570.53350.297564
31-0.031676-0.28860.386811
32-0.155958-1.42080.079553
33-0.059602-0.5430.294293
34-0.046419-0.42290.336733
350.0306550.27930.390364
360.0037550.03420.486395
370.0662490.60360.273892
380.0125230.11410.454719
390.0399890.36430.358273
400.0262510.23920.405785
410.0377760.34420.365798
420.0014320.0130.494813
43-0.087887-0.80070.212798
440.0092380.08420.466567
45-0.057675-0.52540.300337
46-0.05686-0.5180.302911
470.0369190.33630.368729
48-0.110877-1.01010.157683
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281985990u1mhtozbjag885r/1chp71281985959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281985990u1mhtozbjag885r/1chp71281985959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t1281985990u1mhtozbjag885r/2chp71281985959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t1281985990u1mhtozbjag885r/2chp71281985959.ps (open in new window)


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