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 12:59:15 +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/t1272891626ylkuq9eswi0xomv.htm/, Retrieved Mon, 03 May 2010 15:00:28 +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/t1272891626ylkuq9eswi0xomv.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
1-0.366193-3.62510.00023
2-0.120146-1.18940.118581
30.0641010.63460.263595
40.0147720.14620.442019
5-0.007853-0.07770.469095
6-0.077624-0.76840.222037
70.144561.43110.077796
8-0.032283-0.31960.374982
9-0.040926-0.40510.343127
10-0.127576-1.26290.104804
110.0869670.86090.19569
120.0202180.20020.420888
13-0.030124-0.29820.383086
14-0.043781-0.43340.332835
150.0806940.79880.213159
16-0.156981-1.5540.061701
170.0618880.61270.270759
18-0.067394-0.66720.253117
190.1585631.56970.059855
20-0.070475-0.69770.243518
21-0.053109-0.52580.300125
220.1775431.75760.04097
23-0.143585-1.42140.079184
24-0.064652-0.640.261825
250.0166930.16530.434541
260.1641261.62480.053713
27-0.070859-0.70150.242337
280.045530.45070.326591
29-0.114334-1.13180.13023
300.0833420.8250.205674
31-0.074627-0.73880.230908
320.0399720.39570.346592
330.0450950.44640.328141
340.0402710.39870.345505
35-0.023949-0.23710.406545
36-0.08728-0.8640.194842
370.1166491.15480.125498
38-0.083441-0.8260.205398
390.0389790.38590.350212
400.0563590.55790.289084
41-0.070908-0.70190.242187
42-0.028178-0.27890.390437
430.0292390.28950.386422
440.0052190.05170.479451
450.0109380.10830.456998
46-0.083565-0.82730.205052
470.1170811.1590.124627
48-0.103229-1.02190.154668


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.366193-3.62510.00023
2-0.293616-2.90660.002259
3-0.126803-1.25530.106179
4-0.053183-0.52650.299871
5-0.018425-0.18240.427823
6-0.103246-1.02210.154628
70.0831250.82290.206284
80.0502620.49760.309952
90.0227220.22490.411248
10-0.177107-1.75330.041341
11-0.08507-0.84220.200876
12-0.052735-0.52210.301406
13-0.015811-0.15650.437972
14-0.0936-0.92660.178208
150.0163920.16230.435712
16-0.191239-1.89320.030643
17-0.041459-0.41040.341197
18-0.189079-1.87180.032109
190.0656090.64950.258769
20-0.062787-0.62160.267839
21-0.024475-0.24230.40453
220.1206181.19410.117668
230.0076120.07540.470042
24-0.162662-1.61030.055278
25-0.141394-1.39970.082376
26-0.025706-0.25450.399831
270.0103230.10220.459407
280.1094811.08380.140554
29-0.087826-0.86940.193369
30-0.008883-0.08790.465054
31-0.110752-1.09640.137797
32-0.003051-0.03020.487983
33-0.028135-0.27850.3906
340.0393110.38920.349
350.0784940.77710.219499
360.044560.44110.330047
370.1041261.03080.152587
380.0001590.00160.499375
39-0.062493-0.61870.26879
400.074920.74170.230031
41-0.090371-0.89460.186589
420.0207880.20580.418692
430.0447160.44270.329491
440.0791590.78360.217573
450.020940.20730.418104
46-0.041419-0.410.341341
470.0052360.05180.479383
48-0.084562-0.83710.202281
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272891626ylkuq9eswi0xomv/14i7l1272891553.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272891626ylkuq9eswi0xomv/14i7l1272891553.ps (open in new window)


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