Home » date » 2010 » May » 06 »

Opgave 6 Bis Oef2 Deel 2 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 22:00:52 +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/06/t1273096950uczqik2te641yyq.htm/, Retrieved Thu, 06 May 2010 00:02:30 +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/06/t1273096950uczqik2te641yyq.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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0389850.380.352405
20.1104531.07660.142202
3-0.036737-0.35810.360544
4-0.251567-2.4520.008017
5-0.088487-0.86250.195301
6-0.4213-4.10634.3e-05
7-0.155357-1.51420.066644
8-0.218381-2.12850.017941
90.0584870.57010.284992
100.0001650.00160.499361
110.205191.99990.024181
120.6190936.03420
130.0572530.5580.289066
140.1769321.72450.043934
15-0.095311-0.9290.177628
16-0.124816-1.21660.113393
17-0.122407-1.19310.117905
18-0.404024-3.93797.8e-05
19-0.153541-1.49650.068914
20-0.14724-1.43510.077269
210.0699550.68180.248499
220.014230.13870.444992
230.2163232.10850.018811
240.4142064.03725.5e-05
250.1180771.15090.126336
260.1162741.13330.129971
27-0.037412-0.36460.358093
28-0.113314-1.10440.136094
29-0.127655-1.24420.108238
30-0.368942-3.5960.000257
31-0.164228-1.60070.056382
320.0138650.13510.446395
33-0.060811-0.59270.277392
340.1057951.03120.152542
350.1577671.53770.06372
360.2780242.70980.003993
370.2130062.07610.020292
380.0240410.23430.407619
39-0.041967-0.4090.341714
40-0.093066-0.90710.183327
41-0.101318-0.98750.162946
42-0.295362-2.87880.002466
43-0.084464-0.82320.206214
44-0.051527-0.50220.308337
45-0.104255-1.01620.156069
460.1942221.8930.030698
470.0273680.26670.395122
480.3273153.19030.000963


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0389850.380.352405
20.1090991.06340.145157
3-0.045435-0.44280.329441
4-0.264648-2.57950.005714
5-0.067945-0.66220.254709
6-0.389622-3.79760.000129
7-0.198711-1.93680.027871
8-0.317431-3.09390.001297
9-0.080971-0.78920.215977
10-0.354638-3.45660.00041
11-0.089767-0.87490.191908
120.4377164.26632.3e-05
130.0049140.04790.480951
14-0.041105-0.40060.344793
150.0263230.25660.399035
160.0693120.67560.250479
17-0.032555-0.31730.375852
18-0.106768-1.04060.15034
190.0088970.08670.465539
200.0370260.36090.359494
21-0.004022-0.03920.484406
220.0043770.04270.483031
23-0.018163-0.1770.429932
240.0293080.28570.387882
250.0238630.23260.40829
26-0.08552-0.83350.203313
270.1153161.1240.131931
28-0.057261-0.55810.289039
290.0249820.24350.404076
30-0.071556-0.69740.243616
31-0.00272-0.02650.489453
320.2013451.96250.026317
33-0.173446-1.69050.047101
340.0555020.5410.294898
350.037470.36520.357883
36-0.074437-0.72550.234958
370.0906550.88360.189573
38-0.036646-0.35720.360874
39-0.073455-0.71590.23789
400.0051930.05060.479869
410.0349170.34030.367182
420.1134951.10620.135715
430.0034530.03370.48661
44-0.073045-0.7120.23912
45-0.067117-0.65420.257288
460.0626750.61090.271369
47-0.032039-0.31230.377758
480.010380.10120.459815
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/06/t1273096950uczqik2te641yyq/15rn81273096849.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/06/t1273096950uczqik2te641yyq/15rn81273096849.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/06/t1273096950uczqik2te641yyq/25rn81273096849.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/06/t1273096950uczqik2te641yyq/25rn81273096849.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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