Home » date » 2009 » Dec » 03 »

*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, 03 Dec 2009 11:47:03 -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/03/t1259866238n3pd15d8nunyhwr.htm/, Retrieved Thu, 03 Dec 2009 19:50:41 +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/03/t1259866238n3pd15d8nunyhwr.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 «
12.610 10.862 52.929 56.902 81.776 87.876 82.103 72.846 60.632 33.521 15.342 7.758 8.668 13.082 38.157 58.263 81.153 88.476 72.329 75.845 61.108 37.665 12.755 2.793 12.935 19.533 33.404 52.074 70.735 69.702 61.656 82.993 53.990 32.283 15.686 2.713 12.842 19.244 48.488 54.464 84.192 84.458 85.793 75.163 68.212 49.233 24.302 5.402 15.058 33.559 70.358 85.934 94.452 129.305 113.882 107.256 94.274 57.842 26.611 14.521
 
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
1-0.44346-3.04020.001928
2-0.100928-0.69190.246194
3-0.044245-0.30330.38149
40.2178991.49380.07095
5-0.191975-1.31610.097259
60.1206850.82740.206104
70.0134050.09190.463585
8-0.166774-1.14330.129343
90.1858561.27420.104435
10-0.120706-0.82750.206062
110.1000140.68570.248148
12-0.116674-0.79990.213903
130.0316360.21690.414618
140.0200250.13730.445697
150.0749910.51410.30479
16-0.119328-0.81810.208723
170.0486160.33330.370197
180.0022130.01520.493979
19-0.054847-0.3760.354301
20-0.010013-0.06860.47278
210.1152480.79010.216719
22-0.042626-0.29220.3857
230.0048720.03340.486748
24-0.192919-1.32260.096187
250.2911321.99590.025879
26-0.073165-0.50160.309147
27-0.078245-0.53640.297099
28-0.077314-0.530.299291
290.241711.65710.052082
30-0.127285-0.87260.193653
310.0074070.05080.479857
320.0554450.38010.352787
33-0.186255-1.27690.103955
340.1215490.83330.204447
350.0318910.21860.413941
360.0183110.12550.450319
37-0.112113-0.76860.222986
380.1124630.7710.222281
39-0.118867-0.81490.209617
400.109260.7490.228781
41-0.060051-0.41170.341219
42-0.005361-0.03680.48542
430.006140.04210.483302
440.0423850.29060.386326
45-0.083179-0.57020.285613
460.0531770.36460.358537
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.44346-3.04020.001928
2-0.370433-2.53960.007233
3-0.389339-2.66920.005203
4-0.083828-0.57470.284118
5-0.227697-1.5610.062615
6-0.039563-0.27120.393701
70.0780350.5350.297593
8-0.181595-1.2450.109661
90.1127570.7730.221689
10-0.121639-0.83390.204273
110.045880.31450.377253
12-0.021121-0.14480.442744
13-0.196314-1.34590.092402
140.0124750.08550.466103
15-0.020338-0.13940.444854
16-0.058469-0.40080.345177
170.0736860.50520.307902
18-0.090777-0.62230.268365
19-0.049329-0.33820.368365
20-0.201734-1.3830.086597
21-0.080701-0.55330.291354
220.019280.13220.447704
230.0525720.36040.360075
24-0.267269-1.83230.036623
250.1167620.80050.213731
260.0400780.27480.392351
27-0.013051-0.08950.464544
28-0.07481-0.51290.305221
290.0392590.26910.394497
300.0872170.59790.276379
310.111310.76310.224608
320.0929040.63690.263635
33-0.051274-0.35150.363387
34-0.066256-0.45420.325877
35-0.043002-0.29480.38472
36-0.106072-0.72720.235358
370.0331410.22720.410625
380.0234730.16090.436422
39-0.035631-0.24430.404041
400.0092060.06310.474972
41-0.036043-0.24710.402953
42-0.01352-0.09270.463273
43-0.083417-0.57190.285064
44-0.054394-0.37290.355447
45-0.038991-0.26730.3952
46-0.091228-0.62540.267357
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259866238n3pd15d8nunyhwr/1fng01259866022.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259866238n3pd15d8nunyhwr/1fng01259866022.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259866238n3pd15d8nunyhwr/2x8n11259866022.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259866238n3pd15d8nunyhwr/2x8n11259866022.ps (open in new window)


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