Home » date » 2009 » May » 08 »

opgave 6 bis, oefening 2, stap 2, Sara Vandenberghe

*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, 08 May 2009 05:42:37 -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/08/t1241783024ob3jediqjin1a85.htm/, Retrieved Fri, 08 May 2009 13:43:46 +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/08/t1241783024ob3jediqjin1a85.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 «
1.54 1.55 1.53 1.55 1.55 1.53 1.54 1.54 1.54 1.53 1.53 1.53 1.54 1.53 1.53 1.54 1.55 1.53 1.53 1.53 1.53 1.52 1.54 1.53 1.52 1.54 1.53 1.54 1.54 1.53 1.54 1.54 1.52 1.52 1.57 1.6 1.59 1.6 1.6 1.62 1.61 1.61 1.62 1.61 1.62 1.61 1.62 1.61 1.61 1.58 1.57 1.57 1.66 1.66 1.67 1.68 1.66 1.66 1.64 1.61 1.58 1.57 1.54 1.61 1.65 1.6 1.57 1.56 1.55 1.54 1.51 1.5 1.5 1.49 1.47 1.47 1.49 1.49 1.49 1.51 1.49 1.48 1.46 1.46 1.45 1.45 1.44 1.47 1.47 1.45 1.43 1.44 1.38 1.4 1.37 1.41
 
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
1-0.03787-0.36910.356433
2-0.029448-0.2870.38736
3-0.099679-0.97160.16687
40.0009650.00940.496259
5-0.104457-1.01810.155602
6-0.03066-0.29880.382858
7-0.126577-1.23370.110175
80.0824690.80380.211757
90.0955830.93160.176944
10-0.012136-0.11830.453044
110.1302771.26980.103632
120.2198442.14280.017344
13-0.085477-0.83310.203432
14-0.146928-1.43210.077701
150.0253550.24710.402672
16-0.004244-0.04140.483547
170.0049040.04780.480989
180.0186470.18170.428084
190.0530690.51730.30309
20-0.032617-0.31790.375625
21-0.016262-0.15850.4372
220.0043740.04260.483041
23-0.020314-0.1980.421734
240.1936421.88740.031081
25-0.047973-0.46760.320578
26-0.081223-0.79170.215264
270.0772740.75320.226604
28-0.110865-1.08060.141311
29-0.043646-0.42540.33575
300.0580380.56570.286472
31-0.128843-1.25580.106133
320.05430.52920.298934
330.047460.46260.322359
34-0.012951-0.12620.449907
35-0.059577-0.58070.281415
360.028950.28220.389214
37-0.094539-0.92150.179574
38-0.027321-0.26630.395297
39-0.005016-0.04890.480556
40-0.169549-1.65260.050861
410.1264951.23290.110324
42-0.005145-0.05010.480056
430.0686520.66910.252514
44-0.026442-0.25770.398588
450.0519510.50640.306892
46-0.106633-1.03930.150646
47-0.059464-0.57960.281783
48-0.006661-0.06490.474187


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.03787-0.36910.356433
2-0.030927-0.30140.381871
3-0.102244-0.99660.160756
4-0.008248-0.08040.468047
5-0.112711-1.09860.137366
6-0.051802-0.50490.307399
7-0.143882-1.40240.082029
80.0441460.43030.333982
90.081620.79550.214144
10-0.039876-0.38870.349197
110.1457761.42090.079317
120.2386282.32590.011077
13-0.049071-0.47830.316773
14-0.110251-1.07460.142639
150.0903830.88090.190285
160.0303630.29590.383961
170.0042510.04140.483518
180.0686620.66920.252486
190.0941780.91790.180489
20-0.117143-1.14180.128209
21-0.087309-0.8510.198459
220.0681190.66390.254167
23-0.0891-0.86840.19367
240.1584851.54470.062869
250.068770.67030.252151
26-0.067191-0.65490.25706
270.0320960.31280.377545
28-0.16522-1.61040.055318
29-0.028676-0.27950.390234
300.0441330.43020.33403
31-0.150298-1.46490.073122
320.1226091.1950.117522
330.0049680.04840.480743
34-0.091212-0.8890.188118
35-0.127396-1.24170.108702
36-0.101533-0.98960.162436
37-0.028491-0.27770.390924
38-0.038576-0.3760.35388
390.0256030.24960.401737
40-0.13499-1.31570.095717
410.0531910.51840.302679
42-0.094621-0.92220.179368
430.0588620.57370.283759
44-0.002039-0.01990.492095
450.0400190.39010.348682
46-0.007908-0.07710.469363
47-0.030817-0.30040.382278
480.0331650.32330.373606
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t1241783024ob3jediqjin1a85/174vi1241782955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t1241783024ob3jediqjin1a85/174vi1241782955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t1241783024ob3jediqjin1a85/2mjgc1241782955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t1241783024ob3jediqjin1a85/2mjgc1241782955.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