Home » date » 2010 » Jul » 24 »

Tijdreeks 1 - Stap 21

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 24 Jul 2010 16:10:16 +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/Jul/24/t1279987812c1lh1cfmxll3uk9.htm/, Retrieved Sat, 24 Jul 2010 18:10:14 +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/Jul/24/t1279987812c1lh1cfmxll3uk9.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:
Habimana Christelle
 
Dataseries X:
» Textbox « » Textfile « » CSV «
900 899 898 896 916 915 900 890 891 891 892 894 896 889 878 883 901 897 881 866 867 866 862 871 865 856 847 859 870 872 856 839 829 825 822 827 822 812 810 816 820 823 810 793 777 772 765 765 753 742 736 740 742 742 728 707 699 696 689 692 673 653 642 648 654 653 630 609 598 601 592 591 568 538 523 530 529 534 513 491 480 478 462 461 437 411 400 405 395 407 385 366 349 343 332 327 306 276 269 268 260 274 247 226 212 199 188 179 155 124 117 116 105 112 86 64 53 42 32 24
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.97064610.08720
20.9433739.80380
30.9191289.55190
40.8918419.26830
50.8641548.98060
60.8371148.69950
70.8094198.41170
80.7843078.15080
90.7582087.87950
100.7327467.61490
110.7092447.37070
120.6816517.08390
130.6569846.82760
140.6338496.58720
150.6087916.32670
160.5814276.04240
170.5552255.77010
180.528335.49060
190.501755.21430
200.474994.93621e-06
210.4503644.68034e-06
220.4267064.43451.1e-05
230.4001824.15883.2e-05
240.3759083.90658.2e-05
250.3517473.65550.000199
260.3290783.41990.000443
270.3003473.12130.001155
280.272912.83620.002726
290.2499172.59720.005354
300.2243992.3320.010777
310.1973432.05090.021351
320.1672361.7380.042534
330.1414221.46970.072275
340.1150861.1960.117157
350.0880470.9150.181111
360.0614320.63840.262277
370.0371460.3860.350117
380.0126580.13150.447795
39-0.008609-0.08950.464438
40-0.028222-0.29330.38493
41-0.048113-0.50.309045
42-0.067992-0.70660.240669
43-0.089407-0.92910.177444
44-0.110355-1.14680.126991
45-0.132937-1.38150.084986
46-0.156007-1.62130.053938
47-0.177603-1.84570.033837
48-0.198618-2.06410.020702


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97064610.08720
20.0210820.21910.413495
30.0395580.41110.340908
4-0.061627-0.64040.261619
5-0.022179-0.23050.409074
6-0.009267-0.09630.46173
7-0.02381-0.24740.402518
80.0305210.31720.375857
9-0.030013-0.31190.377858
100.0005570.00580.497698
110.0144840.15050.440316
12-0.081163-0.84350.200414
130.0336460.34970.363637
140.0035050.03640.485503
15-0.033177-0.34480.365462
16-0.059593-0.61930.268507
17-0.00596-0.06190.475361
18-0.025418-0.26420.396083
19-0.013895-0.14440.442726
20-0.016104-0.16740.433701
210.02030.2110.416656
22-0.002781-0.02890.488499
23-0.058332-0.60620.272827
240.0132830.1380.445234
25-0.02453-0.25490.399634
260.0203330.21130.416522
27-0.122341-1.27140.103157
28-0.007227-0.07510.470135
290.0500390.520.302057
30-0.052945-0.55020.291651
31-0.034626-0.35980.359834
32-0.099176-1.03070.152501
330.0577930.60060.274681
34-0.031798-0.33050.370848
35-0.032017-0.33270.36999
36-0.019748-0.20520.418888
370.0045180.0470.481319
38-0.000217-0.00230.499104
390.0150990.15690.437804
400.0039080.04060.483842
41-0.010552-0.10970.456441
42-0.013749-0.14290.443322
43-0.059663-0.620.268268
44-0.02773-0.28820.386881
45-0.045639-0.47430.318123
46-0.02399-0.24930.401795
47-0.004646-0.04830.480792
48-0.030519-0.31720.375865
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/24/t1279987812c1lh1cfmxll3uk9/1vlpj1279987810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/24/t1279987812c1lh1cfmxll3uk9/1vlpj1279987810.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/24/t1279987812c1lh1cfmxll3uk9/2vlpj1279987810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/24/t1279987812c1lh1cfmxll3uk9/2vlpj1279987810.ps (open in new window)


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