Home » date » 2010 » Dec » 14 »

*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: Tue, 14 Dec 2010 12:29:39 +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/Dec/14/t1292329950e4u1lyupx09qmac.htm/, Retrieved Tue, 14 Dec 2010 13:32:32 +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/2010/Dec/14/t1292329950e4u1lyupx09qmac.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
19876 45335 48674 156392 100837 101605 532850 294189 80763 105995 25045 90474 48481 50730 68694 207716 99132 104012 422632 364974 82687 66834 28408 97073 40284 24421 116346 72120 108751 91738 402216 390070 106045 110070 70668 167841 28607 95371 30605 131063 81214 85451 455196 454570 63114 74287 42350 113375
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3469232.40360.010074
2-0.125871-0.87210.193759
3-0.124839-0.86490.195696
4-0.172303-1.19380.119221
5-0.248-1.71820.046103
6-0.35013-2.42580.009542
7-0.20723-1.43570.078782
8-0.082669-0.57270.284744
9-0.056331-0.39030.34903
10-0.074847-0.51860.303227
110.2360891.63570.054225
120.6598974.57191.7e-05
130.3058272.11880.019653
14-0.090201-0.62490.267489
15-0.088017-0.60980.272434
16-0.082664-0.57270.284756
17-0.147864-1.02440.155383
18-0.262547-1.8190.037578
19-0.163064-1.12970.1321
20-0.077419-0.53640.297089
21-0.098701-0.68380.248688
22-0.051802-0.35890.360625
230.1261780.87420.193184
240.4593973.18280.00128
250.2388931.65510.052215
26-0.058977-0.40860.342324
27-0.018182-0.1260.450142
28-0.034074-0.23610.407191
29-0.102411-0.70950.240715
30-0.162355-1.12480.133128
31-0.10308-0.71420.239295
32-0.0643-0.44550.328988
33-0.029867-0.20690.418472
34-0.022-0.15240.439746
350.045030.3120.378203
360.2665281.84660.03549
370.1525451.05690.147933
38-0.04654-0.32240.37426
39-0.036889-0.25560.399686
40-0.056337-0.39030.349014
41-0.067461-0.46740.321169
42-0.067816-0.46980.320297
43-0.030722-0.21280.416174
440.0269270.18660.426397
450.0218870.15160.440053
460.0160040.11090.456087
470.0033840.02340.490697
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3469232.40360.010074
2-0.279916-1.93930.029176
30.0347370.24070.405421
4-0.203623-1.41070.082384
5-0.162762-1.12770.132536
6-0.334597-2.31820.012374
7-0.105449-0.73060.234296
8-0.266452-1.8460.03553
9-0.237644-1.64640.053102
10-0.455703-3.15720.001376
11-0.023181-0.16060.43654
120.3209792.22380.015451
13-0.156176-1.0820.142325
14-0.11688-0.80980.211035
15-0.012989-0.090.464335
160.024820.1720.432097
170.0715760.49590.311117
180.0108910.07550.470083
190.0667990.46280.322801
20-0.055866-0.3870.350215
21-0.050724-0.35140.363402
220.0632850.43850.331513
23-0.095019-0.65830.256742
240.0649350.44990.32741
25-0.154621-1.07120.144708
26-0.009053-0.06270.475125
27-0.022078-0.1530.439535
28-0.083062-0.57550.283831
29-0.088742-0.61480.270788
300.0203890.14130.444127
31-0.050843-0.35230.363096
32-0.015583-0.1080.457237
330.1470191.01860.156756
340.0346270.23990.405713
350.0185830.12870.449047
360.0326130.2260.4111
370.0790920.5480.293127
380.0784080.54320.294743
39-0.041282-0.2860.388051
40-0.052861-0.36620.357901
41-0.018915-0.1310.448142
42-0.021996-0.15240.439757
43-0.016964-0.11750.453464
440.0571230.39580.347017
45-0.010874-0.07530.47013
460.0215850.14950.440875
470.0253860.17590.430565
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292329950e4u1lyupx09qmac/1ilzz1292329777.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292329950e4u1lyupx09qmac/1ilzz1292329777.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292329950e4u1lyupx09qmac/2ilzz1292329777.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292329950e4u1lyupx09qmac/2ilzz1292329777.ps (open in new window)


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