Home » date » 2010 » Jul » 08 »

Kelly Janbroers - 2de zit - Stap 17/B

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 08 Jul 2010 15:05:35 +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/Jul/08/t1278601532718deu7c6q9qfv1.htm/, Retrieved Thu, 08 Jul 2010 17:05:32 +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/Jul/08/t1278601532718deu7c6q9qfv1.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
268 267 266 264 262 261 262 264 265 265 266 268 260 264 265 262 258 265 273 273 270 263 260 257 248 248 237 228 225 231 243 250 246 240 236 235 225 230 225 221 231 234 249 257 253 252 245 239 229 232 222 218 223 221 230 234 237 226 215 211 203 202 187 179 181 172 182 180 175 163 160 151 145 140 125 122 124 108 115 116 104 98 101 91
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9480838.68930
20.8980388.23070
30.8429467.72570
40.7881787.22380
50.7422676.8030
60.6957986.37710
70.6443025.90510
80.6013895.51180
90.5585735.11941e-06
100.5154744.72445e-06
110.4780454.38141.7e-05
120.4384964.01896.3e-05
130.3925693.5980.00027
140.3487413.19630.000981
150.3033322.78010.003353
160.2646652.42570.00871
170.2325492.13130.017991
180.2006521.8390.034724
190.1620671.48540.070595
200.1296241.1880.119085
210.0981970.90.185349
220.0720270.66010.255485
230.0540380.49530.310851
240.0337240.30910.37901
250.0131290.12030.452254
26-0.006564-0.06020.476086
27-0.019526-0.1790.429202
28-0.024049-0.22040.413041
29-0.025988-0.23820.40616
30-0.03145-0.28820.386933
31-0.04463-0.4090.341775
32-0.057341-0.52550.300296
33-0.070839-0.64930.258973
34-0.081653-0.74840.228165
35-0.085875-0.78710.216732
36-0.093865-0.86030.196039
37-0.098328-0.90120.185031
38-0.101244-0.92790.178055
39-0.100043-0.91690.180908
40-0.097339-0.89210.187437
41-0.091557-0.83910.201887
42-0.092346-0.84640.199876
43-0.105785-0.96950.16753
44-0.122395-1.12180.132579
45-0.144082-1.32050.095122
46-0.164335-1.50620.067889
47-0.180797-1.6570.050622
48-0.200915-1.84140.034545
49-0.215346-1.97370.025853
50-0.230939-2.11660.018627
51-0.242672-2.22410.014412
52-0.249932-2.29070.012244
53-0.254979-2.33690.010912
54-0.265274-2.43130.008586
55-0.284707-2.60940.005368
56-0.308797-2.83020.002909
57-0.332545-3.04780.001541
58-0.349412-3.20240.000963
59-0.357605-3.27750.000762
60-0.365841-3.3536e-04


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9480838.68930
2-0.00814-0.07460.470354
3-0.075963-0.69620.244109
4-0.028464-0.26090.397412
50.0598960.5490.292246
6-0.029189-0.26750.394861
7-0.086831-0.79580.21419
80.0538880.49390.311337
9-0.010042-0.0920.463446
10-0.041219-0.37780.353275
110.0186540.1710.43233
12-0.029828-0.27340.392615
13-0.096073-0.88050.190544
14-0.021335-0.19550.422721
15-0.025176-0.23070.40904
160.0298780.27380.392443
170.0205180.18810.425645
18-0.018433-0.16890.433125
19-0.098955-0.90690.183516
200.0254950.23370.407906
210.0039290.0360.485681
220.00780.07150.471591
230.0419220.38420.350891
24-0.026857-0.24610.403084
25-0.026406-0.2420.404681
26-0.019309-0.1770.429977
270.0687760.63030.265092
280.0552440.50630.306981
29-0.011083-0.10160.459668
30-0.040245-0.36890.356583
31-0.078556-0.720.236767
32-0.003902-0.03580.485777
33-0.012759-0.11690.453592
34-0.011183-0.10250.459306
350.0398950.36560.357776
36-0.040816-0.37410.354643
370.0240150.22010.413163
380.0066790.06120.475668
390.0352060.32270.373874
40-0.019871-0.18210.427965
410.0033820.0310.487673
42-0.040098-0.36750.357082
43-0.12784-1.17170.122321
44-0.033134-0.30370.381064
45-0.057381-0.52590.300169
46-0.035402-0.32450.373196
47-0.001883-0.01730.493134
48-0.040272-0.36910.356493
490.0455120.41710.338826
50-0.039927-0.36590.357665
510.0118910.1090.45674
520.0023640.02170.491383
53-0.01046-0.09590.461927
54-0.03655-0.3350.369235
55-0.120793-1.10710.135709
56-0.053761-0.49270.311746
57-0.032296-0.2960.383983
580.0082940.0760.469794
590.0509670.46710.32081
60-0.018281-0.16750.43367
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278601532718deu7c6q9qfv1/1cvq51278601532.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278601532718deu7c6q9qfv1/1cvq51278601532.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/08/t1278601532718deu7c6q9qfv1/2cvq51278601532.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278601532718deu7c6q9qfv1/2cvq51278601532.ps (open in new window)


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