Home » date » 2010 » May » 05 »

Opgave 6 Bis oef2 Trang Huynh Tuyet

*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, 05 May 2010 21:57:04 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/05/t1273096732v34x4ynv6wpwor8.htm/, Retrieved Wed, 05 May 2010 23:58:55 +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/2010/May/05/t1273096732v34x4ynv6wpwor8.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
93.2 96 95.2 77.1 70.9 64.8 70.1 77.3 79.5 100.6 100.7 107.1 95.9 82.8 83.3 80 80.4 67.5 75.7 71.1 89.3 101.1 105.2 114.1 96.3 84.4 91.2 81.9 80.5 70.4 74.8 75.9 86.3 98.7 100.9 113.8 89.8 84.4 87.2 85.6 72 69.2 77.5 78.1 94.3 97.7 100.2 116.4 97.1 93 96 80.5 76.1 69.9 73.6 92.6 94.2 93.5 108.5 109.4 105.1 92.5 97.1 81.4 79.1 72.1 78.7 87.1 91.4 109.9 116.3 113 100 84.8 94.3 87.1 90.3 72.4 84.9 92.7 92.2 114.9 112.5 118.3 106 91.2 96.6 96.3 88.2 70.2 86.5 88.2 102.8 119.1 119.2 125.1
 
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.7019096.87730
20.3927923.84860.000107
30.024510.24010.405365
4-0.293312-2.87390.002496
5-0.450222-4.41131.3e-05
6-0.556502-5.45260
7-0.409232-4.00966e-05
8-0.212241-2.07950.020117
90.0863310.84590.199866
100.3506213.43540.000438
110.6245736.11950
120.7616357.46250
130.5468345.35790
140.3127813.06460.001415
15-0.020785-0.20360.419531
16-0.262753-2.57440.005784
17-0.439293-4.30422e-05
18-0.535359-5.24540
19-0.394257-3.86290.000102
20-0.203033-1.98930.024756
210.0703240.6890.246233
220.2920232.86120.00259
230.5228445.12281e-06
240.6099715.97650
250.4542594.45081.2e-05
260.2302772.25620.013162
27-0.045673-0.44750.327759
28-0.267776-2.62370.00506
29-0.421768-4.13253.8e-05
30-0.491654-4.81723e-06
31-0.353293-3.46150.000402
32-0.14008-1.37250.086553
330.060270.59050.278115
340.263392.58070.005687
350.4179014.09464.4e-05
360.4640064.54638e-06
370.3561973.490.000366
380.1362051.33450.092593
39-0.07048-0.69060.245753
40-0.256187-2.51010.006871
41-0.38829-3.80440.000125
42-0.432278-4.23542.6e-05
43-0.312962-3.06640.001407
44-0.159897-1.56670.060241
450.0108780.10660.457671
460.2089962.04770.021659
470.3082743.02050.001617
480.383733.75980.000146


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7019096.87730
2-0.196884-1.92910.028338
3-0.34303-3.3610.000558
4-0.249451-2.44410.008173
5-0.043072-0.4220.336977
6-0.249092-2.44060.008248
70.1640511.60740.05563
80.0057420.05630.477626
90.189331.8550.03333
100.106171.04030.150418
110.4742624.64685e-06
120.2652252.59870.005417
13-0.263873-2.58540.005615
140.1124451.10170.136667
150.10741.05230.147652
160.0100170.09810.461012
17-0.094041-0.92140.179573
18-0.075167-0.73650.231617
190.0163440.16010.436555
20-0.045406-0.44490.328703
21-0.024292-0.2380.406188
22-0.072469-0.710.239698
230.0111020.10880.456803
240.0688330.67440.25083
25-0.050031-0.49020.312556
26-0.098327-0.96340.168883
270.1029931.00910.157726
28-0.093361-0.91470.181307
290.0893850.87580.191664
30-0.059093-0.5790.281977
310.0873070.85540.197222
320.0579910.56820.285614
33-0.141353-1.3850.084636
340.0652690.63950.26201
35-0.064265-0.62970.265204
36-0.043252-0.42380.336336
370.0693290.67930.249295
38-0.143175-1.40280.081947
390.0694270.68020.248993
40-0.038603-0.37820.353047
41-0.025299-0.24790.402379
420.0146380.14340.44313
43-0.090639-0.88810.18836
44-0.11942-1.17010.122434
450.0291160.28530.388024
460.0601420.58930.278533
47-0.089721-0.87910.190776
48-0.036342-0.35610.361282
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273096732v34x4ynv6wpwor8/1f32i1273096622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273096732v34x4ynv6wpwor8/1f32i1273096622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273096732v34x4ynv6wpwor8/2f32i1273096622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273096732v34x4ynv6wpwor8/2f32i1273096622.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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