Home » date » 2010 » Jun » 05 »

opgave 6bis

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 05 Jun 2010 11:47:09 +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/Jun/05/t12757385005o2p6wt4yq67iw6.htm/, Retrieved Sat, 05 Jun 2010 13:48:20 +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/Jun/05/t12757385005o2p6wt4yq67iw6.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,6 104,7 105,5 106,6 107,2 107,5 108,3 108,7 108,8 109,8 109,5 109,2 110,6 110,1 109,9 109,7 109,4 109,4 109,4 109,5 109,5 109,9 110 110,8 112,4 112,8 113,7 114,5 114,8 115,6 115,8 115,8 116,3 116,3 116,8 116,7 116,8 117 117,2 117,1 117,3 117,4 117,7 117,9 118,8 119,9 122,4 123,5 125,6 127,4 128,9 129,5 130,8 132,7 134 132,9 133,1 131,7 128,8 125,1 123,9 121,8 119,2 118,9 119,6 120,2 119,6 121 120,4 120,4 121,4 121,7
 
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.9663368.19960
20.924047.84070
30.8749577.42430
40.8193556.95250
50.758396.43520
60.6986845.92850
70.6410255.43930
80.5860834.97312e-06
90.5355784.54451.1e-05
100.4934944.18743.9e-05
110.4523693.83850.000132
120.4124473.49970.000402
130.3811023.23380.000923
140.3495052.96560.002048
150.3167852.6880.004462
160.2836622.4070.009326
170.2506852.12710.018418
180.215061.82480.036086
190.1788131.51730.066787
200.1423051.20750.115597
210.1039720.88220.190293
220.0639930.5430.294403
230.022180.18820.425624
24-0.018554-0.15740.437672
25-0.054894-0.46580.321385
26-0.091475-0.77620.220089
27-0.124449-1.0560.147254
28-0.155013-1.31530.096286
29-0.184327-1.56410.061094
30-0.211095-1.79120.038732
31-0.236386-2.00580.024318
32-0.260264-2.20840.0152
33-0.280347-2.37880.010011
34-0.29851-2.53290.006745
35-0.31257-2.65220.004915
36-0.324067-2.74980.003767
37-0.333614-2.83080.003007
38-0.341943-2.90150.002462
39-0.348426-2.95650.002103
40-0.355435-3.0160.001769
41-0.362737-3.07790.001474
42-0.372103-3.15740.001163
43-0.382536-3.24590.000889
44-0.394082-3.34390.000657
45-0.405698-3.44250.000482
46-0.415659-3.5270.000368
47-0.418759-3.55330.000338
48-0.419592-3.56040.00033


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9663368.19960
2-0.147533-1.25190.107337
3-0.110366-0.93650.176077
4-0.105556-0.89570.186707
5-0.088048-0.74710.228714
60.0131810.11180.45563
70.0080450.06830.472881
80.0062450.0530.478942
90.0210.17820.429537
100.0718810.60990.271914
11-0.056471-0.47920.316634
12-0.040497-0.34360.366063
130.0838580.71160.239519
14-0.064736-0.54930.292248
15-0.048302-0.40990.341563
16-0.035655-0.30250.381556
17-0.026625-0.22590.410952
18-0.04922-0.41760.338725
19-0.014737-0.1250.450418
20-0.028943-0.24560.403348
21-0.051707-0.43870.331079
22-0.03054-0.25910.398134
23-0.074538-0.63250.264539
24-0.01928-0.16360.435255
250.0503770.42750.33516
26-0.062789-0.53280.297912
27-0.000976-0.00830.496708
28-0.021876-0.18560.426632
29-0.04292-0.36420.358393
30-0.019854-0.16850.433343
31-0.029904-0.25370.40021
32-0.028168-0.2390.405886
330.0194870.16540.434566
34-0.009195-0.0780.469013
350.0035570.03020.488001
360.000510.00430.498281
37-0.003502-0.02970.488189
38-0.039896-0.33850.367974
39-0.002747-0.02330.490734
40-0.044021-0.37350.354925
41-0.038114-0.32340.373663
42-0.051713-0.43880.33106
43-0.036642-0.31090.378381
44-0.035734-0.30320.381301
45-0.01592-0.13510.44646
46-0.002587-0.02190.491275
470.0712730.60480.273615
48-0.012986-0.11020.456281
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/05/t12757385005o2p6wt4yq67iw6/1nz351275738425.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t12757385005o2p6wt4yq67iw6/1nz351275738425.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/05/t12757385005o2p6wt4yq67iw6/2nz351275738425.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/05/t12757385005o2p6wt4yq67iw6/2nz351275738425.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