Home » date » 2009 » Nov » 27 »

WS8: 1.3 The long run trend

*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: Fri, 27 Nov 2009 10:42:52 -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/Nov/27/t125934384511sj5cekm9us9pa.htm/, Retrieved Fri, 27 Nov 2009 18:44:07 +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/Nov/27/t125934384511sj5cekm9us9pa.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 «
14,3 14,2 15,9 15,3 15,5 15,1 15 12,1 15,8 16,9 15,1 13,7 14,8 14,7 16 15,4 15 15,5 15,1 11,7 16,3 16,7 15 14,9 14,6 15,3 17,9 16,4 15,4 17,9 15,9 13,9 17,8 17,9 17,4 16,7 16 16,6 19,1 17,8 17,2 18,6 16,3 15,1 19,2 17,7 19,1 18 17,5 17,8 21,1 17,2 19,4 19,8 17,6 16,2 19,5 19,9 20 17,3
 
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
1-0.568775-3.89930.000153
20.021650.14840.44132
30.1894031.29850.100229
4-0.121623-0.83380.204304
50.0029250.02010.492044
60.1956471.34130.093136
7-0.301014-2.06360.022299
80.1193330.81810.208713
90.1340490.9190.181397
10-0.161572-1.10770.136818
110.0662980.45450.325775
12-0.019951-0.13680.445895
13-0.107315-0.73570.232781
140.1484591.01780.156996
15-0.000541-0.00370.498527
16-0.195388-1.33950.093423
170.136750.93750.176644
180.0640130.43890.33139
19-0.075859-0.52010.302731
20-0.075547-0.51790.30347
210.2354231.6140.056613
22-0.321235-2.20230.016294
230.2969232.03560.023725
24-0.044048-0.3020.382001
25-0.18803-1.28910.101841
260.1701731.16660.124619
27-0.010347-0.07090.471875
28-0.09189-0.630.265884
290.1037120.7110.240295
30-0.09904-0.6790.25024
310.012440.08530.466198
320.0959350.65770.256971
33-0.134371-0.92120.180826
34-0.002385-0.01640.493512
350.1008780.69160.2463
36-0.130401-0.8940.187942


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.568775-3.89930.000153
2-0.446204-3.0590.00183
3-0.085968-0.58940.279218
40.0069410.04760.481124
50.0022220.01520.493955
60.2821991.93470.029532
7-0.02393-0.16410.435194
8-0.167232-1.14650.1287
90.0014870.01020.495956
100.055530.38070.352572
110.0731980.50180.309067
12-0.046137-0.31630.376588
13-0.195964-1.34350.092787
14-0.151774-1.04050.151712
150.0420820.28850.387115
16-0.037545-0.25740.398998
17-0.086878-0.59560.277148
180.0879990.60330.274608
190.1839221.26090.106783
20-0.155168-1.06380.146433
210.1825681.25160.108451
22-0.059004-0.40450.343837
230.049210.33740.36867
240.1416160.97090.168292
25-0.002524-0.01730.493134
26-0.031974-0.21920.41372
27-0.127745-0.87580.192804
28-0.036122-0.24760.402746
29-0.09127-0.62570.267264
30-0.063517-0.43550.332614
310.0958720.65730.257108
32-0.035664-0.24450.403953
33-0.111131-0.76190.224969
34-0.101941-0.69890.244039
35-0.026921-0.18460.427183
36-0.04179-0.28650.387877
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t125934384511sj5cekm9us9pa/1n6fs1259343770.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t125934384511sj5cekm9us9pa/1n6fs1259343770.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t125934384511sj5cekm9us9pa/29lod1259343770.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t125934384511sj5cekm9us9pa/29lod1259343770.ps (open in new window)


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