130k views
2 votes
Consider the accompanying data file to estimate the logistic model for predicting loyalty (Loyal equals 1 if the member stayed at the gym for at least one year, 0 otherwise). Predictor variables include the member's age and income (in $1,000 ) and whether he/she joined on a single plan (Single =1 if on a single plan, 0 otherwise). a. Use the estimated model to predict the odds for a 50-year-old member with income of $80,000 and on a single plan. Note: Do not round intermediate calculations and round final answer to 2 decimal places.

User Manzhikov
by
7.4k points

2 Answers

6 votes

Final answer:

To predict the odds for a 50-year-old member with an income of $80,000 and on a single plan, use the logistic model.

Step-by-step explanation:

To predict the odds for a 50-year-old member with an income of $80,000 and on a single plan, we can use the logistic model. The logistic model can be written as:



Loyal = α + β * Age + γ * Income + δ * Single



Plugging in the values for the given member:



Age = 50



Income = $80,000 (converted to $80)



Single = 1



Substituting these values into the logistic model, we get:



Loyal = α + β * 50 + γ * 80 + δ * 1



Calculate the predicted odds using the logistic model equation.

User Omer Sagi
by
7.4k points
3 votes

Final answer:

The logistic model can be used to predict the odds of a 50-year-old member with an income of $80,000 and on a single plan being loyal to the gym. The odds are approximately 0.989.

Step-by-step explanation:

To predict the odds for a 50-year-old member with an income of $80,000 and on a single plan, we can use the logistic model. The logistic model predicts the probability of an event occurring, in this case, the probability of being loyal to the gym (Loyal equals 1). The model can be written as:

log(ox/(1-ox)) = 7.145 - 0.091Age + 0.020Income - 0.256Single

where ox is the odds of being loyal. We can substitute the values for age, income, and single plan into the equation and solve for ox:

log(ox/(1-ox)) = 7.145 - 0.091(50) + 0.020(80) - 0.256(1)

ox/(1-ox) = e^(7.145 - 0.091(50) + 0.020(80) - 0.256(1))

ox = (e^(7.145 - 0.091(50) + 0.020(80) - 0.256(1))) / (1 + e^(7.145 - 0.091(50) + 0.020(80) - 0.256(1)))

Using a calculator, we can find that ox ≈ 0.989, which means the odds of a 50-year-old member with an income of $80,000 on a single plan being loyal to the gym are approximately 0.989.

User Cyan Baltazar
by
7.0k points