Home » date » 2010 » Aug » 06 »

Tijdsreeks 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: Fri, 06 Aug 2010 11:46:14 +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/t1281095154c1wqflr1wpivagp.htm/, Retrieved Fri, 06 Aug 2010 13:45:59 +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/t1281095154c1wqflr1wpivagp.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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.95177110.42610
20.91746510.05030
30.8998639.85750
40.8744589.57920
50.8482889.29250
60.8223719.00860
70.7898398.65230
80.7718398.45510
90.7545758.2660
100.7181077.86650
110.7029297.70020
120.7003557.6720
130.6591067.22010
140.6274016.87280
150.6062176.64080
160.5833996.39080
170.5620656.15710
180.5393165.90790
190.5084825.57010
200.492145.39110
210.4756735.21070
220.445224.87712e-06
230.4275464.68354e-06
240.4153294.54976e-06
250.3765954.12543.4e-05
260.3464213.79490.000117
270.3189983.49440.000333
280.2921553.20040.000878
290.2693742.95080.001906
300.2449172.68290.004164
310.2093432.29320.011787
320.1863222.04110.02172
330.1660091.81850.035738
340.134181.46990.072107
350.1121311.22830.110864
360.0934081.02320.154128
370.0595830.65270.257598
380.036380.39850.345476
390.015170.16620.434148
40-0.006707-0.07350.470776
41-0.023757-0.26020.397559
42-0.041651-0.45630.324513
43-0.071322-0.78130.218086
44-0.089492-0.98030.164447
45-0.106133-1.16260.123643
46-0.128992-1.4130.080117
47-0.144936-1.58770.057494
48-0.158706-1.73850.042341
49-0.180871-1.98130.024919
50-0.188854-2.06880.020357
51-0.201141-2.20340.014738
52-0.213132-2.33470.010609
53-0.221129-2.42240.008458
54-0.227976-2.49740.006934
55-0.247535-2.71160.00384
56-0.255835-2.80250.002957
57-0.263973-2.89170.002275
58-0.278615-3.05210.001399
59-0.286964-3.14350.001052
60-0.294522-3.22630.000808


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.95177110.42610
20.1231871.34940.089867
30.1830522.00520.023594
4-0.036823-0.40340.343694
5-0.004251-0.04660.481469
6-0.031908-0.34950.36365
7-0.088823-0.9730.166253
80.1187121.30040.097974
90.0193370.21180.416301
10-0.161627-1.77050.039589
110.1642611.79940.037235
120.1330481.45750.0738
13-0.345438-3.78410.000121
140.0116860.1280.449175
150.0419020.4590.323526
160.0221820.2430.404212
17-0.036202-0.39660.346195
180.0291690.31950.374939
19-0.012369-0.13550.446222
20-0.024025-0.26320.396433
21-0.015978-0.1750.430677
220.0265980.29140.385636
23-0.016094-0.17630.430177
24-0.038963-0.42680.33514
25-0.149458-1.63720.052101
260.010340.11330.455003
27-0.054264-0.59440.27667
280.0032820.0360.485688
290.004770.05230.479207
300.0175320.19210.424013
31-0.083405-0.91370.181364
32-0.033194-0.36360.35839
330.0238890.26170.397006
34-0.029012-0.31780.375588
35-0.032346-0.35430.361856
360.000530.00580.497691
37-0.037821-0.41430.339692
380.012940.14180.443755
390.0049380.05410.478476
400.012940.14170.443758
41-0.017378-0.19040.42467
42-0.019565-0.21430.415328
43-0.05377-0.5890.278478
44-0.012248-0.13420.446745
45-0.018079-0.1980.421673
460.0106970.11720.453457
47-0.012329-0.13510.446395
480.0181390.19870.421417
490.0052860.05790.476959
500.0738940.80950.209924
51-0.051604-0.56530.286466
520.0246470.270.393813
53-0.02733-0.29940.38258
540.0146880.16090.43622
55-0.075207-0.82380.20583
560.0264620.28990.386205
57-3.1e-05-3e-040.499867
58-0.048235-0.52840.299101
59-0.015881-0.1740.431094
600.046970.51450.303913
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095154c1wqflr1wpivagp/17fem1281095172.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095154c1wqflr1wpivagp/17fem1281095172.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095154c1wqflr1wpivagp/27fem1281095172.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281095154c1wqflr1wpivagp/27fem1281095172.ps (open in new window)


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