Home » date » 2009 » Jul » 03 »

Opgave 6, oefening 1, 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, 03 Jul 2009 03:27:22 -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/Jul/03/t1246613286vf6mppu9uzblyjg.htm/, Retrieved Fri, 03 Jul 2009 11:28:09 +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/Jul/03/t1246613286vf6mppu9uzblyjg.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 «
9,26 9,29 9,28 9,31 9,27 9,27 9,28 9,25 9,32 9,33 9,31 9,3 9,29 9,33 9,35 9,35 9,37 9,37 9,35 9,33 9,34 9,37 9,33 9,31 9,26 9,27 9,29 9,27 9,29 9,31 9,33 9,35 9,34 9,35 9,38 9,43 9,47 9,5 9,55 9,58 9,61 9,57 9,61 9,65 9,62 9,63 9,62 9,63 9,65 9,72 9,75 9,77 9,78 9,82 9,84 9,9 9,94 9,96 10,03 10,03 10,12 10,12 10,05 10,14 10,17 10,2 10,2 10,35 10,43 10,52 10,57 10,57 10,57 10,65 10,57 10,61 10,63 10,71 10,72 10,77 10,79 10,82 10,9 10,83 10,92 10,91 10,88 10,87 11 10,99 11,03 11,04 10,99 10,9 11 10,99 10,92 10,98 11,15 11,19 11,33 11,38 11,4 11,45 11,56 11,61 11,82 11,77 11,85 11,82 11,92 11,86 11,87 11,94 11,86 11,92 11,83 11,91 11,93 11,99 11,96 12,12 11,85 12,01 12,1 12,21 12,31 12,31 12,39 12,35 12,41 12,51
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.97746711.23020
20.95697510.99480
30.93596510.75340
40.91414510.50270
50.89229610.25170
60.8700969.99660
70.84859.74850
80.8276239.50870
90.8082189.28570
100.7908099.08570
110.7687398.83210
120.7484048.59850
130.7272088.3550
140.7064268.11620
150.6862597.88450
160.6662797.6550
170.6451887.41260
180.6244377.17420
190.6014916.91060
200.5788116.650
210.5556316.38370
220.530826.09870
230.5065475.81980
240.4812275.52890
250.4561865.24120
260.4297454.93741e-06
270.4061014.66584e-06
280.3822134.39131.1e-05
290.3598624.13453.1e-05
300.3376733.87968.2e-05
310.315313.62260.000207
320.2929443.36575e-04
330.27273.13310.001066
340.2521692.89720.002205
350.2343452.69240.004007
360.217272.49620.006892
370.1992312.2890.011834
380.1804572.07330.020045
390.1635881.87950.031191
400.1449231.6650.049139
410.1253871.44060.076034
420.1053261.21010.114201
430.0855730.98320.163663
440.0657050.75490.22583
450.0472080.54240.294236
460.0284940.32740.371951
470.008630.09920.460584
48-0.011427-0.13130.447874


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97746711.23020
20.0343910.39510.346696
3-0.02007-0.23060.408998
4-0.029982-0.34450.365523
5-0.013634-0.15660.437884
6-0.019154-0.22010.41308
70.0013770.01580.493703
80.005940.06820.472845
90.0231890.26640.395165
100.0364050.41830.338219
11-0.112122-1.28820.099967
120.0153110.17590.430318
13-0.028142-0.32330.373478
14-0.001375-0.01580.49371
150.0029320.03370.48659
16-0.002322-0.02670.489378
17-0.037712-0.43330.33276
18-0.007374-0.08470.466307
19-0.067097-0.77090.221074
20-0.018768-0.21560.414805
21-0.012097-0.1390.444835
22-0.057081-0.65580.256543
23-0.000444-0.00510.49797
24-0.039798-0.45720.324125
25-0.016037-0.18420.42705
26-0.053568-0.61550.269659
270.0462710.53160.297942
28-0.026211-0.30110.381889
290.0296480.34060.366961
30-0.02018-0.23180.408508
31-0.021523-0.24730.402537
32-0.015404-0.1770.429898
330.0248430.28540.387883
34-0.014061-0.16150.435956
350.0480620.55220.290876
360.0184340.21180.416298
37-0.047464-0.54530.293228
38-0.025736-0.29570.383967
390.0137570.15810.437328
40-0.043406-0.49870.309411
41-0.035269-0.40520.34299
42-0.018016-0.2070.418169
43-0.01689-0.19410.423215
44-0.006075-0.06980.472231
45-0.006861-0.07880.468644
46-0.023533-0.27040.393649
47-0.041397-0.47560.317569
48-0.030674-0.35240.362542
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/03/t1246613286vf6mppu9uzblyjg/17akb1246613238.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/03/t1246613286vf6mppu9uzblyjg/17akb1246613238.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/03/t1246613286vf6mppu9uzblyjg/204yy1246613238.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/03/t1246613286vf6mppu9uzblyjg/204yy1246613238.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