Home » date » 2010 » May » 03 »

Earthquakes/year magnitude >= 7.0 1900 - 1998

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 03 May 2010 13:07:25 +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/May/03/t1272892198i5h13m7szlm5oev.htm/, Retrieved Mon, 03 May 2010 15:10:00 +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/May/03/t1272892198i5h13m7szlm5oev.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13 14 8 10 16 26 32 27 18 32 36 24 22 23 22 18 25 21 21 14 8 11 14 23 18 17 19 20 22 19 13 26 13 14 22 24 21 22 26 21 23 24 27 41 31 27 35 26 28 36 39 21 17 22 17 19 15 34 10 15 22 18 15 20 15 22 19 16 30 27 29 23 20 16 21 21 25 16 18 15 18 14 10 15 8 15 6 11 8 7 13 10 23 16 15 25 22 20 16
 
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
10.5417335.39020
20.4188844.16783.3e-05
30.3979553.95967.1e-05
40.3240473.22420.000856
50.2371642.35980.010124
60.1717941.70930.045261
70.1902281.89270.030656
80.0612020.6090.271976
9-0.048505-0.48260.315214
10-0.10673-1.0620.14542
11-0.043271-0.43050.333867
12-0.072305-0.71940.236787
13-0.126124-1.25490.106232
14-0.144314-1.43590.077091
15-0.129653-1.290.100023
16-0.187901-1.86960.032248
17-0.098558-0.98060.16458
18-0.067436-0.6710.251897
190.0277250.27590.391616
20-0.03228-0.32120.374374
21-0.034463-0.34290.366201
220.0138430.13770.445365
23-0.087323-0.86880.193516
24-0.049589-0.49340.31141
250.0397690.39570.346589
260.1087951.08250.140831
270.0352890.35110.363121
280.0294980.29350.384876
29-0.010111-0.10060.460034
300.047940.4770.317209
310.024740.24620.403033
320.0758120.75430.226223
330.0753940.75020.227468
340.0378540.37660.353623
35-0.03063-0.30480.380591
36-0.070847-0.70490.241257
37-0.040108-0.39910.345349
38-0.111095-1.10540.135836
39-0.098105-0.97610.16569
40-0.13255-1.31890.09513
41-0.219039-2.17940.015837
42-0.221483-2.20370.014931
43-0.209096-2.08050.020032
44-0.200894-1.99890.024182
45-0.212468-2.1140.018513
46-0.235451-2.34270.010573
47-0.175829-1.74950.041654
48-0.231121-2.29960.011785


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5417335.39020
20.1775021.76610.040229
30.1682861.67440.048601
40.0368580.36670.357299
5-0.028418-0.28280.388978
6-0.039018-0.38820.349341
70.0724250.72060.236422
8-0.134489-1.33820.091956
9-0.138835-1.38140.085134
10-0.111345-1.10790.1353
110.1019621.01450.156406
120.0093490.0930.463039
13-0.042787-0.42570.335617
14-0.075045-0.74670.228512
150.0101330.10080.459948
16-0.07595-0.75570.225814
170.141351.40640.081366
18-0.01112-0.11060.456062
190.1435341.42810.078199
20-0.101563-1.01050.157351
210.0093970.09350.462848
22-0.015673-0.15590.438199
23-0.15387-1.5310.064481
24-0.028139-0.280.390039
250.1345121.33840.09192
260.106861.06320.145128
27-0.004211-0.04190.483331
28-0.034831-0.34660.364827
29-0.117545-1.16960.122494
300.0833840.82970.204365
31-0.005067-0.05040.479944
320.0871650.86730.193943
33-0.041281-0.41070.341074
34-0.001035-0.01030.495904
35-0.048352-0.48110.315754
36-0.08985-0.8940.186745
37-0.065834-0.6550.256979
38-0.12496-1.24330.108339
39-0.010127-0.10080.459972
400.0419950.41780.338484
41-0.12493-1.2430.108394
420.0591820.58890.278649
43-0.057907-0.57620.282905
44-0.032982-0.32820.37174
45-0.0895-0.89050.187675
46-0.053524-0.53260.297766
470.0169350.16850.433265
48-0.030449-0.3030.381275
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272892198i5h13m7szlm5oev/1huk41272892044.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272892198i5h13m7szlm5oev/1huk41272892044.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t1272892198i5h13m7szlm5oev/2rl1p1272892044.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272892198i5h13m7szlm5oev/2rl1p1272892044.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