Home » date » 2009 » Dec » 10 »

Paper - 8

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 10 Dec 2009 08:24:47 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/10/t1260458826j1hoghyi2u7178k.htm/, Retrieved Thu, 10 Dec 2009 16:27:08 +0100
 
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/2009/Dec/10/t1260458826j1hoghyi2u7178k.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
62,7 62,3 61,9 62 62,3 62,8 62,4 62,3 62,7 62,7 62,9 63 62,2 62,3 62,8 62,8 62,8 62,2 62,6 62,8 62,5 62,4 62,3 61,9 61,7 62 62,1 61,7 61,8 61,8 61,8 61,3 61,3 61,3 61,2 61,4 62,2 62,9 63,1 63,5 63,6 64,4 64,1 65,1 65,8 65,9 65,4 65,5 64,8 63,2 62,7 62,1 61,9 60,6 60,7 59,8 59 58,3 59,3 59 59,1
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9132667.13280
20.8017276.26170
30.6749095.27121e-06
40.5070523.96029.9e-05
50.3191532.49270.007705
60.149481.16750.123781
7-0.00714-0.05580.477855
8-0.177056-1.38290.085876
9-0.316896-2.4750.008058
10-0.43016-3.35970.000675
11-0.514347-4.01728.2e-05
12-0.591847-4.62251e-05
13-0.589474-4.60391.1e-05
14-0.542751-4.2393.9e-05
15-0.483714-3.77790.000181
16-0.415143-3.24240.000962
17-0.325663-2.54350.006763
18-0.243056-1.89830.031193
19-0.179551-1.40230.082942
20-0.106513-0.83190.204358
21-0.037343-0.29170.385769
220.0296870.23190.408711
230.0735040.57410.284009
240.115550.90250.185177
250.1498251.17020.123242
260.1554431.2140.114704
270.147841.15470.126365
280.1475841.15270.126772
290.1422231.11080.135507
300.1271680.99320.162264
310.1171310.91480.181943
320.1138950.88950.188601
330.102890.80360.212374
340.0773360.6040.274037
350.0601720.470.320032
360.050650.39560.346893
370.0232390.18150.428287
38-0.000584-0.00460.498188
39-0.013339-0.10420.458683
40-0.026521-0.20710.418297
41-0.042609-0.33280.370217
42-0.045865-0.35820.360709
43-0.045639-0.35650.361365
44-0.054797-0.4280.335087
45-0.055223-0.43130.333882
46-0.051592-0.40290.344199
47-0.039167-0.30590.380359
48-0.043971-0.34340.366231
49-0.04837-0.37780.353451
50-0.032844-0.25650.399205
51-0.022012-0.17190.432035
52-0.013897-0.10850.456962
53-0.001747-0.01360.49458
540.0009780.00760.496965
550.0007970.00620.497528
560.0070840.05530.478029
570.005570.04350.482721
580.0012580.00980.496097
59-0.008298-0.06480.474268
60-0.008285-0.06470.474309


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9132667.13280
2-0.194813-1.52150.066646
3-0.137843-1.07660.142953
4-0.317901-2.48290.007899
5-0.207619-1.62160.055028
60.0066630.0520.479335
7-0.020683-0.16150.436102
8-0.238288-1.86110.033776
9-0.038732-0.30250.381647
10-0.095764-0.74790.228686
110.0241360.18850.425553
12-0.20952-1.63640.053452
130.3032742.36860.010518
140.0589740.46060.323362
15-0.004894-0.03820.484817
16-0.250413-1.95580.027537
17-0.04437-0.34650.365064
18-0.130044-1.01570.156898
19-0.000952-0.00740.497045
20-0.096939-0.75710.225948
210.0524540.40970.341738
220.0217410.16980.432863
23-0.053809-0.42030.337886
24-0.152523-1.19120.119086
250.1497521.16960.123356
26-0.058217-0.45470.325472
270.0417360.3260.372782
28-0.090083-0.70360.242187
290.0504850.39430.347367
30-0.086937-0.6790.249854
31-0.037749-0.29480.384562
32-0.024264-0.18950.425163
330.0720220.56250.287915
34-0.076214-0.59530.276938
350.0124790.09750.46134
36-0.032902-0.2570.399031
37-0.029957-0.2340.407895
38-0.050308-0.39290.347876
39-0.037718-0.29460.384654
400.0438180.34220.366678
410.0652150.50930.306174
420.0209440.16360.435304
43-0.089713-0.70070.243082
44-0.02029-0.15850.437304
450.0238550.18630.426409
46-0.038828-0.30330.381362
470.0291910.2280.410208
48-0.086316-0.67410.251382
49-0.071689-0.55990.288796
500.0900640.70340.242235
51-0.025391-0.19830.421732
520.0815530.63690.263271
53-0.051116-0.39920.345561
54-0.074-0.5780.282709
550.0314010.24530.403543
560.0297730.23250.408452
57-0.078271-0.61130.271631
58-0.059699-0.46630.321344
59-0.016028-0.12520.450397
600.0735620.57450.283858
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260458826j1hoghyi2u7178k/1o11r1260458685.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260458826j1hoghyi2u7178k/1o11r1260458685.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/10/t1260458826j1hoghyi2u7178k/2nmga1260458685.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260458826j1hoghyi2u7178k/2nmga1260458685.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