Java Statistical Classes

jsc.tests
Class H1

java.lang.Object
  |
  +--jsc.tests.H1

public class H1
extends Object

Defines constants for simple alternative hypotheses in significance tests.

Version:
1.0
Author:
A. J. Bertie.

Field Summary
static H1 GREATER_THAN
          Indicates a one-sided test in which the alternative hypothesis is in some sense "greater than" compared to the null hypothesis.
static H1 LESS_THAN
          Indicates a one-sided test in which the alternative hypothesis is in some sense "less than" compared to the null hypothesis.
static H1 NOT_EQUAL
          Indicates a two-sided test in which the alternative hypothesis is in some sense "not equal" compared to the null hypothesis.
 
Method Summary
 String toString()
           
static Tail toTail(H1 alternative)
          Common tail probability equivalent to alternative hypothesis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GREATER_THAN

public static final H1 GREATER_THAN
Indicates a one-sided test in which the alternative hypothesis is in some sense "greater than" compared to the null hypothesis. For example, in a one-sample test it indicates that the parameter is greater than that of the null hypothesis. In a two-sample test it could indicate that the parameter of population A is greater than that of population B, or that population A is stochastically greater than population B.


LESS_THAN

public static final H1 LESS_THAN
Indicates a one-sided test in which the alternative hypothesis is in some sense "less than" compared to the null hypothesis. For example, in a one-sample test it indicates that the parameter is less than that of the null hypothesis. In a two-sample test it could indicate that the parameter of population A is less than that of population B, or that population A is stochastically less than population B.


NOT_EQUAL

public static final H1 NOT_EQUAL
Indicates a two-sided test in which the alternative hypothesis is in some sense "not equal" compared to the null hypothesis. For example, in a one-sample test it indicates that the parameter is not equal to that of the null hypothesis. In a two-sample test it could indicate that the parameter of population A is not equal to that of population B, or that population A is stochastically not equal to population B.

Method Detail

toString

public String toString()
Overrides:
toString in class Object

toTail

public static Tail toTail(H1 alternative)
Common tail probability equivalent to alternative hypothesis. This is a convenience method for returning the type of tail probability that often (but not always) corresponds to a simple alternative hypothesis. Returns Tail.LOWER, Tail.TWO or Tail.UPPER if alternative is H1.LESS_THAN, H1.NOT_EQUAL or H1.GREATER_THAN respectively.

Parameters:
alternative - the alternative hypothesis.
Returns:
the tail type.

Java Statistical Classes

Copyright © Andrew James Bertie, 2005, all rights reserved. Updated 12th Aug 2005