Cody Warren created MATH-1423:
---------------------------------
Summary: SingularMatrixException on Non-Square Matrix
Key: MATH-1423
URL: https://issues.apache.org/jira/browse/MATH-1423
Project: Commons Math
Issue Type: Bug
Affects Versions: 3.5
Environment: Oracle JDK 1.8.121
Reporter: Cody Warren
Priority: Minor
I'm trying to implement an OLSMultipleLinearRegression class in the apache
commons math java library and I keep getting a "SingularMatrixException". This
is confusing to me because my data isn't even square (60 x 2160) which I
thought was a requirement for a Singular Matrix.
I've played with the data by pruning rows off and adding them back on, and
found differing numbers of rows that will work/fail with this dataset.
Also, I've checked my matrix for columns or rows that are full of zeros as
suggested in this post:
Using Apache Library for OLS Regression : Matrix is singular exception
Is there something else with this library that I don't understand? Is there a
way I can make this more robust or predict a singular array beforehand?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)