9.6 Linear Classifier 2

Error for BLC: 7
Error for LSC: 7
Optimization terminated successfully.
         Current function value: 0.085673
         Iterations 10
                           Logit Regression Results                           
==============================================================================
Dep. Variable:                      y   No. Observations:                  200
Model:                          Logit   Df Residuals:                      197
Method:                           MLE   Df Model:                            2
Date:                Fri, 06 Jun 2025   Pseudo R-squ.:                  0.8764
Time:                        14:55:28   Log-Likelihood:                -17.135
converged:                       True   LL-Null:                       -138.63
Covariance Type:            nonrobust   LLR p-value:                 1.720e-53
==============================================================================
                 coef    std err          z      P>|z|      [0.025      0.975]
------------------------------------------------------------------------------
const          1.3762      0.956      1.440      0.150      -0.497       3.249
x1             2.3562      0.561      4.202      0.000       1.257       3.455
x2             4.5737      1.233      3.710      0.000       2.157       6.990
==============================================================================

Possibly complete quasi-separation: A fraction 0.22 of observations can be
perfectly predicted. This might indicate that there is complete
quasi-separation. In this case some parameters will not be identified.
Error for Logistic Regression: 8
Binary Logistic Regression Error: 0.027291113495482383