Home » date » 2010 » Aug » 13 »

Tijdreeks 1 - stap 20bis

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 13 Aug 2010 14:19:34 +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/13/t1281709178y2hysjo5y6mam6i.htm/, Retrieved Fri, 13 Aug 2010 16:19:39 +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/13/t1281709178y2hysjo5y6mam6i.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:
Reuben Vermoet
 
Dataseries X:
» Textbox « » Textfile « » CSV «
210 209 208 206 226 225 210 200 201 201 202 204 197 196 187 196 221 218 200 191 194 192 199 196 182 178 169 177 207 213 191 182 188 189 194 195 171 165 156 170 201 208 189 175 184 187 193 199 179 188 171 182 212 216 192 182 183 183 187 190 167 167 158 171 201 208 181 169 173 180 181 192 169 168 156 161 195 208 176 164 170 175 170 175 148 151 143 139 166 186 149 142 138 137 130 138 118 113 99 93 125 146 109 97 97 94 92 103 78 72 57 40 70 89 53 46 43 38 29 34
 
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.0725620.79160.215096
2-0.409123-4.4639e-06
3-0.24352-2.65650.00449
4-0.142513-1.55460.061344
50.0466890.50930.305739
60.4528814.94031e-06
70.0832740.90840.182749
8-0.128872-1.40580.08119
9-0.248267-2.70830.00388
10-0.3779-4.12243.5e-05
110.0342440.37360.354698
120.8621579.4050
130.1148291.25260.106398
14-0.356082-3.88448.5e-05
15-0.232135-2.53230.006317
16-0.132845-1.44920.074961
170.0207320.22620.410732
180.3941544.29971.8e-05
190.0918261.00170.159261
20-0.096852-1.05650.146434
21-0.233293-2.54490.006105
22-0.334613-3.65020.000195
23-0.004581-0.050.480114
240.7462748.14090
250.1433691.5640.06024
26-0.316196-3.44930.000389
27-0.203751-2.22270.014064
28-0.133725-1.45880.073632
29-0.000731-0.0080.496826
300.3370113.67640.000178
310.1061311.15770.124642
32-0.085879-0.93680.175373
33-0.205416-2.24080.013446
34-0.292913-3.19530.000894
35-0.031622-0.3450.36537
360.6174156.73520
370.1766391.92690.028188
38-0.279249-3.04620.001427
39-0.197266-2.15190.016712
40-0.111095-1.21190.113975
41-0.013283-0.14490.442516
420.2745492.9950.00167
430.0929621.01410.156296
44-0.072358-0.78930.215743
45-0.165033-1.80030.037173
46-0.248112-2.70660.003899
47-0.037635-0.41060.341069
480.4822535.26080
490.17841.94610.026999
50-0.238139-2.59780.005284
51-0.152462-1.66320.049456
52-0.087443-0.95390.171036
53-0.030344-0.3310.370608
540.213392.32780.010806
550.0848960.92610.178133
56-0.065084-0.710.239551
57-0.118385-1.29140.099529
58-0.193673-2.11270.018357
59-0.051565-0.56250.287413
600.3815224.16193e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0725620.79160.215096
2-0.416582-4.54447e-06
3-0.208291-2.27220.012435
4-0.36261-3.95566.5e-05
5-0.218799-2.38680.009285
60.2468112.69240.004059
7-0.064929-0.70830.240073
80.2165112.36190.009904
9-0.136515-1.48920.069539
10-0.397105-4.33191.6e-05
11-0.184535-2.0130.023183
120.7143417.79250
130.0090140.09830.460917
140.200912.19170.015175
150.0430510.46960.319737
160.1504911.64170.05165
170.0606250.66130.254835
18-0.122099-1.33190.092712
19-0.083865-0.91490.181057
20-0.036883-0.40230.344074
21-0.025375-0.27680.391204
220.0293710.32040.374616
23-0.061982-0.67610.250132
240.0839420.91570.180837
250.0134610.14680.441753
26-0.004849-0.05290.478951
270.069830.76180.223856
28-0.097975-1.06880.143666
290.0473380.51640.303268
30-0.104421-1.13910.128475
310.0413640.45120.326324
32-0.11355-1.23870.10895
330.0375120.40920.34156
34-0.010166-0.11090.455942
350.0259380.28290.388855
36-0.106989-1.16710.122749
370.0709320.77380.220299
38-0.089444-0.97570.165592
39-0.03809-0.41550.339258
40-0.00101-0.0110.495613
41-0.030794-0.33590.368762
42-0.004491-0.0490.480505
43-0.14151-1.54370.062659
44-0.005039-0.0550.478126
45-0.009783-0.10670.457594
460.0175680.19160.424174
470.0412880.45040.326622
48-0.110203-1.20220.115842
49-0.027499-0.30.38236
50-0.020931-0.22830.409889
510.0639560.69770.243368
520.0197060.2150.415081
53-0.063587-0.69360.244628
540.0389450.42480.335861
550.0187060.20410.41933
560.0067010.07310.470926
570.0063110.06880.472613
580.0100850.110.456292
59-0.001594-0.01740.49308
600.0814230.88820.188107
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/13/t1281709178y2hysjo5y6mam6i/1o8931281709170.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/13/t1281709178y2hysjo5y6mam6i/1o8931281709170.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/13/t1281709178y2hysjo5y6mam6i/2o8931281709170.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/13/t1281709178y2hysjo5y6mam6i/2o8931281709170.ps (open in new window)


 
Parameters (Session):
par1 = 0.01 ; par2 = 0.99 ; par3 = 0.01 ;
 
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