• 沒有找到結果。

EVALUATION OF THE DISTRIBUTION OF THE SQUARE OF THE SAMPLE MULTIPLE-CORRELATION COEFFICIENT

N/A
N/A
Protected

Academic year: 2021

Share "EVALUATION OF THE DISTRIBUTION OF THE SQUARE OF THE SAMPLE MULTIPLE-CORRELATION COEFFICIENT"

Copied!
5
0
0

加載中.... (立即查看全文)

全文

(1)

Algorithm AS 260: Evaluation of the Distribution of the Square of the Sample Multiple-Correlation Coefficient

Author(s): Cherng G. Ding and Rolf E. Bargmann

Source: Journal of the Royal Statistical Society. Series C (Applied Statistics), Vol. 40, No. 1 (1991), pp. 195-198

Published by: Wiley for the Royal Statistical Society

Stable URL: http://www.jstor.org/stable/2347932 .

Accessed: 28/04/2014 15:26

Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at . http://www.jstor.org/page/info/about/policies/terms.jsp

.

JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about JSTOR, please contact support@jstor.org.

.

Wiley and Royal Statistical Society are collaborating with JSTOR to digitize, preserve and extend access to Journal of the Royal Statistical Society. Series C (Applied Statistics).

(2)

40,No. 1,pp. 195-236

Algorithm AS 260

Evaluation of the Distribution of the Square of the Sample Multiple-correlation Coefficient

By Cherng G. DingT

National Chiao Tung University, Taipei, Republic of China and Rolf E. Bargmann

