Home » date » 2009 » Aug » 19 »

Thomas Van den Bosch opgave 6 stap 2

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 19 Aug 2009 08:06: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/Aug/19/t1250690838pw4h4mcy91ocxnd.htm/, Retrieved Wed, 19 Aug 2009 16:07:21 +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/Aug/19/t1250690838pw4h4mcy91ocxnd.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 «
5.93 5.9 5.9 5.94 5.86 5.92 5.9 5.91 5.84 5.84 5.83 5.82 5.8 5.91 5.92 5.96 5.9 5.92 6.09 6.31 6.25 6.23 6.22 6.19 6.15 6.12 6.13 6.1 6.05 6.07 6.09 6.17 6.12 6.12 6.13 6.19 6.24 6.41 6.5 6.53 6.58 6.53 6.51 6.51 6.49 6.49 6.49 6.53 6.65 6.61 6.52 6.62 6.6 6.61 6.63 6.62 6.6 6.59 6.59 6.52 6.52 6.61 6.59 6.6 6.48 6.53 6.56 6.56 6.49 6.45 6.44 6.43
 
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.9647048.18580
20.9213677.81810
30.879257.46070
40.8414887.14030
50.7932636.73110
60.748166.34830
70.7014015.95160
80.6606125.60550
90.6114155.1881e-06
100.5657414.80054e-06
110.520924.42021.7e-05
120.4818364.08855.6e-05
130.4385613.72130.000195
140.4018673.410.000534
150.3643813.09190.001414
160.3342392.83610.002963
170.2968532.51890.006997
180.2577542.18710.015992
190.2197731.86480.03314
200.1906511.61770.055047
210.1550721.31580.096202
220.120551.02290.15489
230.0829780.70410.241824
240.0437030.37080.355925
250.0023530.020.492061
26-0.039942-0.33890.367827
27-0.08121-0.68910.24649
28-0.120258-1.02040.155471
29-0.16246-1.37850.086156
30-0.205336-1.74230.04286
31-0.24979-2.11950.018747
32-0.282177-2.39440.009628
33-0.317281-2.69220.004411
34-0.34971-2.96740.002037
35-0.379965-3.22410.00095
36-0.404827-3.43510.000493
37-0.425332-3.60910.000282
38-0.430662-3.65430.000243
39-0.429415-3.64370.000252
40-0.425364-3.60930.000282
41-0.417039-3.53870.000354
42-0.40809-3.46280.000452
43-0.403778-3.42620.000507
44-0.401224-3.40450.000543
45-0.40138-3.40580.000541
46-0.396964-3.36840.000609
47-0.392019-3.32640.000694
48-0.385533-3.27140.000822


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9647048.18580
2-0.133931-1.13640.129769
30.0082660.07010.472139
40.0360050.30550.380428
5-0.187765-1.59320.057744
60.0613970.5210.301992
7-0.070079-0.59460.276975
80.0525850.44620.328396
9-0.142542-1.20950.115212
100.0375590.31870.375438
11-0.014366-0.12190.451659
120.0122120.10360.458878
13-0.052624-0.44650.328278
140.0532380.45170.326408
15-0.042752-0.36280.358923
160.0514380.43650.331904
17-0.115324-0.97860.165539
18-0.064469-0.5470.293021
190.0268050.22740.410362
200.0288390.24470.403689
21-0.091178-0.77370.22083
22-0.010948-0.09290.463121
23-0.059453-0.50450.307733
24-0.119982-1.01810.156025
250.0128640.10920.45669
26-0.093021-0.78930.216262
270.0199440.16920.433043
28-0.069421-0.58910.278835
29-0.049032-0.4160.339307
30-0.066988-0.56840.285763
31-0.075767-0.64290.261165
320.1376171.16770.123387
33-0.145125-1.23140.111085
340.0385150.32680.372381
35-0.01122-0.09520.462208
36-0.066146-0.56130.288179
370.069410.5890.278866
380.1732511.47010.072948
390.0286380.2430.404346
40-0.028384-0.24080.405179
410.1092710.92720.178462
42-0.113717-0.96490.168908
43-0.075209-0.63820.262694
44-0.03253-0.2760.391659
45-0.053271-0.4520.326307
460.0313870.26630.395374
470.01830.15530.438518
48-0.012639-0.10720.457446
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250690838pw4h4mcy91ocxnd/188bc1250690796.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250690838pw4h4mcy91ocxnd/188bc1250690796.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250690838pw4h4mcy91ocxnd/2sslx1250690796.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250690838pw4h4mcy91ocxnd/2sslx1250690796.ps (open in new window)


 
Parameters (Session):
par1 = 0 ;
 
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