Home » date » 2010 » Jul » 08 »

Kelly Janbroers - 2de zit - Stap 18/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:08:12 +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/t1278601688i1bl5u7ipdzy7kx.htm/, Retrieved Thu, 08 Jul 2010 17:08: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/Jul/08/t1278601688i1bl5u7ipdzy7kx.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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1579841.43930.076912
20.1127331.0270.153692
30.1242761.13220.130403
4-0.17824-1.62380.054101
5-0.082657-0.7530.226778
6-0.058325-0.53140.298291
7-0.074194-0.67590.250478
8-0.189863-1.72970.043697
90.0292110.26610.395402
100.0882810.80430.211768
110.193951.7670.040455
120.6430995.85890
130.058440.53240.297932
140.1116431.01710.156028
15-0.011895-0.10840.456983
16-0.234532-2.13670.017784
17-0.113779-1.03660.151473
18-0.147667-1.34530.091094
19-0.134376-1.22420.112165
20-0.173246-1.57830.059145
21-0.008712-0.07940.468466
220.0163170.14870.441094
230.159921.45690.074453
240.3815183.47580.000406
250.0364530.33210.370323
260.0989590.90160.184949
27-0.024104-0.21960.413361
28-0.255914-2.33150.011076
29-0.051008-0.46470.321679
30-0.072758-0.66290.25463
31-0.113279-1.0320.152531
32-0.133418-1.21550.113811
330.0109820.10.460274
34-0.034806-0.31710.375985
350.0894810.81520.208644
360.2485052.2640.013092
370.0110340.10050.460086
380.0375450.34210.366588
39-0.030522-0.27810.390825
40-0.224377-2.04420.022053
410.02950.26880.39439
42-0.039319-0.35820.360548
43-0.098587-0.89820.185846
44-0.067342-0.61350.270607
45-0.004338-0.03950.484285
46-0.021992-0.20040.420846
470.0613760.55920.288777
480.0947440.86320.19527
490.0039020.03550.485864
50-0.004559-0.04150.483486
51-0.051067-0.46520.321489
52-0.114517-1.04330.14992
530.0441330.40210.344331
54-0.067656-0.61640.269666
55-0.063346-0.57710.282714
56-0.033584-0.3060.3802
57-0.009335-0.0850.466216
58-0.035729-0.32550.372809
590.0058670.05350.478751
60-0.023851-0.21730.414258


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1579841.43930.076912
20.090020.82010.207247
30.0970360.8840.189614
4-0.228516-2.08190.020217
5-0.049082-0.44720.327962
6-0.01358-0.12370.450918
70.0010360.00940.496248
8-0.214439-1.95360.027057
90.0869490.79210.215268
100.1202271.09530.138272
110.2218162.02080.02326
120.5769965.25671e-06
13-0.177563-1.61770.054764
14-0.026799-0.24420.403858
15-0.224254-2.04310.02211
16-0.0803-0.73160.233247
17-0.079821-0.72720.234573
18-0.074386-0.67770.249927
19-0.02237-0.20380.419506
200.0563410.51330.304556
210.0308120.28070.389814
22-0.094804-0.86370.195118
23-0.055152-0.50250.308338
24-0.086764-0.79050.215758
250.0710180.6470.259706
260.014460.13170.447756
270.1403941.27910.102222
28-0.110379-1.00560.158765
290.1668631.52020.066131
300.1196721.09030.139376
310.0313440.28560.387963
32-0.15886-1.44730.075793
33-0.055073-0.50170.308591
34-0.082517-0.75180.227159
35-0.056669-0.51630.303517
36-0.035214-0.32080.37458
37-0.077596-0.70690.240795
380.0122750.11180.455614
390.0335240.30540.380405
40-0.007564-0.06890.472612
410.0330070.30070.382195
42-0.005308-0.04840.480775
43-0.04108-0.37430.354583
440.0422470.38490.350654
450.0187570.17090.432364
460.1180171.07520.142704
470.0137420.12520.450335
48-0.115731-1.05440.147389
490.0287010.26150.397184
50-0.073842-0.67270.251494
51-0.0251-0.22870.409842
52-0.013637-0.12420.450713
53-0.08346-0.76040.224597
54-0.068242-0.62170.267918
55-0.013776-0.12550.450212
56-0.076529-0.69720.243808
570.066340.60440.273618
58-0.054882-0.50.309201
590.0028850.02630.489547
60-0.08559-0.77980.218875
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278601688i1bl5u7ipdzy7kx/1qxka1278601689.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/08/t1278601688i1bl5u7ipdzy7kx/1qxka1278601689.ps (open in new window)


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


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