Acessibilidade / Reportar erro

Computation of the sampling distribution of coherence estimate

Abstracts

The recent paper published by Miranda de Sa (2004) derived, for the first time, the sampling distribution of coherence estimated between two signals. The paper also considered computational issues of the sampling distribution, using an approximate method. In this short note, we provided several 1-line programs for the exact computation of various measures of the sampling distribution. The advantages of using these programs are discussed.

coherence estimate; non central beta distribution; R language; sampling distribution


O presente trabalho publicado por Miranda de Sá (2004) derivou pela primeira vez, a distribuição de amostras de coerência estimada entre dois sinais. Este artigo apresenta temas computacionais relacionados a distribuição de amostras, utilizando métodos de aproximação. Nesta nota, apresentamos vários programas "on line" computação exata de medidas de distribuição de amostras. São discutidas as vantagens destes programas.

coerência estimativa; distribuição beta não centralizada; linguagem R; distribuição de amostras


ENGINEERING SCIENCES

Computation of the sampling distribution of coherence estimate

Saralees NadarajahI; Samuel KotzII

IUniversity of Nebraska, Lincoln, Nebraska 68583, USA

IIGeorge Washington University, 2121 Eye street, NW Washington, D.C. 20052, USA

ABSTRACT

The recent paper published by Miranda de Sa (2004) derived, for the first time, the sampling distribution of coherence estimated between two signals. The paper also considered computational issues of the sampling distribution, using an approximate method. In this short note, we provided several 1–line programs for the exact computation of various measures of the sampling distribution. The advantages of using these programs are discussed.

Key words: coherence estimate, non central beta distribution, R language, sampling distribution.

RESUMO

O presente trabalho publicado por Miranda de Sá (2004) derivou pela primeira vez, a distribuição de amostras de coerência estimada entre dois sinais. Este artigo apresenta temas computacionais relacionados a distribuição de amostras, utilizando métodos de aproximação. Nesta nota, apresentamos vários programas "on line" computação exata de medidas de distribuição de amostras. São discutidas as vantagens destes programas.

Palavras-chave: coerência estimativa, distribuição beta não centralizada, linguagem R, distribuição de amostras.

1 INTRODUCTION

The recent paper by (Miranda de Sa 2004) derived, for the first time, the sampling distribution of the coherence estimate between one random and one periodic signals. If (f) denotes the coherence estimate then it was shown that

for some parameters M and (f), where "~" denotes "is distributed as," and ncbeta (p, q, l) denotes the non central beta distribution with shape parameters p and q and non centrality parameter l. The probability density function (pdf) of ncbeta (p, q, l) is given by

for 0 < x < 1. We refer the reader to (Johnson et al. 1995) for detailed properties of (2).

The result in (1) is potentially very useful because the coherence estimate has applications in many areas of the sciences and engineering, e.g. medical and biological engineering, computing, signal processing and acoustics. Thus, it is important that flexible computational methods are provided to compute (2) and its measures. The computational methods described in (Miranda de Sa 2004) are based on an approximation of the non central beta distribution due to (Patnaik 1949). Here, we provide 1-line programs for the exact computation of various quantities of interest of the non central beta distribution given by (2) for all applicable values of p, q and l. These programs are written in R, a statistical software freely downloadable from http://www.r-project.org/ due to (Ihaka and Gentleman 1996). We expect that these programs could be widely used in the sciences and engineering.

2 PROGRAMS

Here, we provide five programs in R for computing (2) and its measures. The program names and their values are as follows: dbeta(x, p, q, lambda) returns the value of the pdf, f(x), given by (2) for given x and (p, q, l); ex(n, p, q, lambda) returns the value of the nth moment defined by

E(Xn) = xn f (x)dx,

where f(·) is given by (2), for given n and (p, q, l); pbeta(x, p, q, lambda) returns the value of the cumulative distribution function (cdf), F(x), defined by

F(x) = f(t)dt,

where f(·) is given by (2), for given n and (p, q, l); qbeta(u, p, q, lambda) returns the value of the inverse function F-1(u) defined by

F(F-1(u)) = u

for given u and (p, q, l); rbeta(n, p, q, lambda) generates n random numbers from the non central beta distribution for given n and (p, q, l).

dbeta(x,shape1=p,shape2=q,ncp=lambda)

ex<-function (n,shape1=p,shape2=q,ncp=lambda)

{f<-function (y) {y**n*dbeta(y,shape1,shape2,ncp)}

return(integrate(f,lower=0,upper=1)$value)}

pbeta(x,shape1=p,shape2=q,ncp=lambda)

qbeta(u,shape1=p,shape2=q,ncp=lambda)

rbeta(n,shape1=p,shape2=q,ncp=lambda)

3 ADVANTAGES

We have provided five programs in R for the exact computation of the sampling distribution of the coherence estimate between two signals. These programs have several advantages because:

  • there are no restrictions on the input parameters p, q and l;

  • the programs are only 1-line long (except for one);

  • additional measures of the sampling distribution derived;

  • the programs are easy to implement;

  • the software is freely available (unlike Matlab) on any platform;

  • the programs avoid the need for any approximation.

ACKNOWLEDGMENTS

Saralees Nadarajah is a Senior Lecturer in the School of Mathematics, University of Manchester, UK. His research interests include climate modeling, extreme value theory, distribution theory, information theory, sampling and experimental designs, and reliability. He is an author/co-author of four books, and has over 300 papers published or accepted. He has held positions in Florida, California, and Nebraska. Samuel Kotz is Distinguished Professor of Statistics in the Department of Engineering Management and Systems Engineering, George Washington University, Washington, D.C., USA. He is the senior co-editor-in-chief of the thirteen-volume Encyclopedia of Statistical Sciences, an author or co-author of over 300 papers on statistical methodology and theory, 25 books in the field of statistics and quality control, three Russian-English scientific dictionaries, and co-author of the often-cited Compendium of Statistical Distributions.

Manuscript received on May 23, 2006; accepted for publication on May 24, 2006; presented by MARTIN SCHMAL

Correspondence to: Saralees Nadarajah

E-mail: saralees.nadarajah@manchester.ac.uk

  • IHAKA R AND GENTLEMAN R. 1996. R: A language for data analysis and graphics. J Comput Graph Stat 5: 299-314.
  • JOHNSON NL, KOTZ S AND BALAKRISHNAN N. 1995. Continuous Univariate Distribution, volume 2, 2nd ed., J Wiley & Sons, New York.
  • MIRANDA DE SA AMFL. 2004. A note on the sampling distribution of coherence estimate for the detection of periodic signals. IEE Signal Proc Lett 11: 323-325.
  • PATNAIK PB. 1949. The noncentral c2- and F- distribution and their applications. Biometrika 36:202-232.

Publication Dates

  • Publication in this collection
    28 Nov 2006
  • Date of issue
    Dec 2006

History

  • Accepted
    24 May 2006
  • Received
    23 May 2006
Academia Brasileira de Ciências Rua Anfilófio de Carvalho, 29, 3º andar, 20030-060 Rio de Janeiro RJ Brasil, Tel: +55 21 3907-8100 - Rio de Janeiro - RJ - Brazil
E-mail: aabc@abc.org.br