Home » date » 2009 » Jul » 03 »

Opgave 6, oefening 1, stap 2 deel 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:29:56 -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/t12466134506wxgyjt332a4im1.htm/, Retrieved Fri, 03 Jul 2009 11:30:52 +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/t12466134506wxgyjt332a4im1.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 time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.245839-2.81380.002826
20.2222692.5440.00606
3-0.028451-0.32560.372607
40.0933581.06850.143624
5-0.062694-0.71760.237153
60.1229321.4070.080894
70.0368390.42160.336988
8-0.013249-0.15160.43985
9-0.00283-0.03240.487105
10-0.027639-0.31630.376123
110.0136170.15590.438193
12-0.060555-0.69310.244742
130.0866430.99170.161592
14-0.192323-2.20120.014735
150.1440221.64840.050832
16-0.171248-1.960.026058
170.0103360.11830.453007
180.0822080.94090.174242
190.0201850.2310.408826
200.0561810.6430.260666
210.1264631.44740.075082
220.0210060.24040.405189
23-0.037435-0.42850.334507
24-0.01842-0.21080.416675
250.0488460.55910.288537
26-0.005333-0.0610.475712
270.0842970.96480.168204
28-0.067119-0.76820.221873
290.0726970.83210.203447
300.0411950.47150.319036
310.1235181.41370.079906
32-0.169127-1.93570.027527
330.1446291.65540.050123
34-0.100238-1.14730.126678
350.0439350.50290.307953
36-0.05055-0.57860.281935
370.1177181.34730.090097
38-0.113902-1.30370.097316
390.0808520.92540.17823
40-0.016241-0.18590.42641
41-0.031572-0.36140.359208
420.0566850.64880.258807
43-0.036367-0.41620.338959
44-0.029565-0.33840.367807
45-0.07834-0.89660.185777
460.052250.5980.275429
47-0.089845-1.02830.152846
480.085990.98420.163414


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.245839-2.81380.002826
20.1722421.97140.025393
30.064850.74220.229634
40.0682660.78130.218007
5-0.042288-0.4840.314592
60.0797040.91220.181657
70.1034681.18420.119231
8-0.026615-0.30460.380568
9-0.045573-0.52160.301414
10-0.051951-0.59460.276567
110.0096450.11040.456133
12-0.048505-0.55520.289863
130.0521030.59630.275987
14-0.160269-1.83440.034435
150.0650870.7450.228817
16-0.063374-0.72540.234765
17-0.078586-0.89950.18503
180.1557141.78220.038515
190.066360.75950.22445
200.0918691.05150.147484
210.1579871.80820.036432
220.0490840.56180.28761
23-0.056531-0.6470.259374
24-0.116387-1.33210.092569
25-0.005293-0.06060.475893
26-0.011015-0.12610.449934
270.0807860.92460.178427
28-0.120931-1.38410.084338
290.0694270.79460.214134
300.1263121.44570.075323
310.1763242.01810.02281
32-0.135297-1.54850.061952
33-0.028034-0.32090.374411
340.0210070.24040.405183
350.0632150.72350.235323
36-0.053399-0.61120.271069
370.0535930.61340.270337
38-0.075439-0.86340.194736
390.0172850.19780.42174
40-0.041507-0.47510.317763
41-0.054851-0.62780.265615
420.0199920.22880.409685
430.0465570.53290.297512
44-0.058241-0.66660.253101
45-0.027105-0.31020.378438
460.0064750.07410.470518
470.0132650.15180.439778
48-0.03344-0.38270.351265
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/03/t12466134506wxgyjt332a4im1/1sqbp1246613394.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/03/t12466134506wxgyjt332a4im1/1sqbp1246613394.ps (open in new window)


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