Home » date » 2009 » May » 14 »

Opgave 6 BIS Oefening 2 Stap 2 - 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:07:01 -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/t1242295675we30okjj1sdh2l2.htm/, Retrieved Thu, 14 May 2009 12:07:57 +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/t1242295675we30okjj1sdh2l2.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.2927193.33750.000551
2-0.038057-0.43390.332536
3-0.07538-0.85950.195835
4-0.07639-0.8710.192685
5-0.09032-1.02980.152507
6-0.046943-0.53520.296701
7-0.013348-0.15220.439634
80.0312280.35610.36119
9-0.033918-0.38670.349797
10-0.082776-0.94380.173514
11-0.017667-0.20140.420336
120.0718960.81970.206933
130.0461080.52570.299992
140.0523880.59730.275669
15-0.055345-0.6310.264563
16-0.102496-1.16860.122344
170.0710420.810.209708
180.1167721.33140.092693
190.0693440.79060.215295
200.061090.69650.24367
21-0.019374-0.22090.412758
22-0.057759-0.65850.255675
23-0.056785-0.64740.259242
24-0.091478-1.0430.14944
25-0.096964-1.10560.13548
26-0.063046-0.71880.236766
27-0.017639-0.20110.420459
28-0.024694-0.28160.389365
29-0.020168-0.230.409246
300.028330.3230.373602
310.0791350.90230.184288
320.03120.35570.361307
33-0.051802-0.59060.277896
34-0.057749-0.65840.255709
35-0.030614-0.34910.363806
360.0040420.04610.481657
370.1862092.12310.01782
380.081290.92680.177861
390.0330780.37710.353339
40-0.049878-0.56870.285273
41-0.098736-1.12580.13117
42-0.069617-0.79380.214393
43-0.055678-0.63480.26333
44-0.029096-0.33170.370307
450.1013931.15610.124888
460.0963691.09880.136949
470.0212110.24180.404643
480.0152630.1740.431057


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2927193.33750.000551
2-0.135337-1.54310.062621
3-0.025754-0.29360.384749
4-0.054503-0.62140.267704
5-0.066786-0.76150.223875
6-0.012249-0.13970.444574
7-0.014637-0.16690.43386
80.0270490.30840.379132
9-0.071513-0.81540.208174
10-0.062762-0.71560.237764
110.0196850.22440.411381
120.0613560.69960.242724
13-0.003837-0.04380.482584
140.0424330.48380.314666
15-0.097397-1.11050.134418
16-0.05603-0.63880.262026
170.1447121.650.050681
180.0545690.62220.267456
190.0244030.27820.390635
200.0351820.40110.34449
21-0.045325-0.51680.303091
22-0.005993-0.06830.472811
23-0.002289-0.02610.48961
24-0.066506-0.75830.224826
25-0.08588-0.97920.164653
26-0.058212-0.66370.254024
270.0161150.18370.427254
28-0.029887-0.34080.366914
29-0.027883-0.31790.375529
300.018520.21120.416548
310.0117590.13410.446776
32-0.024281-0.27680.391168
33-0.027595-0.31460.376774
34-0.037781-0.43080.333673
35-0.026905-0.30680.379755
360.0188170.21460.415226
370.1995342.2750.01227
38-0.046213-0.52690.299577
390.0457210.52130.301521
40-0.065043-0.74160.229833
41-0.04617-0.52640.299748
420.0251250.28650.387485
43-0.027347-0.31180.377843
44-0.015097-0.17210.431803
450.1001861.14230.127716
460.0587440.66980.252091
470.0188960.21540.414878
480.0114260.13030.448274
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242295675we30okjj1sdh2l2/1c0fx1242295619.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242295675we30okjj1sdh2l2/1c0fx1242295619.ps (open in new window)


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


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