True or false: The values true/false or 0/1 would both be valid combinations for the dependent variable in a logistic regression model.

Prepare for the Data Mining Test with our comprehensive quizzes. Practice with various question types, each with hints and explanations. Boost your understanding and ensure success on your exam!

Multiple Choice

True or false: The values true/false or 0/1 would both be valid combinations for the dependent variable in a logistic regression model.

Explanation:
Binary outcomes are what logistic regression is built to predict. The dependent variable should have two states, representing the event of interest. These two states can be represented in data as 0/1 numeric values or as boolean values true/false. In practice, true maps to 1 and false maps to 0, so the model estimates P(Y = 1 | X). As long as there are exactly two categories and the mapping is consistent (which is generally handled by the software), either encoding works. This is why the statement is true. If you had more than two classes, you’d use a different setup, but for a binary outcome, 0/1 and true/false are both valid representations.

Binary outcomes are what logistic regression is built to predict. The dependent variable should have two states, representing the event of interest. These two states can be represented in data as 0/1 numeric values or as boolean values true/false. In practice, true maps to 1 and false maps to 0, so the model estimates P(Y = 1 | X). As long as there are exactly two categories and the mapping is consistent (which is generally handled by the software), either encoding works. This is why the statement is true. If you had more than two classes, you’d use a different setup, but for a binary outcome, 0/1 and true/false are both valid representations.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy