Home » date » 2010 » Aug » 18 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 18 Aug 2010 00:13:18 +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/18/t1282090412wbasrgswbie7ohy.htm/, Retrieved Wed, 18 Aug 2010 02:13:34 +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/18/t1282090412wbasrgswbie7ohy.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 «
158 157 156 154 152 151 152 154 155 155 156 158 155 151 152 156 147 159 152 148 146 148 142 141 139 143 146 150 141 153 142 139 134 152 142 139 137 132 137 134 127 140 127 120 112 128 119 117 115 104 108 104 98 111 104 98 91 94 82 81 70 64 71 73 71 80 72 68 60 71 62 69 55 58 67 69 71 85 76 79 69 95 94 99
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.403897-3.67970.000207
20.1610451.46720.073052
3-0.140659-1.28150.1018
40.1722941.56970.060148
5-0.141671-1.29070.100198
60.1791641.63230.053207
7-0.091413-0.83280.20367
80.1883521.7160.044949
9-0.101858-0.9280.178056
100.0640940.58390.280427
11-0.33046-3.01060.001727
120.6374235.80720
13-0.359804-3.2780.000764
140.1025290.93410.176486
15-0.156127-1.42240.079331
160.1327721.20960.114931
17-0.141381-1.2880.100656
180.1501171.36760.08756
19-0.084142-0.76660.222756
200.0425530.38770.349623
21-0.008954-0.08160.467591
22-0.061879-0.56370.287223
23-0.229101-2.08720.019968
240.3878583.53360.000336
25-0.303445-2.76450.003511
260.1080130.9840.163976
27-0.198217-1.80580.037284
280.1496131.3630.088278
29-0.104416-0.95130.172113
300.1092330.99520.161275
31-0.079695-0.72610.234923
32-0.015388-0.14020.444424
33-0.02168-0.19750.421956
34-0.059531-0.54240.294515
35-0.202382-1.84380.034391
360.3535573.22110.000912
37-0.209239-1.90630.030039
380.1316661.19950.116867
39-0.191558-1.74520.042327
400.1292721.17770.121137
41-0.12641-1.15160.126386
420.0902730.82240.206595
43-0.089599-0.81630.208338
440.0670110.61050.271599
45-0.036426-0.33190.370417
460.0004130.00380.498505
47-0.143674-1.30890.097086
480.2375112.16380.016676


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.403897-3.67970.000207
2-0.002495-0.02270.490961
3-0.091363-0.83240.203797
40.1021440.93060.177386
5-0.035507-0.32350.373569
60.1149541.04730.149006
70.0458440.41770.338638
80.1689481.53920.063781
90.0689830.62850.265711
100.0092260.08410.466609
11-0.353737-3.22270.000908
120.4963424.52191e-05
130.0097550.08890.464697
14-0.190636-1.73680.043068
15-0.123798-1.12790.131315
16-0.061582-0.5610.288143
170.0293640.26750.394865
180.045790.41720.338817
190.028770.26210.396944
20-0.221674-2.01950.023329
210.0617960.5630.28748
22-0.027352-0.24920.401915
23-0.032597-0.2970.383613
24-0.064912-0.59140.277938
25-0.157779-1.43740.077177
260.0170180.1550.438584
27-0.105236-0.95870.170235
280.0648950.59120.27799
290.0809870.73780.231349
30-0.016526-0.15060.440344
31-0.015985-0.14560.442284
320.0033110.03020.488004
33-0.119156-1.08560.140408
34-0.016674-0.15190.439815
35-0.1245-1.13420.129978
360.0596680.54360.294086
370.0788220.71810.237356
380.0211280.19250.423917
390.0050180.04570.481823
40-0.064894-0.59120.277993
41-0.039889-0.36340.358614
42-0.059701-0.54390.293983
43-0.027553-0.2510.401211
440.0383830.34970.363729
45-0.047554-0.43320.332984
460.0005420.00490.498036
470.0248790.22670.410624
48-0.070995-0.64680.259774
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090412wbasrgswbie7ohy/1jjir1282090396.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090412wbasrgswbie7ohy/1jjir1282090396.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090412wbasrgswbie7ohy/2jjir1282090396.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090412wbasrgswbie7ohy/2jjir1282090396.ps (open in new window)


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