Home » date » 2009 » Dec » 08 »

Opgave 6 bis gegevens biefstuk

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 08 Dec 2009 13:31:02 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/08/t1260304323hiqynqihqqhcmod.htm/, Retrieved Tue, 08 Dec 2009 21:32:05 +0100
 
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/2009/Dec/08/t1260304323hiqynqihqqhcmod.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
10,1200 10,1200 10,0500 10,1400 10,1700 10,2000 10,2000 10,3500 10,4300 10,5200 10,5700 10,5700 10,5700 10,6500 10,5700 10,6100 10,6300 10,7100 10,7200 10,7700 10,7900 10,8200 10,9000 10,8300 10,9200 10,9100 10,8800 10,8700 11,0000 10,9900 11,0300 11,0400 10,9900 10,9000 11,0000 10,9900 10,9200 10,9800 11,1500 11,1900 11,3300 11,3800 11,4000 11,4500 11,5600 11,6100 11,8200 11,7700 11,8500 11,8200 11,9200 11,8600 11,8700 11,9400 11,8600 11,9200 11,8300 11,9100 11,9300 11,9900 11,9600 12,1200 11,8500 12,0100 12,1000 12,2100 12,3100 12,3100 12,3900 12,3500 12,4100 12,5100
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9501968.06270
20.9057947.68590
30.8563247.26620
40.8071776.84910
50.75876.43780
60.7107856.03120
70.6629625.62540
80.6224865.2821e-06
90.5868494.97962e-06
100.5590794.74395e-06
110.5217054.42681.7e-05
120.4886354.14624.6e-05
130.4539223.85170.000126
140.4216583.57790.000312
150.3885963.29730.000759
160.3566983.02670.001714
170.3226212.73750.003897
180.2921562.4790.007759
190.2567272.17840.016326
200.223681.8980.030854
210.1897761.61030.055853
220.1514581.28520.101426
230.1180751.00190.159874
240.079770.67690.250327
250.0464540.39420.347307
260.0083580.07090.471828
27-0.024378-0.20690.418355
28-0.058308-0.49480.311137
29-0.083963-0.71240.239246
30-0.11037-0.93650.176067
31-0.136061-1.15450.126053
32-0.162919-1.38240.085559
33-0.185154-1.57110.060274
34-0.21232-1.80160.037898
35-0.229359-1.94620.027768
36-0.246211-2.08920.020114
37-0.2693-2.28510.012628
38-0.293567-2.4910.007522
39-0.30804-2.61380.005448
40-0.326303-2.76880.003575
41-0.342418-2.90550.002434
42-0.357244-3.03130.001691
43-0.371117-3.1490.001193
44-0.384461-3.26230.000846
45-0.389829-3.30780.000735
46-0.393659-3.34030.000664
47-0.392858-3.33350.000679
48-0.393879-3.34220.00066


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9501968.06270
20.030070.25520.399665
3-0.072648-0.61640.269775
4-0.028564-0.24240.404592
5-0.01778-0.15090.44025
6-0.02096-0.17790.429669
7-0.027203-0.23080.409052
80.0470320.39910.345508
90.0328220.27850.390712
100.0571210.48470.314685
11-0.11635-0.98730.163411
120.0030070.02550.489858
13-0.0267-0.22660.410704
14-0.001113-0.00940.496244
15-0.025068-0.21270.416079
16-0.006616-0.05610.477694
17-0.031302-0.26560.395649
180.0047090.040.484121
19-0.072913-0.61870.269037
20-0.022357-0.18970.425037
21-0.014876-0.12620.449952
22-0.081467-0.69130.245808
230.022150.18790.425723
24-0.079419-0.67390.251269
250.0182530.15490.438674
26-0.085442-0.7250.235402
270.0197930.1680.433547
28-0.054203-0.45990.323477
290.0590260.50090.309002
30-0.042106-0.35730.360964
31-0.033747-0.28630.387717
32-0.034611-0.29370.384922
33-0.00186-0.01580.493725
34-0.063911-0.54230.294641
350.0511860.43430.332675
360.0124140.10530.458201
37-0.113254-0.9610.169887
38-0.03318-0.28150.389551
390.0442910.37580.354077
40-0.03551-0.30130.382021
41-0.045491-0.3860.350317
420.0171790.14580.442255
43-0.033754-0.28640.387692
44-0.003567-0.03030.48797
450.0189190.16050.436456
460.0004960.00420.498328
470.0353430.29990.382561
48-0.039419-0.33450.369495
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260304323hiqynqihqqhcmod/16k341260304260.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260304323hiqynqihqqhcmod/16k341260304260.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/08/t1260304323hiqynqihqqhcmod/249ew1260304260.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260304323hiqynqihqqhcmod/249ew1260304260.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