|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.inferential.CorrelationRegression
public class CorrelationRegression
Linear correlation and regression between for two variables.
Constructor Summary | |
---|---|
CorrelationRegression(java.util.Vector<java.lang.Double> x,
java.util.Vector<java.lang.Double> y,
double sig)
Constructor. |
Method Summary | |
---|---|
double |
CoefficientOfDetermination()
Returns the coefficient of determination r^2, the amount of the variation in y that is explained by the regression line. |
double |
CriticalValue_r(double significance)
Returns the critical value for r corresponding to the given significance. |
double |
CriticalValue_t(double significance)
|
int |
DOF()
Returns the degrees of freedom. |
double |
ExplainedVariation()
Returns the explained variation (sum of differences between the predicted y value and the mean). |
double |
LinearCorrelationCoeff()
Returns the linear correlation coefficient. |
int |
N()
Returns the number of data pairs |
double |
PValue()
Returns the p-Value corresponding to the test statistic. |
double |
RegressionEqSlope()
Returns the slope of the regression equation b1. |
double |
RegressionEqYInt()
Returns the y-intercept of the regression equation b0. |
double |
StandardError()
|
double |
TestStatistic_t()
Returns the test statistic t using the linear correlation correlation r. |
java.lang.String |
toString()
|
double |
TotalVariation()
Returns the total variation (sum of differences between the y value and the mean). |
double |
UnexplainedVariation()
Returns the unexplained variation (sum of differences between the y value and the predicted y value). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CorrelationRegression(java.util.Vector<java.lang.Double> x, java.util.Vector<java.lang.Double> y, double sig)
x
- independent variabley
- dependent variablesig
- significanceMethod Detail |
---|
public int N()
public int DOF()
public double LinearCorrelationCoeff()
public double TestStatistic_t()
public double RegressionEqSlope()
public double RegressionEqYInt()
public double TotalVariation()
public double ExplainedVariation()
public double UnexplainedVariation()
public double CoefficientOfDetermination()
public double StandardError()
public double CriticalValue_r(double significance)
significance
- significance
public double CriticalValue_t(double significance)
public double PValue()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |