Home » date » 2010 » Dec » 21 »

*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, 21 Dec 2010 15:54:36 +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/21/t1292946733bo7nwxtxik32o32.htm/, Retrieved Tue, 21 Dec 2010 16:52:16 +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/21/t1292946733bo7nwxtxik32o32.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 «
224 215 196 159 187 208 131 93 210 228 176 195 188 188 190 188 176 225 93 79 235 247 195 197 211 156 209 180 185 303 129 85 249 231 212 240 234 217 287 221 208 241 156 96 320 242 227 200 215 238 279 208 262 259 167 123 302 246 235
 
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.1771511.21450.115315
20.0601380.41230.341002
3-0.192048-1.31660.097176
4-0.205836-1.41110.082394
50.0030820.02110.491615
60.2364051.62070.055885
70.1581021.08390.141971
80.1727031.1840.121184
90.1808951.24020.110537
10-0.074365-0.50980.30628
11-0.255204-1.74960.043358
12-0.28286-1.93920.029247
13-0.076669-0.52560.300813
140.1267550.8690.194635
150.2241291.53660.065554
160.0101650.06970.472368
17-0.121614-0.83370.204321
18-0.12261-0.84060.202421
19-0.270078-1.85160.035188
20-0.029663-0.20340.419865
21-0.149126-1.02240.155923
220.006230.04270.483055
230.1492121.02290.155785
24-0.078052-0.53510.297553
25-0.107666-0.73810.232055
26-0.197465-1.35380.091145
27-0.117795-0.80760.211706
280.0194580.13340.447226
290.1677981.15040.127907
30-0.045259-0.31030.37886
310.0047010.03220.487214
32-0.026631-0.18260.427959
330.0104770.07180.471521
340.0077880.05340.478824
350.0800480.54880.292876
36-0.020873-0.14310.443413
370.0254390.17440.431149
380.0665510.45630.325155
39-0.017654-0.1210.45209
40-0.029825-0.20450.419434
41-0.023488-0.1610.436382
42-0.004435-0.03040.487938
430.0094880.0650.474206
440.0391360.26830.394819
450.0101760.06980.47234
460.0031890.02190.491324
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1771511.21450.115315
20.0296880.20350.4198
3-0.214561-1.4710.073984
4-0.14904-1.02180.156061
50.0948160.650.259421
60.2356711.61570.056429
70.01610.11040.456292
80.0909250.62340.268034
90.2590031.77560.041134
10-0.047797-0.32770.372304
11-0.300334-2.0590.022531
12-0.228832-1.56880.061703
130.0692560.47480.318566
140.0405950.27830.391
15-0.085294-0.58470.280757
16-0.135956-0.93210.178032
170.0423720.29050.386361
180.1432410.9820.165562
19-0.268768-1.84260.035852
200.0154770.10610.457976
21-0.044373-0.30420.381156
22-0.056122-0.38480.351078
23-0.004029-0.02760.489042
24-0.287781-1.97290.027201
250.0358840.2460.403374
260.0438160.30040.382604
270.016270.11150.455832
28-0.018462-0.12660.44991
290.0974010.66770.25378
30-0.034198-0.23450.407827
31-0.043517-0.29830.38338
32-0.009353-0.06410.474572
330.048580.3330.370291
340.0553030.37910.353147
350.0157030.10770.457364
36-0.116913-0.80150.213433
37-0.083268-0.57090.285408
38-0.045752-0.31370.377584
390.1208950.82880.2057
40-0.129115-0.88520.190287
41-0.166882-1.14410.12919
420.0282060.19340.423751
43-0.095956-0.65780.256925
440.0208950.14320.443353
45-0.050278-0.34470.365932
460.0548340.37590.354333
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292946733bo7nwxtxik32o32/1g9wb1292946873.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292946733bo7nwxtxik32o32/1g9wb1292946873.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292946733bo7nwxtxik32o32/2g9wb1292946873.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292946733bo7nwxtxik32o32/2g9wb1292946873.ps (open in new window)


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