Home » date » 2009 » Jun » 02 »

Ben Eysackers, opgave 6 bis, oef 2, deel 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: Tue, 02 Jun 2009 12:57:00 -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/02/t12439691458uu61ohoaqn6wnk.htm/, Retrieved Tue, 02 Jun 2009 20:59:07 +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/02/t12439691458uu61ohoaqn6wnk.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 «
-46 -33 -34 -25 -33 -18 -26 -21 -23 -24 -26 -32 -47 -45 -47 -43 -48 -48 -43 -44 -46 -36 -32 -18 -31 -37 -32 -29 -29 -40 -26 -29 -19 -30 -12 -24 -40 -43 -49 -49 -48 -33 -46 -46 -43 -44 -38 -38 -39 -47 -41 -36 -38 -11 -24 -30 -18 -21 -22 -15 -15 -16 -26 -39 -28 -25 -25 -13 -20 -13 -10 -19 -31 -36 -26 -33 -42 -44 -45 -42 -60 -42 -63 -71
 
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.6731816.16980
20.5450954.99592e-06
30.441644.04775.7e-05
40.2979932.73120.003845
50.1902961.74410.042401
60.0984030.90190.18485
70.0358130.32820.371776
8-0.067275-0.61660.269588
9-0.118423-1.08540.140432
10-0.161359-1.47890.071457
11-0.183326-1.68020.048316
12-0.201051-1.84270.034453
13-0.236215-2.16490.016614
14-0.229799-2.10610.019088
15-0.288703-2.6460.004861
16-0.271521-2.48850.007401
17-0.235146-2.15510.017006
18-0.218617-2.00370.024165
19-0.194454-1.78220.039165
20-0.196549-1.80140.037614
21-0.210518-1.92940.028527
22-0.217014-1.9890.02498
23-0.145053-1.32940.093652
24-0.086805-0.79560.214259
250.0055930.05130.479618
260.0027770.02540.489878
27-0.009319-0.08540.466069
280.0011030.01010.495979
29-0.025892-0.23730.406499
30-0.006179-0.05660.477488
310.0406590.37260.355175
320.0302610.27730.391099
330.0949070.86980.193433
340.0842160.77190.221183
350.0954710.8750.192032
360.1090770.99970.160161
370.1058430.97010.167399
380.1070150.98080.164751
390.0385070.35290.362516
400.0226650.20770.417971
41-0.048987-0.4490.327302
42-0.041527-0.38060.35223
430.0118020.10820.457059
44-0.000298-0.00270.498913
45-0.040318-0.36950.356334
46-0.056971-0.52220.30147
47-0.059997-0.54990.291929
48-0.118274-1.0840.140733


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6731816.16980
20.1681021.54070.063577
30.0436860.40040.344944
4-0.101429-0.92960.177618
5-0.060348-0.55310.290832
6-0.049837-0.45680.324508
7-0.009774-0.08960.464416
8-0.119451-1.09480.138369
9-0.037133-0.34030.36723
10-0.042709-0.39140.348234
11-0.007651-0.07010.472131
12-0.036822-0.33750.3683
13-0.085751-0.78590.217062
14-0.019842-0.18190.428068
15-0.144223-1.32180.094907
16-0.001957-0.01790.492867
170.0190160.17430.431031
18-0.021679-0.19870.421493
19-0.039303-0.36020.359793
20-0.087261-0.79980.213053
21-0.112158-1.02790.153463
22-0.067903-0.62230.267702
230.0711580.65220.258033
240.0444270.40720.342456
250.1009040.92480.178858
26-0.123095-1.12820.131227
27-0.110591-1.01360.156846
28-0.064663-0.59260.277507
29-0.071341-0.65390.257496
30-0.001314-0.0120.49521
310.0709640.65040.258606
32-0.045995-0.42160.337215
330.1184481.08560.140382
34-0.071485-0.65520.257075
35-0.027683-0.25370.400165
36-0.032941-0.30190.381734
37-0.053957-0.49450.311113
380.0231570.21220.416219
39-0.10852-0.99460.161393
400.0178250.16340.435312
41-0.117049-1.07280.143224
420.000520.00480.498104
430.0954180.87450.192164
44-0.040774-0.37370.354785
45-0.120274-1.10230.136733
460.0091610.0840.466645
47-0.01809-0.16580.434358
48-0.112307-1.02930.153145
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439691458uu61ohoaqn6wnk/1r7rk1243969018.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439691458uu61ohoaqn6wnk/1r7rk1243969018.ps (open in new window)


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