|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.statistics.inferential.MultipleRegression
public class MultipleRegression
Multiple regression.
| Constructor Summary | |
|---|---|
MultipleRegression(java.util.Vector<java.util.Vector<java.lang.Double>> IndependentVars,
java.util.Vector<java.lang.Double> DependentVar)
Constructor. |
|
| Method Summary | |
|---|---|
double |
AdjustedCoefficientOfDetermination()
Returns the adjusted coefficient of determination. |
double |
CoefficientOfDetermination()
Returns the coefficient of determination r^2, the amount of the variation in y that is explained by the regression line. |
double |
ExplainedVariation()
Returns the explained variation (the sum of squared differences between the predicted y value and the average y value). |
int |
NumIndepVar()
Returns the number of independent variables. |
double |
PValue()
Returns the p-Value of test statistics. |
Jama.Matrix |
RegressionEqCoefficients()
Returns the coefficients of the regression equation y = b_0 + b_1 * x_1 + ... |
int |
SampleSize()
Returns the sample size. |
double |
StandardError()
Returns the standard error of estimate, sqrt(unexplained variation / (n-2)). |
double |
TestStatistics()
Returns the test statistics F. |
double |
TotalVariation()
Returns the total variation (the sum of squared differences between the y values and the average y value). |
double |
UnexplainedVariation()
Returns the unexplained variation (the sum of squared differences between the predicted y value and the y value). |
Jama.Matrix |
XVar(int i)
Returns the i th value of all the independent variables as a 1 by k matrix. |
double |
YPredicted(Jama.Matrix var)
Returns the predicted y value given a vector of values of the independent variables using the regression equation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleRegression(java.util.Vector<java.util.Vector<java.lang.Double>> IndependentVars,
java.util.Vector<java.lang.Double> DependentVar)
IndependentVars - a vector of vectors of double, where each
vector is an independent variable with the same number of valuesDependentVar - a vector of double, which has the same number of
values as the independent variables| Method Detail |
|---|
public Jama.Matrix RegressionEqCoefficients()
public double YPredicted(Jama.Matrix var)
var - a vector of double that has the same number of values as
the number of independent variables.
public double TotalVariation()
public Jama.Matrix XVar(int i)
i - index
public double ExplainedVariation()
public double UnexplainedVariation()
public double CoefficientOfDetermination()
public double AdjustedCoefficientOfDetermination()
public double StandardError()
public double TestStatistics()
public double PValue()
public int SampleSize()
public int NumIndepVar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||