Home » date » 2010 » Aug » 16 »

TIJDREEKS B - STAP 17

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 16 Aug 2010 19:04:51 +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/Aug/16/t12819855158j4ai7nega788u9.htm/, Retrieved Mon, 16 Aug 2010 21:05:15 +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/Aug/16/t12819855158j4ai7nega788u9.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:
De Cock Nicola
 
Dataseries X:
» Textbox « » Textfile « » CSV «
76 75 74 72 70 69 70 72 73 73 74 76 74 67 66 58 55 58 64 68 66 76 75 88 85 83 77 66 65 65 63 62 57 68 69 79 74 76 82 75 75 76 78 77 67 74 68 87 76 88 95 96 96 105 108 113 101 107 102 116 105 121 134 140 131 141 131 128 123 129 125 144 135 141 156 159 146 154 145 133 126 127 122 148
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9415338.62930
20.9199648.43160
30.8772358.040
40.8433747.72960
50.7953047.28910
60.7620846.98460
70.7166076.56780
80.697486.39250
90.6628396.0750
100.6344455.81480
110.6015385.51320
120.5951275.45440
130.5338184.89252e-06
140.4992694.57598e-06
150.4463874.09124.9e-05
160.4045613.70790.000187
170.3448993.1610.001093
180.3000262.74980.00365
190.2457382.25220.013458
200.2109691.93360.028267
210.1628941.4930.069598
220.1251131.14670.127384
230.0849320.77840.219256
240.0787760.7220.236151
250.0364720.33430.369503
260.0189190.17340.431378
27-0.012555-0.11510.454331
28-0.03364-0.30830.379303
29-0.075707-0.69390.244842
30-0.109492-1.00350.159249
31-0.147094-1.34810.090619
32-0.173552-1.59060.057725
33-0.202044-1.85180.033786
34-0.224054-2.05350.021568
35-0.244035-2.23660.013981
36-0.238963-2.19010.015643
37-0.259487-2.37820.009832
38-0.256877-2.35430.010445
39-0.263235-2.41260.009008
40-0.263488-2.41490.008955
41-0.279248-2.55930.006139
42-0.296288-2.71550.004016
43-0.314342-2.8810.002515
44-0.329115-3.01640.001692
45-0.34336-3.14690.001142
46-0.357948-3.28060.000755
47-0.366326-3.35740.000592
48-0.359716-3.29690.000717


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9415338.62930
20.2949392.70320.004155
3-0.107745-0.98750.163117
4-0.024737-0.22670.410598
5-0.116804-1.07050.143725
60.046510.42630.3355
7-0.052375-0.480.31623
80.1669421.530.064881
9-0.019146-0.17550.430565
10-0.067376-0.61750.269284
11-0.033062-0.3030.381312
120.1963921.80.037729
13-0.407679-3.73640.00017
14-0.069745-0.63920.262207
15-0.002815-0.02580.48974
16-0.022214-0.20360.419583
17-0.132547-1.21480.11392
180.0181120.1660.434278
190.0448230.41080.341129
20-0.068573-0.62850.265697
21-0.05628-0.51580.30367
220.0401440.36790.356927
23-0.011559-0.10590.457941
240.1472681.34970.090363
25-0.036131-0.33110.370678
26-0.00155-0.01420.494349
27-0.021838-0.20010.420924
28-0.044979-0.41220.340608
29-0.108328-0.99280.16182
30-0.096836-0.88750.188668
310.0873660.80070.212775
32-0.043203-0.3960.346567
330.058950.54030.295215
340.0417530.38270.351463
350.0381450.34960.363755
36-0.030858-0.28280.389005
37-0.065583-0.60110.274702
380.0483230.44290.329493
390.005460.050.480104
40-0.08925-0.8180.207838
41-0.005566-0.0510.479717
42-0.103459-0.94820.172869
43-0.008127-0.07450.470399
44-0.061868-0.5670.286104
450.044150.40460.343385
46-0.020809-0.19070.424603
470.0260590.23880.405908
480.0063570.05830.47684
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819855158j4ai7nega788u9/1o55y1281985488.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819855158j4ai7nega788u9/1o55y1281985488.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t12819855158j4ai7nega788u9/2o55y1281985488.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819855158j4ai7nega788u9/2o55y1281985488.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