Home » date » 2010 » Aug » 19 »

Tijdreeks A - Stap 20

*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 09:35:18 +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/t1282210489yzjg65wzp956jft.htm/, Retrieved Thu, 19 Aug 2010 11:34:51 +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/t1282210489yzjg65wzp956jft.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 «
239 238 237 235 255 254 239 229 230 230 231 233 239 236 231 235 253 257 236 226 226 221 217 219 225 226 225 229 242 252 233 232 225 218 209 211 220 225 215 222 238 246 226 230 222 214 208 203 208 212 199 200 223 225 203 207 195 198 193 189 184 188 180 186 215 212 191 190 180 190 189 181 174 179 165 185 211 209 183 178 170 182 195 188 175 176 162 193 211 207 179 176 167 175 190 173 159 159 147 181 196 199 171 170 156 164 178 155 138 142 113 148 156 158 141 139 119 120 125 102
 
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.8876389.72360
20.7902458.65670
30.7230127.92020
40.6878267.53480
50.6791127.43930
60.6710397.35090
70.6318166.92120
80.5977176.54770
90.5763566.31370
100.5580286.11290
110.599276.56470
120.6255726.85280
130.5446385.96620
140.4801975.26030
150.4352894.76843e-06
160.408154.47119e-06
170.3989184.36991.3e-05
180.385494.22282.4e-05
190.3616533.96176.3e-05
200.3510983.84619.7e-05
210.34293.75630.000134
220.3341433.66040.000188
230.3706124.05984.4e-05
240.3910044.28321.9e-05
250.3309093.62490.000213
260.2859743.13270.001088
270.253322.7750.003203
280.2280972.49870.006909
290.2115042.31690.011102
300.1902472.08410.019639
310.1674031.83380.03458
320.1697761.85980.032681
330.1668861.82810.035006
340.1592721.74470.041796
350.1924092.10770.018567
360.2059422.2560.012941
370.1626781.7820.038635
380.1291441.41470.079873
390.1085771.18940.118314
400.0812810.89040.18752
410.0571340.62590.266295
420.0285420.31270.377541
430.0067570.0740.470561
440.0136140.14910.440848
450.0046690.05110.479649
46-0.005734-0.06280.475012
470.0128660.14090.444076
480.010590.1160.453919


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8876389.72360
20.0110490.1210.451932
30.0919651.00740.157878
40.1298841.42280.078694
50.1455991.5950.056676
60.0649520.71150.239073
7-0.083171-0.91110.182037
80.0408760.44780.327564
90.0529410.57990.281522
100.0029170.0320.487282
110.2901233.17810.000943
120.0348150.38140.351797
13-0.437149-4.78872e-06
140.0479330.52510.300249
150.0532260.58310.280473
16-0.06676-0.73130.233003
17-0.050944-0.55810.288919
180.0230290.25230.400633
190.0779780.85420.197347
200.0176820.19370.423372
210.0597670.65470.256953
220.0266830.29230.38528
230.0167840.18390.427215
240.0685340.75080.227135
25-0.173253-1.89790.030056
26-0.017349-0.19010.424794
270.022430.24570.403164
28-0.086698-0.94970.17208
29-0.059672-0.65370.257285
30-0.002787-0.03050.48785
310.019880.21780.413989
320.051760.5670.285887
330.0100010.10960.456474
340.012980.14220.443584
350.0332860.36460.358017
360.0291790.31960.3749
37-0.047304-0.51820.302641
38-0.058517-0.6410.261366
390.0448990.49180.311866
40-0.101672-1.11380.133803
41-0.087435-0.95780.170044
420.0239030.26180.396944
43-0.019658-0.21530.414933
44-0.003038-0.03330.486751
45-0.034077-0.37330.354792
460.0207680.22750.410209
47-0.017115-0.18750.425798
48-0.049517-0.54240.294265
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282210489yzjg65wzp956jft/1b5jo1282210514.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282210489yzjg65wzp956jft/1b5jo1282210514.ps (open in new window)


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