Home » date » 2009 » May » 14 »

Opgave 6 BIS Oefening 2 Stap 1 - Tabakprijs - Quincy Cabral MAR201a

*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, 14 May 2009 04:04:28 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/14/t12422955173jh7niwj0grx7y3.htm/, Retrieved Thu, 14 May 2009 12:05:19 +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/2009/May/14/t12422955173jh7niwj0grx7y3.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3,27 3,27 3,27 3,27 3,27 3,28 3,32 3,34 3,34 3,35 3,35 3,35 3,35 3,35 3,4 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,43 3,47 3,51 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,58 3,6 3,61 3,61 3,61 3,63 3,68 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,78 3,79 3,79 3,8 3,8 3,8 3,8 3,81 3,95 3,99 4 4,06 4,16 4,19 4,2 4,2 4,2 4,2 4,2 4,23 4,38 4,43 4,44 4,44 4,44 4,44 4,44 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,46 4,46 4,46 4,48 4,58 4,67 4,68 4,68 4,69 4,69 4,69 4,69 4,69 4,69 4,69 4,73 4,78 4,79 4,79 4,8 4,8 4,81 5,16 5,26 5,29 5,29 5,29 5,3 5,3 5,3 5,3 5,3 5,3 5,3 5,3 5,35 5,44 5,47 5,47 5,48 5,48 5,48 5,48
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.97824411.19650
20.95490410.92940
30.93109610.65690
40.90694210.38040
50.88264910.10240
60.8581989.82250
70.8344939.55120
80.8123959.29830
90.7906599.04950
100.768628.79730
110.7462978.54180
120.7234668.28050
130.6998198.00980
140.6754387.73070
150.6510147.45120
160.626497.17050
170.601956.88960
180.5765946.59940
190.5502656.29810
200.523745.99450
210.4985075.70570
220.4800575.49450
230.4615425.28260
240.4427485.06751e-06
250.4239964.85292e-06
260.4050964.63654e-06
270.3862794.42121e-05
280.3686524.21942.3e-05
290.3520524.02944.7e-05
300.3352183.83679.7e-05
310.3178413.63790.000197
320.2997453.43070.000403
330.2810873.21720.000816
340.2621453.00040.001614
350.2429342.78050.003114
360.2235642.55880.00582
370.2037112.33160.010625
380.1829582.0940.019092
390.1641811.87910.031224
400.1472151.68490.04719
410.1305621.49430.068745
420.1138321.30290.097453
430.0969221.10930.134661
440.0802750.91880.179948
450.0640250.73280.232494
460.0471670.53980.29511
470.0295710.33850.367779
480.011490.13150.447788


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97824411.19650
2-0.047812-0.54720.292575
3-0.021518-0.24630.402924
4-0.019661-0.2250.411151
5-0.015269-0.17480.430769
6-0.016245-0.18590.426394
70.0045850.05250.479113
80.0234330.26820.394483
9-0.006595-0.07550.469972
10-0.020707-0.2370.406511
11-0.019358-0.22160.412501
12-0.024549-0.2810.389584
13-0.031364-0.3590.360096
14-0.028284-0.32370.373332
15-0.012283-0.14060.444208
16-0.016111-0.18440.426993
17-0.015545-0.17790.42953
18-0.034978-0.40030.344779
19-0.038923-0.44550.328349
20-0.021674-0.24810.402236
210.0126540.14480.442535
220.1412431.61660.054185
23-0.024124-0.27610.39145
24-0.023009-0.26340.396346
25-0.016622-0.19020.424705
26-0.020216-0.23140.408689
27-0.012058-0.1380.445221
280.0226850.25960.397774
290.0224570.2570.398777
30-0.018765-0.21480.41514
31-0.029739-0.34040.36706
32-0.033787-0.38670.349798
33-0.032085-0.36720.357018
34-0.025486-0.29170.385487
35-0.019894-0.22770.410119
36-0.012889-0.14750.441473
37-0.027487-0.31460.376782
38-0.041662-0.47680.317133
390.0205020.23470.407423
400.0140540.16080.43623
41-0.01378-0.15770.437459
42-0.010132-0.1160.453928
430.0049140.05620.477615
44-0.013866-0.15870.437071
45-0.010773-0.12330.451029
46-0.029265-0.3350.369098
47-0.0327-0.37430.354407
48-0.025154-0.28790.386938
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t12422955173jh7niwj0grx7y3/1e2zq1242295467.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t12422955173jh7niwj0grx7y3/1e2zq1242295467.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t12422955173jh7niwj0grx7y3/2u3yb1242295467.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t12422955173jh7niwj0grx7y3/2u3yb1242295467.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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