Home » date » 2010 » Aug » 06 »

Tijdsreeks 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: Fri, 06 Aug 2010 11:49:45 +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/06/t1281095369el3ei6fmd48vvzb.htm/, Retrieved Fri, 06 Aug 2010 13:49:31 +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/06/t1281095369el3ei6fmd48vvzb.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:
Gosselin Claudia
 
Dataseries X:
» Textbox « » Textfile « » CSV «
155 154 153 151 171 170 155 145 146 146 147 149 146 155 149 140 155 152 137 127 134 125 132 141 133 143 141 132 144 140 130 122 124 119 128 131 121 123 116 109 116 109 103 98 95 83 92 94 76 75 77 68 80 66 69 67 68 64 72 70 55 55 54 55 67 54 57 53 49 47 64 58 38 41 38 41 60 49 53 55 56 52 68 68 41 46 41 47 62 48 53 61 59 46 69 69 42 42 42 50 64 47 51 66 64 49 71 68 39 30 22 33 46 24 27 45 38 18 36 31
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.215645-2.35240.010147
2-0.358829-3.91447.6e-05
30.2144912.33980.010479
4-0.075865-0.82760.204781
5-0.085278-0.93030.177056
60.1673451.82550.035215
7-0.106078-1.15720.12476
8-0.081215-0.8860.188715
90.2640912.88090.002352
10-0.337512-3.68180.000175
11-0.193377-2.10950.018499
120.7741558.4450
13-0.202812-2.21240.014423
14-0.243653-2.65790.004471
150.130361.42210.078812
16-0.105338-1.14910.126409
17-0.031944-0.34850.364052
180.1900132.07280.020175
19-0.124285-1.35580.088866
20-0.101822-1.11070.134459
210.2399972.61810.004996
22-0.259695-2.83290.002709
23-0.149112-1.62660.053232
240.5899876.4360
25-0.204392-2.22970.013823
26-0.140226-1.52970.064374
270.0843720.92040.179615
28-0.132765-1.44830.075082
290.0068880.07510.470114
300.2092772.28290.012104
31-0.115846-1.26370.104399
32-0.126869-1.3840.084478
330.1850462.01860.022888
34-0.200031-2.18210.015534
35-0.1024-1.11710.133112
360.4101784.47459e-06
37-0.195364-2.13120.017566
38-0.070292-0.76680.22236
390.0577570.63010.264934
40-0.130397-1.42250.078755
410.0354260.38650.349925
420.2042292.22790.013884
43-0.126049-1.3750.085852
44-0.096134-1.04870.148222
450.1482771.61750.054207
46-0.159074-1.73530.042639
47-0.067796-0.73960.230509
480.3140053.42540.000422
49-0.211323-2.30530.011442
50-0.015911-0.17360.431251
510.0458290.49990.309023
52-0.12086-1.31840.094946
530.0673120.73430.232108
540.1778291.93990.02738
55-0.127769-1.39380.082989
56-0.063501-0.69270.244921
570.1202541.31180.096053
58-0.149921-1.63540.052299
59-0.008562-0.09340.46287
600.2354572.56850.005725


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.215645-2.35240.010147
2-0.4251-4.63735e-06
30.0160610.17520.430606
4-0.203224-2.21690.014265
5-0.079286-0.86490.194416
60.0292660.31930.375047
7-0.102971-1.12330.13179
8-0.069712-0.76050.224238
90.166581.81720.035854
10-0.342089-3.73170.000146
11-0.293172-3.19810.000886
120.6186176.74830
13-0.015682-0.17110.432231
140.2336872.54920.006034
15-0.123441-1.34660.090337
16-0.040955-0.44680.327929
170.0018540.02020.491949
180.0258340.28180.389285
190.0390820.42630.335319
20-0.053633-0.58510.279805
21-0.133393-1.45510.074131
220.079140.86330.194849
23-0.034901-0.38070.352042
240.077750.84820.199028
25-0.074444-0.81210.20918
260.0153250.16720.433759
27-0.026289-0.28680.387392
28-0.027212-0.29690.383549
290.0305150.33290.369904
300.0220190.24020.405294
310.0192060.20950.417202
32-0.028232-0.3080.379319
33-0.091361-0.99660.160483
34-0.007315-0.07980.468266
35-0.067593-0.73740.231179
36-0.127479-1.39060.083467
37-0.039912-0.43540.332035
38-0.135227-1.47510.071407
39-0.016992-0.18540.426633
40-0.049488-0.53990.295153
410.0227450.24810.402234
42-0.001777-0.01940.492282
43-0.103284-1.12670.13107
440.0721380.78690.216443
45-0.001243-0.01360.494602
460.027470.29970.382477
47-0.019358-0.21120.416559
480.0030810.03360.486622
49-0.105496-1.15080.126056
500.0145170.15840.43722
51-0.077523-0.84570.199717
520.021220.23150.40867
53-0.042356-0.46210.322444
54-0.008274-0.09030.464117
55-0.017137-0.18690.426014
560.0198250.21630.414577
570.0031450.03430.486344
58-0.017052-0.1860.426375
590.0560390.61130.271078
60-0.03065-0.33440.36935
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095369el3ei6fmd48vvzb/1me7f1281095384.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095369el3ei6fmd48vvzb/1me7f1281095384.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095369el3ei6fmd48vvzb/2me7f1281095384.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095369el3ei6fmd48vvzb/2me7f1281095384.ps (open in new window)


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