Home » date » 2010 » Aug » 20 »

"Tijdreeks B stap 17"

*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, 19 Aug 2010 23:00:28 +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/20/t1282258847wc88pziq02ok491.htm/, Retrieved Fri, 20 Aug 2010 01:00:48 +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/20/t1282258847wc88pziq02ok491.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:
ellen aerts
 
Dataseries X:
» Textbox « » Textfile « » CSV «
80 79 78 76 74 73 74 76 77 77 78 80 90 90 89 82 78 76 74 78 81 82 88 99 117 113 106 100 97 96 100 104 104 111 117 118 140 147 134 126 116 114 120 122 117 119 132 134 154 152 132 130 123 129 124 128 128 129 141 138 155 160 142 133 131 140 134 134 134 136 145 137 152 168 160 157 147 161 159 164 163 158 175 163
 
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.9385148.60160
20.8648147.92620
30.8055327.38280
40.7500456.87430
50.708326.49190
60.6619696.0670
70.630265.77640
80.6083615.57570
90.60025.50090
100.5890955.39910
110.5706435.231e-06
120.5656825.18461e-06
130.5233394.79653e-06
140.4631834.24512.8e-05
150.4111383.76810.000152
160.3648423.34380.000618
170.3318643.04160.00157
180.293582.69070.004301
190.2593322.37680.009868
200.2333912.13910.017666
210.2269982.08050.020265
220.2190252.00740.023961
230.1929351.76830.040322
240.177331.62530.053927
250.1443231.32270.094756
260.0969750.88880.188326
270.0588020.53890.29568
280.0234260.21470.41526
29-0.00272-0.02490.490084
30-0.030013-0.27510.391966
31-0.049782-0.45630.324691
32-0.065606-0.60130.274632
33-0.072457-0.66410.254228
34-0.072128-0.66110.25519
35-0.089724-0.82230.206608
36-0.107949-0.98940.162661
37-0.125846-1.15340.12601
38-0.148784-1.36360.088165
39-0.163196-1.49570.069237
40-0.17563-1.60970.055611
41-0.192656-1.76570.040538
42-0.214034-1.96170.026558
43-0.224399-2.05670.021411
44-0.232894-2.13450.017858
45-0.244583-2.24160.013811
46-0.259547-2.37880.009819
47-0.283574-2.5990.005521
48-0.299113-2.74140.003737


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9385148.60160
2-0.134188-1.22990.111092
30.0932720.85480.197533
4-0.026842-0.2460.403137
50.0975860.89440.186834
6-0.089487-0.82020.207223
70.1431971.31240.096476
80.0156790.14370.44304
90.1473621.35060.090226
10-0.070672-0.64770.259465
110.0214140.19630.42244
120.0979180.89740.186027
13-0.334322-3.06410.001467
14-0.066989-0.6140.27045
150.006410.05870.476647
160.0224950.20620.41858
17-0.00561-0.05140.479558
18-0.046946-0.43030.33405
19-0.001148-0.01050.495816
200.006130.05620.477664
210.0921030.84410.200494
22-0.088922-0.8150.208694
23-0.02942-0.26960.394051
240.0328860.30140.381925
25-0.131567-1.20580.115634
26-0.054526-0.49970.309283
270.0540310.49520.310877
28-0.007814-0.07160.471537
29-0.032884-0.30140.381933
30-0.032627-0.2990.382828
310.058850.53940.295531
32-0.016164-0.14810.441293
33-0.027498-0.2520.400818
34-0.003531-0.03240.487129
35-0.020186-0.1850.426834
36-0.044669-0.40940.341644
370.0177560.16270.435558
380.0105450.09660.461618
390.039870.36540.35786
40-0.001844-0.01690.493277
41-0.113601-1.04120.150393
42-0.037182-0.34080.367062
430.0579160.53080.298476
44-0.054185-0.49660.310381
45-0.081826-0.750.22769
46-0.106795-0.97880.165248
470.0350480.32120.37442
480.0377720.34620.365034
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258847wc88pziq02ok491/1mxow1282258825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258847wc88pziq02ok491/1mxow1282258825.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258847wc88pziq02ok491/2mxow1282258825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258847wc88pziq02ok491/2mxow1282258825.ps (open in new window)


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