Home » date » 2010 » Aug » 19 »

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: Thu, 19 Aug 2010 12:27:29 +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/19/t1282220857sri81yg4oyb6rpx.htm/, Retrieved Thu, 19 Aug 2010 14:28:56 +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/19/t1282220857sri81yg4oyb6rpx.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:
Quaglia Laura
 
Dataseries X:
» Textbox « » Textfile « » CSV «
93 92 91 89 87 86 87 89 90 90 91 93 93 87 89 92 98 92 92 87 92 98 101 102 102 90 87 92 105 90 88 83 98 109 118 118 115 107 101 111 128 115 111 105 120 132 135 142 139 127 113 130 143 139 137 134 139 157 152 153 147 132 117 123 139 134 134 128 118 144 140 151 144 135 122 124 146 146 147 148 132 161 159 173
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8813558.07770
20.7816337.16380
30.6974336.39210
40.702226.4360
50.7158536.56090
60.7000346.41590
70.6533345.98790
80.5761465.28050
90.5409214.95762e-06
100.5598125.13081e-06
110.5900085.40750
120.624655.7250
130.5366684.91862e-06
140.4380954.01526.4e-05
150.3568653.27070.000778
160.3512253.2190.000914
170.3725983.41490.000492
180.3688583.38060.00055
190.340093.1170.001251
200.2788512.55570.006199
210.2398042.19780.015356
220.2455532.25050.013514
230.2661082.43890.008419
240.2821162.58560.005723
250.2236932.05020.021733
260.1244151.14030.128704
270.0343550.31490.376822
28-0.007713-0.07070.471907
290.0032710.030.488076
30-0.006475-0.05930.476408
31-0.040359-0.36990.356195
32-0.102023-0.93510.17622
33-0.149125-1.36670.087676
34-0.152295-1.39580.083226
35-0.143141-1.31190.096563
36-0.137562-1.26080.10544
37-0.174042-1.59510.05722
38-0.243563-2.23230.014129
39-0.303201-2.77890.003364
40-0.339436-3.1110.001274
41-0.309866-2.840.002829
42-0.303574-2.78230.003332
43-0.310453-2.84530.002786
44-0.355753-3.26050.000804
45-0.375105-3.43790.000457
46-0.371602-3.40580.000507
47-0.357789-3.27920.000758
48-0.343048-3.14410.001152


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8813558.07770
20.0217140.1990.421366
30.019530.1790.429186
40.35943.2940.000724
50.1210241.10920.135254
6-0.060853-0.55770.289258
7-0.007809-0.07160.471558
8-0.142311-1.30430.097846
90.0590260.5410.294976
100.2049811.87870.031878
110.0358980.3290.371485
120.1923141.76260.040804
13-0.404349-3.70590.000188
14-0.197415-1.80930.036988
15-0.001409-0.01290.494864
16-0.051549-0.47250.318914
170.1123611.02980.153028
180.082950.76020.224617
190.0490350.44940.327146
200.0322420.29550.38417
21-0.126325-1.15780.125116
22-0.030867-0.28290.388975
23-0.005138-0.04710.481276
24-0.047085-0.43150.333591
250.0173690.15920.436952
26-0.183521-1.6820.048142
27-0.117418-1.07620.14247
28-0.133599-1.22450.112102
29-0.039509-0.36210.359091
300.0002010.00180.499267
31-0.020896-0.19150.424292
320.0564750.51760.303049
330.0177180.16240.435694
34-0.023522-0.21560.414918
35-0.053943-0.49440.311159
36-0.085117-0.78010.218759
370.0389240.35670.361088
380.0265420.24330.4042
390.0181970.16680.433971
40-0.027366-0.25080.401285
410.0398210.3650.358026
42-0.112297-1.02920.153165
43-0.03434-0.31470.376875
44-0.068099-0.62410.267114
450.1063230.97450.166312
460.0089210.08180.467515
47-0.039849-0.36520.357932
480.0484860.44440.328956
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282220857sri81yg4oyb6rpx/1294d1282220846.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282220857sri81yg4oyb6rpx/1294d1282220846.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282220857sri81yg4oyb6rpx/2294d1282220846.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282220857sri81yg4oyb6rpx/2294d1282220846.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