Home » date » 2009 » Jun » 05 »

Jurgen Leemans - opgave 6bis - oef 2 stap 1

*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, 05 Jun 2009 09:33:18 -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/Jun/05/t1244216154vrloqhijj16dxsu.htm/, Retrieved Fri, 05 Jun 2009 17:35: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/Jun/05/t1244216154vrloqhijj16dxsu.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 «
163.40 162.89 162.29 161.26 161.43 161.44 161.44 161.44 161.92 162.23 161.89 161.40 161.40 159.55 158.93 158.59 158.29 158.03 158.03 163.94 164.36 164.39 163.22 163.22 163.56 162.82 162.80 162.44 161.98 161.53 161.53 161.52 162.07 161.84 161.54 161.47 161.47 161.54 161.57 160.75 160.31 160.57 160.57 159.65 158.76 158.95 159.25 158.72 158.72 158.72 158.53 157.92 157.89 157.81 157.81 157.88 157.52 156.11 155.61 155.31 155.31 155.31 153.09 151.94 151.73 151.65 151.65 151.09 149.94 149.47 149.15 149.22
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9226317.82880
20.8364747.09770
30.7548666.40530
40.6857395.81870
50.623515.29071e-06
60.5618824.76775e-06
70.5080164.31072.5e-05
80.4531413.8450.000129
90.3998943.39320.000563
100.356593.02580.001719
110.3308022.80690.003215
120.2985512.53330.006739
130.2600462.20660.015267
140.2254521.9130.029861
150.1949011.65380.051262
160.1751051.48580.070847
170.163781.38970.084448
180.1542951.30920.097308
190.143161.21470.114215
200.1067760.9060.183972
210.0713430.60540.273419
220.0422160.35820.360616
230.0149070.12650.449849
24-0.015625-0.13260.447447
25-0.045587-0.38680.350015
26-0.06585-0.55880.28903
27-0.092786-0.78730.216842
28-0.122875-1.04260.150304
29-0.143624-1.21870.113469
30-0.158403-1.34410.09157
31-0.175158-1.48630.070787
32-0.194208-1.64790.051865
33-0.209415-1.77690.0399
34-0.218082-1.85050.034173
35-0.228634-1.940.028147
36-0.241496-2.04920.022045
37-0.255985-2.17210.016571
38-0.271289-2.3020.012116
39-0.278038-2.35920.010514
40-0.277324-2.35320.010674
41-0.282711-2.39890.009518
42-0.292866-2.48510.007639
43-0.304286-2.5820.005929
44-0.298195-2.53030.006792
45-0.281337-2.38720.009802
46-0.263333-2.23450.014279
47-0.249227-2.11480.018956
48-0.228567-1.93950.028182


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9226317.82880
2-0.099319-0.84280.201079
3-0.012941-0.10980.456434
40.0347170.29460.384579
5-0.002872-0.02440.490314
6-0.035648-0.30250.381577
70.0201570.1710.432337
8-0.043988-0.37330.355028
9-0.022426-0.19030.424809
100.035240.2990.382892
110.0808150.68570.247541
12-0.07887-0.66920.252743
13-0.048304-0.40990.341559
140.0173270.1470.44176
15-0.005908-0.05010.480079
160.0410630.34840.364266
170.042620.36160.359339
18-0.010358-0.08790.465103
19-0.014773-0.12540.450297
20-0.161239-1.36820.087758
210.0073990.06280.475057
22-0.000978-0.00830.496699
23-0.037329-0.31670.376178
24-0.045276-0.38420.35099
25-0.008298-0.07040.472031
260.0357670.30350.381194
27-0.075695-0.64230.26136
28-0.051902-0.44040.330483
290.0281450.23880.405963
30-0.027916-0.23690.406714
31-0.02224-0.18870.425424
32-0.009066-0.07690.469447
33-0.01266-0.10740.457376
340.0029020.02460.490211
35-0.047666-0.40450.343537
36-0.039629-0.33630.368824
37-0.050746-0.43060.334024
38-0.034921-0.29630.383922
390.072720.6170.269574
400.0114570.09720.461413
41-0.085657-0.72680.234845
42-0.04168-0.35370.362312
43-0.015867-0.13460.446637
440.0984290.83520.203184
450.0198340.16830.43341
460.0079040.06710.473356
47-0.014544-0.12340.451064
480.0394970.33510.369247
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244216154vrloqhijj16dxsu/1q58x1244215996.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244216154vrloqhijj16dxsu/1q58x1244215996.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244216154vrloqhijj16dxsu/2u1qy1244215996.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244216154vrloqhijj16dxsu/2u1qy1244215996.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