0
$\begingroup$

I have been into discussion about the usefulness of applied PCA before Logistic Regression for some classification task, the claim is as follow:

In some cases, Applying PCA and Logistic Regression together leads to almost the same separating hyperplane as just Logistic Regression alone (PCA + LR ∼ LR ). In such cases there is a specific relation R between the projection hyperplane of PCA and separating hyperplane of LR.

What is the relation R? and why R is necessary and sufficient for PCA + LR ∼ LR?

$\endgroup$
2
  • 1
    $\begingroup$ Welcome to Cross Validated! How are you choosing the principal components to include in the logistic regression? Do you include all of them? One of them? Some of them? $\endgroup$
    – Dave
    Commented Nov 18, 2022 at 11:27
  • $\begingroup$ It is a theoretical questions with no further details, I was asked this question to figure out the relationship R, but still have no idea about it, even though I understand how LR and PCA works. $\endgroup$
    – MGD
    Commented Nov 18, 2022 at 12:22

1 Answer 1

1
$\begingroup$

enter image description here The version without PCA is depicted first. You multiply the input by the vector of weights that define the normal of the hyperplane.

The version with PCA is depicted as second. You multiply the input by the PCA projection first, then multiply it by the (much shorter) weight vector.

The equivalence of LR+PCA and LR only happens if the black parts in the first and second cases equal each other.

An intuition can illustrate the situation: with PCA, you chose the hyperplane from limited options only (dashed). It is equivalent if it is equal to the version without PCA. enter image description here

This can happen if and only if there is a random vector $z\in \mathbb{R}^n$ that predicts a random variable $y$ that depends on $z$, and this dependence corresponds to logistic regression. If there is a matrix $M\in\mathbb{R}^{n\times m}$ with $n<m$ and this matrix corresponds to an inverse PCA transformation, then $x=Mz$ is something that has equivalent link to $y$.

In the real world, this can happen if $x$ contains a lot of irrelevant information whereas $z$ contains the relevant information for predicting $y$. However, it must follow the PCA properties.

$\endgroup$
1
  • $\begingroup$ I understand your point but still not answers the question, when will the black parts equal each other? is there specific situation to this? this is the main question here, will it depend on the spread of the data? it's variance or what? $\endgroup$
    – MGD
    Commented Nov 18, 2022 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.