University of Georgia, Athens, USA [Received July 1988. Revised October 19891 Keywords: Multiple-correlation coefficient; Non-central beta distribution

Language Fortran 77

Description and Purpose

Let XI, ..., Xp be distributed as Np(,u, E) and R be the sample multiple-correlation coefficient between Xi and the other p - 1 random variables based on a sample of size N. The density of R2 is given by (see, for example, Anderson (1984))

(1 -R 2)(N-p - 2)/2(R 2)(p- 1)/2- 1 (1 - p2)(N- 1)/2 (p 2)k(R 2)k F2l{ (N- 1)/2 + k}

F{(N-1)/2} F{(N-p)/2}

E

k! F{(p-1)/2?k} ( where p denotes the population multiple-correlation coefficient. The function subprogram SQMCOR computes the cumulative distribution function (CDF) of R2.

Numerical Method

Let X=R2, a= (p - 1)/2 and b = (N-p)/2. Then the CDF of Xis given by co

M(x; a, b, p2) = q(k; a, b, p2) Ix(a+k, b), (2) k=O

where Ix(a, b) is the central beta(a, b) CDF and

q(k; a, b,p2) = F(a + b + k) (p2)k(p _ p2)a+b/{k! r(a + b)}.

Note that 0 < x < 1, 0 < p2 S 1 p > 1, N > p and both p and N are integers. Lenth (1987) has given an algorithm for computing the non-central beta CDF which is a modification of one given in Norton (1983). The advantage is that only one tAddress for correspondence: Institute of Management Science, National Chiao Tung University, 4F, 114 Chung- Hsiao W. Road, Section 1, Taipei, Taiwan, Republic of China.

(3)

196 DING AND BARGMANN

evaluation of the incomplete beta function is required instead of several, and hence computation time is greatly saved.. The non-central beta CDF is a series of central beta distributions with Poisson weights. Since the CDF of X can be expressed in the same way but with different weights (negative binomial if N is odd), the method used to develop the algorithm will basically follow that given by Lenth. Let

En

be the error of truncation in equation (2) after the first n + 1 terms. Using the well-known relation for the incomplete beta function (see, for example, Abramowitz and Stegun (1965), p. 944),

Ix(a+ 1, b) = I,(a, b) -F(a + 1)(b)x

and the fact that Eo0 q(k; a, b, p2) = 1 (see, for example, Abramowitz and Stegun

(1965), p. 556), we have 00 En=

>

q(k; a, b, p2) Ix(a+k, b) k=n? 1 00 < Ix(a+n + 1, b)

z

q(k; a, b, p2) k=n+ 1 = (a+n + 1, b) 1- q(k; a, b, p2)3. (4)

Recursive iterations are performed until the error bound above is less than a pre- determined small number. The central beta CDF (incomplete beta functions) in equation (2) can be obtained by first computing Ix(a, b) and then using equation (3).

Structure

REAL FUNCTION SQMCOR(X, IP, N, RHO2, IFA UL T) Formal parameters

X Real input: the percentage point R2 (at which the

cumulative probability is desired)

IP Integer input: the number of random variables p

N Integer input: the sample size N

RHO2 Real input: the square of the population multiple-

correlation coefficient p2

IFA ULT Integer output: a fault indicator:

=1 if n > ITRMAX and

En

> ERRMAX (see the section on constants);

=2 ifp 1, p>N, p2<o or p2> 1;

=3 ifx<Oorx>l; = 0 otherwise Auxiliary Algorithms

Function ALOGAM (Pike and Hill, 1966) is used to compute the natural logarithm

(4)

Function BETAIN (Majumder and Bhattacharjee, 1973) is used to compute the incomplete beta function.

Constants

The variables ERRMAX and ITRMAX are set by the DATA statement in

SQMCOR. ERRMAX denotes a bound on the error of truncation. The value given

here is 1.0 x 10-6. ITRMAX is an integer to control the number of iterations. The value given here is 100.

Precision

Double-precision operation may be performed by changing REAL to DOUBLE

PRECISION in the FUNCTION statement and in the REAL statement. The real

constants in the DATA statements also need to be converted to double precision, and

the value of ERRMAX may be changed from 1.0x 10-6 to 1.0x 101-2. Moreover,

similar modifications to the auxiliary routines ALOGAM and BETAIN are required. Time

The execution time is a non-decreasing function of x and p2. Restrictions

For some unusual situations, the series may not converge within ITRMAX (e.g. 100) iterations. Then the value of ITRMAX in the DATA statement can be enlarged to obtain the results with the precision required.

References

Abramowitz, M. and Stegun, I. A. (1965) Handbook of Mathematical Functions. New York: Dover Publications.

Anderson, T. W. (1984) An Introduction to Multivariate Statistical Analysis, 2nd edn, p. 145. New York: Wiley.

Lenth, R. V. (1987) Algorithm AS 226: Computing noncentral beta probabilities. Appl. Statist., 36, 241-244.

Macleod, A. J. (1989) Algorithm AS 245: A robust and reliable algorithm for the logarithm of the gamma function. Appl. Statist., 38, 397-402.

Majumder, K. L. and Bhattacharjee, G. P. (1973) Algorithm AS 63: The incomplete beta integral. Appl. Statist., 22, 409-411.

Norton, V. (1983) A simple algorithm for computing the non-central F distribution. Appl. Statist., 32, 84-85.

Pike, M. C. and Hill, I. D. (1966) Algorithm 291: Logarithm of gamma function. Communs Ass. Comput. Mach., 9, 684.

REAL FUNCTION SQMCOR(X, IP, N, RHO2, IFAULT)

C

C ALGORITHM AS 260 APPL. STATIST. (1991) VOL. 40, NO. 1

C

C Computes the C.D.F. for the distribution of the C square of the multiple correlation coefficient C with parameters IP, N, and RHO2

(5)

198 DING AND BARGMANN C

C The following auxiliary algorithms are required: C ALOGAM - Log-garima function (CACM 291)

C (or ALNGAM AS 245)

C BETAIN - Incomplete beta function (AS 63) C

REAL X, RHO2

INTEGER IP, N, IFAULT

REAL A, B, BETA, ERRBD, ERRMAX, GX, Q, SUMQ, TEMP, TERM, XJ,

* ZERO, HALF, ONE INTEGER ITRMAX REAL ALOGAM, BETAIN EXTERNAL ALOGAM, BETAIN C

DATA ERRMAX, ITRMAX / 1.OE-6, 100 /

DATA ZERO, HALF, ONE / 0.0, 0.5, 1.0 /

C

SQMCOR = X IFAULT = 2

IF (RHO2 .LT. ZERO .OR. RHO2 .GT. ONE .OR. IP .LT. 2 OR.

* N .LE. IP) RETURN IFAULT = 3

IF (X .LT. ZERO .OR. X .GT. ONE) RETURN IFAULT = 0

IF (X .EQ. ZERO .OR. X EQ. ONE) RETURN C

A = HALF * (IP - 1) B = HALF * (N - IP) C

C Initialize the series C

BETA = EXP(ALOGAM(A, IFAULT) + ALOGAM(B, IFAULT) - * ALOGAM(A + B, IFAULT))

TEMP = BETAIN(X, A, B, BETA, IFAULT) C

C There is no need to test IFAULT since all of the C parameter values have already been checked C

GX = EXP(A * LOG(X) + B * LOG(ONE - X) - LOG(A)) / BETA Q = (ONE - RH02) ** (A + B) XJ = ZERO TERM = Q * TEMP SUMQ = ONE - Q SQMCOR = TERM C

C Perform recurrence until convergence is achieved C 10 XJ = XJ + ONE TEMP = TEMP - GX GX = GX * (A + B + XJ - ONE) * X / (A + XJ) Q = Q * (A + B + XJ - ONE) * RHO2 / XJ SUMQ = SUMQ - Q TERM = TEMP * Q SQMCOR = SQMCOR + TERM C

C Check for convergence and act accordingly C

ERRBD = (TEMP - GX) * SUMQ

IF ((INT(XJ) .LT. ITRMAX) AND. (ERRBD .GT. ERRMAX)) GO TO 10 IF (ERRBD .GT. ERRMAX) IFAULT = 1

RETURN END

參考文獻

相關文件

Numerical results are reported for some convex second-order cone programs (SOCPs) by solving the unconstrained minimization reformulation of the KKT optimality conditions,

Particularly, combining the numerical results of the two papers, we may obtain such a conclusion that the merit function method based on ϕ p has a better a global convergence and

Then, it is easy to see that there are 9 problems for which the iterative numbers of the algorithm using ψ α,θ,p in the case of θ = 1 and p = 3 are less than the one of the

By exploiting the Cartesian P -properties for a nonlinear transformation, we show that the class of regularized merit functions provides a global error bound for the solution of

In this chapter we develop the Lanczos method, a technique that is applicable to large sparse, symmetric eigenproblems.. The method involves tridiagonalizing the given

volume suppressed mass: (TeV) 2 /M P ∼ 10 −4 eV → mm range can be experimentally tested for any number of extra dimensions - Light U(1) gauge bosons: no derivative couplings. =&gt;

incapable to extract any quantities from QCD, nor to tackle the most interesting physics, namely, the spontaneously chiral symmetry breaking and the color confinement.. 

• Formation of massive primordial stars as origin of objects in the early universe. • Supernova explosions might be visible to the most