Home » date » 2010 » Aug » 03 »

TIJDREEKS A - 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: Tue, 03 Aug 2010 13:41:10 +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/03/t1280842855bd9q8zrvm3a1upp.htm/, Retrieved Tue, 03 Aug 2010 15:40:57 +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/03/t1280842855bd9q8zrvm3a1upp.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:
Lisa Bruggeman
 
Dataseries X:
» Textbox « » Textfile « » CSV «
95 94 93 91 111 110 95 85 86 86 87 89 93 96 99 92 109 110 97 88 93 93 89 89 91 97 99 85 101 105 88 80 87 84 87 87 85 96 102 93 111 117 101 88 98 89 93 93 95 105 109 94 113 125 106 95 109 100 94 94 94 103 103 80 106 117 99 95 116 118 100 100 105 121 131 108 136 149 131 137 164 169 154 160 166 186 197 166 191 207 187 191 222 230 210 224 234 251 258 227 254 281 261 264 286 293 276 292 299 319 329 293 318 346 327 329 353 355 332 346
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.188734-2.05880.020846
2-0.561982-6.13050
30.3220273.51290.000314
40.2774533.02670.001516
5-0.126388-1.37870.085281
6-0.125732-1.37160.086388
7-0.052404-0.57170.284314
80.212412.31710.011103
90.2783253.03620.001472
10-0.469875-5.12571e-06
11-0.197744-2.15710.016503
120.8403469.16710
13-0.147297-1.60680.055372
14-0.515776-5.62640
150.2793883.04780.00142
160.2743662.9930.00168
17-0.123205-1.3440.090752
18-0.122917-1.34090.091259
19-0.064715-0.7060.240799
200.1717831.87390.031697
210.2451372.67410.004273
22-0.393906-4.2971.8e-05
23-0.192535-2.10030.018907
240.6907837.53560
25-0.119328-1.30170.097765
26-0.475269-5.18460
270.2532742.76290.00332
280.2521012.75010.003444
29-0.142758-1.55730.061027
30-0.104281-1.13760.128792
31-0.045254-0.49370.311228
320.1159891.26530.104119
330.192192.09650.019076
34-0.310136-3.38320.000485
35-0.170911-1.86440.032364
360.5383265.87240
37-0.08267-0.90180.184488
38-0.413167-4.50718e-06
390.1990642.17150.015938
400.2167372.36430.009841
41-0.142922-1.55910.060815
42-0.098879-1.07860.141465
43-0.028906-0.31530.376533
440.0922091.00590.158256
450.1463321.59630.056538
46-0.259233-2.82790.00275
47-0.153757-1.67730.048055
480.4121954.49658e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.188734-2.05880.020846
2-0.619676-6.75990
30.0560250.61120.271128
40.0619140.67540.250366
50.3125463.40950.000445
60.1163431.26920.103431
7-0.160625-1.75220.041157
80.0281120.30670.379819
90.399274.35551.4e-05
10-0.198289-2.16310.016268
11-0.234466-2.55770.005896
120.6258746.82750
130.0072370.07890.468603
140.3251333.54680.000279
15-0.131282-1.43210.077366
16-0.040901-0.44620.328138
170.0523820.57140.284397
18-0.015144-0.16520.434535
19-0.156168-1.70360.045534
20-0.04465-0.48710.313551
21-0.181342-1.97820.025108
220.0816010.89020.187587
230.0361050.39390.347195
24-0.04263-0.4650.321376
25-0.025227-0.27520.391823
26-0.098368-1.07310.142707
270.0695930.75920.224628
280.0109570.11950.452529
29-0.074092-0.80830.210279
30-0.01825-0.19910.42127
310.0253620.27670.391259
32-0.041194-0.44940.326991
33-0.008138-0.08880.464705
34-0.051998-0.56720.285813
350.0505140.5510.291318
36-0.042222-0.46060.322966
370.0638850.69690.243611
38-0.023181-0.25290.400401
39-0.062503-0.68180.248338
40-0.035381-0.3860.350106
41-0.039789-0.43410.332518
42-0.068539-0.74770.228067
430.0066840.07290.470997
44-0.011438-0.12480.450455
450.0412340.44980.326832
460.0103030.11240.45535
47-0.062199-0.67850.249383
48-0.062783-0.68490.247376
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/03/t1280842855bd9q8zrvm3a1upp/1hma21280842867.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/03/t1280842855bd9q8zrvm3a1upp/1hma21280842867.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/03/t1280842855bd9q8zrvm3a1upp/2hma21280842867.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/03/t1280842855bd9q8zrvm3a1upp/2hma21280842867.ps (open in new window)


 
Parameters (Session):
 
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