Binary Outcomes & Log-Odds - Biostatistics

Start this quiz

  1. A logistic regression model predicting treatment response includes gender (coefficient = 0.5, where 1 = female, 0 = male) and age (coefficient = 0.02 per year). If the intercept is -1.8, what is the odds ratio for treatment response comparing a 50-year-old female to a 40-year-old male?
    Answer: e(0.5+0.02×10)=e0.7=2.01e^{(0.5 + 0.02 \times 10)} = e^{0.7} = 2.01 In logistic regression the odds ratio between two people is ee raised to the difference in their log-odds; the intercept appears in both and cancels. The woman differs by gender (+0.5) and by 10 years of age (0.02×10=0.20.02 \times 10 = 0.2), so the log-odds difference is 0.5+0.2=0.70.5 + 0.2 = 0.7 and the odds ratio is e0.7≈2.01e^{0.7} \approx 2.01. Adding e0.5+e0.2e^{0.5} + e^{0.2} is wrong because exponentiated effects combine by multiplication, not addition, which gives 2.87. Using e0.5=1.65e^{0.5} = 1.65 alone ignores the 10-year age difference. Using the woman's full age, e0.02×50e^{0.02 \times 50}, ignores that the comparison only cares about the age difference, giving 4.49. Computing e−0.31+e−0.3≈0.43\frac{e^{-0.3}}{1 + e^{-0.3}} \approx 0.43 gives the woman's predicted probability of response, not an odds ratio.
  2. A researcher reports that increasing age by 10 years corresponds to a log-odds change of 0.693 for developing hypertension. If a 40-year-old has a 25% probability of hypertension, what is the approximate probability for a 50-year-old?
    Answer: 40% For the 40-year-old, odds = 0.25/0.75 = 0.333. The log-odds change of 0.693 means OR = exp(0.693) = 2.0. For the 50-year-old, odds = 0.333 × 2.0 = 0.667. Converting to probability: 0.667/(1+0.667) = 0.40 or 40%. Choice B uses additive rather than multiplicative scaling. Choice C applies the coefficient incorrectly. Choice D represents a common error in odds-to-probability conversion.
  3. A study examining factors associated with treatment response in depression patients fits a logistic regression model. The output shows the following coefficients: Intercept: -0.847, Age (per year): -0.023, Treatment A vs. Control: 1.099, Severity Score (per point): -0.182.
    Based on the logistic regression output above, which statement correctly describes the relationship between age and treatment response?
    Answer: Each additional year of age decreases the odds of response by approximately 2.3% In logistic regression a coefficient is a change in log-odds per unit. For age, b=−0.023b = -0.023, so the odds ratio per year is e−0.023≈0.977e^{-0.023} \approx 0.977. Multiplying the odds by 0.977 lowers them by 1−0.977=0.0231 - 0.977 = 0.023, about 2.3% per additional year. Saying the odds increase by a factor of 0.977 gets the number right but the direction wrong, since any factor below 1 is a decrease. A drop of 2.3 percentage points in probability confuses odds with probability; the change in probability depends on the baseline and is not constant. A 4.5% drop roughly doubles the coefficient, a slip that has no basis in the output.
  4. In a logistic model, the log-odds coefficient for BMI is 0.04 per kg/m². A patient with BMI 25 has predicted log-odds of -1.5. What are the predicted log-odds for a patient with BMI 35?
    Answer: −1.5+0.04(35−25)=−1.1-1.5 + 0.04(35 - 25) = -1.1 When you encounter logistic regression questions involving log-odds calculations, remember that coefficients represent the change in log-odds per unit change in the predictor variable. The key is understanding how to apply these coefficients to predict outcomes for new values. The correct approach uses the fundamental principle that log-odds change linearly with predictor variables. Since the BMI coefficient is 0.04 per kg/m², each unit increase in BMI increases the log-odds by 0.04. For a patient moving from BMI 25 to BMI 35 (a 10-unit increase), the log-odds increase by 0.04×10=0.40.04 \times 10 = 0.4. Adding this to the baseline log-odds: −1.5+0.4=−1.1-1.5 + 0.4 = -1.1. Answer A correctly applies this logic. Answer B incorrectly multiplies the coefficient by the new BMI value (35) rather than the change in BMI, ignoring that we already know the log-odds at BMI 25. Answer C makes a conceptual error by involving the exponential function and multiplication, confusing log-odds calculations with odds ratio transformations. Answer D commits the same mistake as B, multiplying by the absolute BMI value instead of the change, and coincidentally arrives at the same incorrect result through different arithmetic. Remember this pattern: in linear relationships like logistic regression's log-odds, when you know the outcome at one predictor value, calculate the new outcome by adding (coefficient × change in predictor). Don't multiply by absolute values or introduce exponential functions unless you're specifically converting between log-odds and odds.
  5. A logistic regression model examining the relationship between smoking status and lung cancer yields a coefficient of 1.386 for the smoking variable. If the baseline probability of lung cancer for non-smokers is 0.02, what is the predicted probability of lung cancer for smokers?
    Answer: 0.075 The coefficient 1.386 is a log-odds ratio, so the odds ratio is e1.386≈4.0e^{1.386} \approx 4.0. Work in odds, then convert back. Non-smoker odds: 0.020.98≈0.0204\frac{0.02}{0.98} \approx 0.0204. Smoker odds: 0.0204×4.0≈0.08160.0204 \times 4.0 \approx 0.0816. Smoker probability: 0.08161+0.0816≈0.075\frac{0.0816}{1 + 0.0816} \approx 0.075. Two quick checks rule out the other values. A probability is always a little smaller than its odds, so the answer must be just under 0.0816; 0.094 is larger than the odds and cannot be right. Values of 0.062 or 0.051 imply an odds ratio of only about 3.2 or 2.6, not 4, so they understate the coefficient's effect. Multiplying the probability 0.02 directly by 4 gives 0.08, treating the odds ratio as a risk ratio.
  6. A logistic regression model predicting treatment dropout has the equation: log-odds = -1.5 + 0.4(anxiety_score). At what anxiety score is the predicted probability of dropout equal to 80%?
    Answer: Anxiety score = ln⁡(0.8/0.2)+1.50.4=\frac{\ln(0.8/0.2) + 1.5}{0.4} =7.22 When you encounter logistic regression problems asking for a specific probability threshold, you need to work backwards from the probability to find the predictor value using the relationship between odds, log-odds, and probability. Starting with 80% probability, you first convert this to odds: odds = probability/(1-probability) = 0.8/0.2 = 4. Since the logistic regression equation gives you log-odds, you take the natural logarithm: log-odds = ln(4) ≈ 1.386. Now you can solve for the anxiety score using the given equation: log-odds = -1.5 + 0.4(anxiety_score). Substituting: 1.386 = -1.5 + 0.4(anxiety_score). Rearranging: anxiety_score = (1.386 + 1.5)/0.4 = 2.886/0.4 ≈ 7.22. This matches the setup in choice A: ln⁡(0.8/0.2)+1.50.4\frac{\ln(0.8/0.2) + 1.5}{0.4}. Choice B incorrectly uses the probability (0.8) directly instead of converting to log-odds first—you can't substitute probability into a log-odds equation. Choice C takes the natural log of the probability rather than the odds, missing the critical step of converting 0.8 to odds of 4. Choice D ignores the probability requirement entirely and just solves for when the linear predictor equals zero. Study tip: Remember the sequence for logistic regression probability problems: probability → odds → log-odds → solve for predictor. The key conversion is odds = p/(1-p), then take the natural log. Always convert probabilities to log-odds when working with logistic regression equations.
  7. In a logistic regression for disease diagnosis, a biomarker has a coefficient of 0.25 per unit. The baseline log-odds (biomarker = 0) is -4.0. At what biomarker level do the odds of disease equal 1.0?
    Answer: Biomarker = 16 units When you encounter logistic regression problems involving odds, remember that you're working with the relationship between log-odds (logit) and the predictor variables. The logistic regression equation is: log-odds = intercept + coefficient × predictor. To find where odds equal 1.0, you need to determine when log-odds equals 0 (since ln(1) = 0). Setting up the equation: 0 = -4.0 + 0.25 × biomarker level. Solving for the biomarker level: 0.25 × biomarker = 4.0, so biomarker = 4.0 ÷ 0.25 = 16 units. Let's verify: At biomarker = 16, log-odds = -4.0 + 0.25(16) = -4.0 + 4.0 = 0. Since e⁰ = 1, the odds equal 1.0, confirming answer A is correct. Answer B (4 units) represents the value you get before dividing by the coefficient—this would give log-odds = -4.0 + 0.25(4) = -3.0, making odds = e⁻³ ≈ 0.05. Answer C (20 units) might result from incorrectly adding rather than dividing: -4.0 + 0.25(20) = 1.0, giving odds ≈ 2.7. Answer D (0.25 units) confuses the coefficient value with the biomarker level, yielding log-odds = -4.0 + 0.25(0.25) ≈ -3.94. Remember this key strategy: when odds equal 1.0, log-odds must equal 0. Set your logistic equation equal to zero and solve algebraically. This approach works for any logistic regression odds calculation.
  8. A logistic model for predicting surgical success includes surgeon experience (coefficient = 0.05 per year) and patient age (coefficient = -0.03 per year). What is the odds ratio comparing a 30-year-old patient with a surgeon having 20 years experience to a 40-year-old patient with a surgeon having 10 years experience?
    Answer: e0.05×(20−10)+(−0.03)×(30−40)=e0.5+0.3=e0.8=2.23e^{0.05 \times (20-10) + (-0.03) \times (30-40)} = e^{0.5 + 0.3} = e^{0.8} = 2.23 When comparing odds between two groups in logistic regression, you need to calculate the difference in the linear predictor (log-odds) for each variable, then exponentiate to get the odds ratio. The logistic model is: log-odds = intercept + 0.05(surgeon experience) - 0.03(patient age). To compare two scenarios, you calculate the difference in their linear predictors. For the 30-year-old with 20-year surgeon versus the 40-year-old with 10-year surgeon, the difference is: Δ(log-odds) = [0.05 × (20-10)] + [(-0.03) × (30-40)] = 0.05 × 10 + (-0.03) × (-10) = 0.5 + 0.3 = 0.8 The odds ratio is e0.8=2.23e^{0.8} = 2.23, making answer A correct. Answer B calculates the absolute log-odds for just one scenario (e0.05×20+(−0.03)×30e^{0.05 × 20 + (-0.03) × 30}) rather than the difference between scenarios. This gives you odds for one group, not a comparison between groups. Answer C only considers the surgeon experience difference (e0.05×10e^{0.05 × 10}) while ignoring the patient age difference entirely. This incomplete calculation misses half the comparison. Answer D only accounts for the age difference using the wrong baseline (e(−0.03)×10e^{(-0.03) × 10}), ignoring surgeon experience and using an incorrect age comparison. Remember: odds ratios in logistic regression require calculating the difference in linear predictors for all relevant variables, then exponentiating. Always include every variable that differs between your comparison groups—partial calculations lead to wrong conclusions.
  9. In a logistic model predicting hospital mortality, the coefficient for severity score is 0.15 per point. A patient with a severity score of 20 has a predicted probability of death of 0.6. What is the predicted probability for a patient with a severity score of 25?
    Answer: 11+e−(ln⁡(0.6/0.4)+0.15×5)=0.76\frac{1}{1 + e^{-(\ln(0.6/0.4) + 0.15 \times 5)}} = 0.76 Logistic regression is linear in the log-odds. At a score of 20 the odds of death are 0.60.4=1.5\frac{0.6}{0.4} = 1.5, so the log-odds are ln⁡(1.5)≈0.405\ln(1.5) \approx 0.405. Raising the score by 5 points adds 0.15×5=0.750.15 \times 5 = 0.75, giving log-odds of 1.1551.155. Converting back, p=11+e−1.155=11+0.315≈0.76p = \frac{1}{1 + e^{-1.155}} = \frac{1}{1 + 0.315} \approx 0.76. Multiplying the odds 1.5 by e0.75≈2.117e^{0.75} \approx 2.117 correctly gives the new odds, 3.18, but stops before turning odds into a probability. Adding 0.75 directly to 0.6 or multiplying 0.6 by a factor treats the coefficient as acting on probability, and each gives a value above 1, which no probability can be.
  10. A logistic regression analysis shows that smoking status has a coefficient of 0.693. The baseline probability of lung disease for non-smokers is 0.1. What is the probability of lung disease for smokers?
    Answer: 11+e−(ln⁡(0.1/0.9)+0.693)=0.182\frac{1}{1 + e^{-(\ln(0.1/0.9) + 0.693)}} = 0.182 When you encounter logistic regression problems, you're working with the logit function that models the log-odds of an outcome. The key insight is that logistic regression coefficients represent changes in log-odds, and you need to convert between probabilities and odds to solve these problems properly. To find the probability for smokers, you first convert the baseline probability to odds, then apply the coefficient. For non-smokers with probability 0.1, the odds are 0.11−0.1=0.10.9\frac{0.1}{1-0.1} = \frac{0.1}{0.9}. The log-odds (logit) is ln⁡(0.1/0.9)\ln(0.1/0.9). Since the smoking coefficient is 0.693, the log-odds for smokers becomes ln⁡(0.1/0.9)+0.693\ln(0.1/0.9) + 0.693. Converting back to probability using the inverse logit function gives 11+e−(ln⁡(0.1/0.9)+0.693)=0.182\frac{1}{1 + e^{-(\ln(0.1/0.9) + 0.693)}} = 0.182, making A correct. B incorrectly treats the coefficient as an additive probability change, but logistic regression works on the log-odds scale, not the probability scale directly. C multiplies the baseline probability by e0.693=2e^{0.693} = 2, which conceptually relates to the odds ratio but ignores that this multiplication should happen in odds space, not probability space. D appears to use some form of odds calculation but applies an incorrect formula that doesn't follow logistic regression principles. Remember: logistic regression coefficients affect log-odds, so always convert probabilities to odds, apply the coefficient, then convert back to probability using the logit function.
  11. In a logistic regression, the log-odds of disease occurrence is modeled as -4.0 + 0.1(age). At what age does the predicted probability of disease equal 50%?
    Answer: Age = 40 years This question tests your understanding of logistic regression and the relationship between log-odds and probability. When you see a logistic regression equation, remember that it models log-odds, not probability directly, and you'll need to convert between these measures. The logistic regression equation gives us: log-odds = -4.0 + 0.1(age). A 50% probability corresponds to log-odds of 0, because when P = 0.5, the odds are 1:1, and ln(1) = 0. Setting the equation equal to 0: 0 = -4.0 + 0.1(age). Solving for age: 0.1(age) = 4.0, so age = 40 years. Let's verify why each answer choice works or fails. Choice A (40 years) gives us log-odds = -4.0 + 0.1(40) = 0, which converts to exactly 50% probability using the formula P=e01+e0=12=0.5P = \frac{e^{0}}{1 + e^{0}} = \frac{1}{2} = 0.5. Choice B (45 years) produces log-odds = 0.5, giving a probability greater than 50%. Choice C (50 years) yields log-odds = 1.0, resulting in about 73% probability. Choice D (35 years) gives log-odds = -0.5, producing a probability less than 50%. Remember this key relationship: in logistic regression, 50% probability always occurs when log-odds equals zero. This creates a simple algebraic equation to solve. Also, the coefficient tells you the direction—positive coefficients mean probability increases with the predictor variable, as we see here with age.
  12. A researcher models the log-odds of disease as: ln⁡(p1−p)=−3.2+0.4X1+0.6X2\ln\left(\frac{p}{1-p}\right) = -3.2 + 0.4X_1 + 0.6X_2. If X1=2X_1 = 2 and X2=1X_2 = 1, and X2X_2 increases to 3 while X1X_1 remains constant, by what factor do the odds change?
    Answer: 3.32 When you encounter logistic regression problems involving changes in predictor variables, focus on how coefficients translate to odds ratios. In logistic regression, the coefficient for a variable represents the change in log-odds per unit increase in that variable. Let's calculate the odds at both conditions. Initially with X1=2X_1 = 2 and X2=1X_2 = 1: ln⁡(p1−p)=−3.2+0.4(2)+0.6(1)=−3.2+0.8+0.6=−1.8\ln\left(\frac{p}{1-p}\right) = -3.2 + 0.4(2) + 0.6(1) = -3.2 + 0.8 + 0.6 = -1.8 So the initial odds are e−1.8=0.165e^{-1.8} = 0.165. After X2X_2 increases to 3 while X1X_1 stays at 2: ln⁡(p1−p)=−3.2+0.4(2)+0.6(3)=−3.2+0.8+1.8=−0.6\ln\left(\frac{p}{1-p}\right) = -3.2 + 0.4(2) + 0.6(3) = -3.2 + 0.8 + 1.8 = -0.6 The new odds are e−0.6=0.549e^{-0.6} = 0.549. The factor by which odds changed is 0.5490.165=3.32\frac{0.549}{0.165} = 3.32, confirming answer (B). Alternatively, since X2X_2 increased by 2 units and has coefficient 0.6, the odds multiply by e0.6×2=e1.2=3.32e^{0.6 \times 2} = e^{1.2} = 3.32. (A) 1.82 likely results from using e0.6e^{0.6}, the odds ratio for just a 1-unit increase in X2X_2. (C) 6.05 might come from incorrectly adding rather than multiplying odds ratios. (D) 2.48 could result from calculation errors or misapplying the exponential function. Strategy tip: Remember that in logistic regression, when a variable increases by kk units, the odds multiply by eβ×ke^{\beta \times k} where β\beta is the coefficient. This shortcut saves time compared to calculating odds at each condition separately.
  13. A logistic regression model for predicting diabetes includes family history (coefficient = 1.1). The model intercept is -2.3. What is the difference in predicted probabilities between individuals with and without a family history of diabetes?
    Answer: 11+e−(−1.2)−11+e−(−2.3)=0.231−0.091=0.140\frac{1}{1+e^{-(-1.2)}} - \frac{1}{1+e^{-(-2.3)}} = 0.231 - 0.091 = 0.140 The predicted probability is p=11+e−(β0+β1x)p = \frac{1}{1+e^{-(\beta_0 + \beta_1 x)}}. With family history (x=1x = 1) the linear predictor is −2.3+1.1=−1.2-2.3 + 1.1 = -1.2, so p=11+e1.2=11+3.320≈0.231p = \frac{1}{1+e^{1.2}} = \frac{1}{1 + 3.320} \approx 0.231. Without it (x=0x = 0) the predictor is −2.3-2.3, so p=11+e2.3=11+9.974≈0.091p = \frac{1}{1+e^{2.3}} = \frac{1}{1 + 9.974} \approx 0.091. The difference is 0.231−0.091=0.1400.231 - 0.091 = 0.140. The value e1.1−1=2.00e^{1.1} - 1 = 2.00 is the odds ratio minus 1, a change in odds rather than probability, and no probability difference can exceed 1. The value e1.11+e1.1=0.75\frac{e^{1.1}}{1+e^{1.1}} = 0.75 ignores the intercept. The bare coefficient 1.1 is a change in log-odds, and 1.11+1.1\frac{1.1}{1 + 1.1} has no meaning in this model.
  14. In a logistic regression predicting hospital readmission, the log-odds for patients with diabetes is -1.2 and for patients without diabetes is -2.5. What is the correct interpretation of the diabetes effect?
    Answer: Diabetes increases the odds of readmission by a factor of 3.67 The difference in log-odds is -1.2 - (-2.5) = 1.3. The odds ratio is exp(1.3) = 3.67, meaning diabetes increases odds by a factor of 3.67. Choice B incorrectly calculates a percentage decrease. Choice C confuses odds ratio with probability difference. Choice D uses exp(1.0) instead of exp(1.3), representing a common calculation error.
  15. A logistic regression model includes an interaction term between gender (male=1, female=0) and treatment (active=1, placebo=0). The coefficients are: Gender: 0.5, Treatment: 1.2, Gender×Treatment: -0.8. What is the log-odds of the outcome for males receiving active treatment, relative to females receiving placebo?
    Answer: 0.9 When you encounter logistic regression with interaction terms, you need to carefully construct the linear predictor by including all relevant main effects and interactions for your specific covariate pattern. For males receiving active treatment, you have Gender=1 and Treatment=1. The linear predictor becomes: log-odds=β0+βGender×1+βTreatment×1+βGender×Treatment×(1×1)\text{log-odds} = \beta_0 + \beta_{\text{Gender}} \times 1 + \beta_{\text{Treatment}} \times 1 + \beta_{\text{Gender×Treatment}} \times (1 \times 1) Since this asks for log-odds relative to females receiving placebo (the reference group where Gender=0 and Treatment=0), the intercept β0\beta_0 cancels out. You're left with: Relative log-odds=0.5(1)+1.2(1)+(−0.8)(1)=0.5+1.2−0.8=0.9\text{Relative log-odds} = 0.5(1) + 1.2(1) + (-0.8)(1) = 0.5 + 1.2 - 0.8 = 0.9 This confirms answer D is correct. A) 2.5 likely comes from adding all coefficients without considering the negative interaction: 0.5 + 1.2 + 0.8 = 2.5. B) 1.7 results from ignoring the interaction term entirely: 0.5 + 1.2 = 1.7. C) 0.4 might stem from incorrectly calculating the interaction effect or mishandling the reference group comparison. The key insight is that interaction terms modify the effect of main predictors. Here, the negative interaction (-0.8) means the treatment effect is actually weaker in males than females. Always include interaction terms when both constituent variables are "turned on" (equal to 1), and remember that relative comparisons eliminate the intercept term.
  16. In a study of surgical complications, the log-odds equation is: log-odds = -3.5 + 0.6(surgery_type) + 0.05(age), where surgery_type is coded as 0 for laparoscopic and 1 for open surgery. What is the odds ratio comparing open to laparoscopic surgery for patients of the same age?
    Answer: e0.6=1.82e^{0.6} = 1.82 When you encounter a logistic regression equation asking for an odds ratio between two groups, you need to focus on how the coefficient translates to the odds ratio for that variable. In this log-odds equation, the coefficient for surgery_type is 0.6. Since surgery_type is coded as 0 for laparoscopic and 1 for open surgery, this coefficient represents the change in log-odds when moving from laparoscopic (0) to open surgery (1). To convert from log-odds to an odds ratio, you exponentiate the coefficient. Therefore, the odds ratio comparing open to laparoscopic surgery is e0.6=1.82e^{0.6} = 1.82, making answer A correct. Let's examine why the other options are wrong. Answer B (e0.65=1.92e^{0.65} = 1.92) incorrectly adds both coefficients together, but you only need the surgery_type coefficient since you're comparing surgery types at the same age. Answer C (e−2.9=0.055e^{-2.9} = 0.055) mistakenly uses the intercept plus the surgery coefficient, but the intercept represents baseline log-odds, not the comparison between groups. Answer D simply divides the coefficients (0.60.05=12\frac{0.6}{0.05} = 12), but this arithmetic operation has no meaning in logistic regression - you must exponentiate coefficients to get odds ratios. Remember this key principle: in logistic regression, the odds ratio for any variable equals ecoefficiente^{\text{coefficient}}. The intercept and other variables don't factor into calculating a specific odds ratio when comparing groups, assuming other variables are held constant.
  17. A logistic model predicting surgical complications includes BMI as a continuous variable with coefficient 0.08. If a patient with BMI 25 has a predicted probability of complications of 0.15, what is the predicted probability for a patient with BMI 30?
    Answer: 0.21 In logistic regression the coefficient changes the log-odds. Start with the odds at BMI 25: 0.150.85≈0.1765\frac{0.15}{0.85} \approx 0.1765. A 5-unit increase adds 5×0.08=0.405 \times 0.08 = 0.40 to the log-odds, which multiplies the odds by e0.40≈1.492e^{0.40} \approx 1.492, giving new odds of about 0.2633. Converting back, P=0.26331.2633≈0.208P = \frac{0.2633}{1.2633} \approx 0.208, which rounds to 0.21. Multiplying the probability itself by 1.492 gives 0.15×1.492≈0.220.15 \times 1.492 \approx 0.22, a common mistake. Stopping at the starting odds (0.176) gives about 0.18. Reporting the new odds of about 0.26 as if they were a probability leads toward 0.27.
  18. A logistic model for predicting readmission has coefficients: intercept = -2.8, length_of_stay = 0.12 per day, comorbidities = 0.4 per condition. A patient with 5 days length of stay and 2 comorbidities has what probability of readmission?
    Answer: 11+e−(−2.8+0.12×5+0.4×2)=11+e1.4=0.198\frac{1}{1 + e^{-(-2.8 + 0.12 \times 5 + 0.4 \times 2)}} = \frac{1}{1 + e^{1.4}} = 0.198 Substitute into the full model. The linear predictor is −2.8+0.12(5)+0.4(2)=−2.8+0.6+0.8=−1.4-2.8 + 0.12(5) + 0.4(2) = -2.8 + 0.6 + 0.8 = -1.4. Then the probability is P=11+e−(−1.4)=11+e1.4=11+4.055≈0.198P = \frac{1}{1 + e^{-(-1.4)}} = \frac{1}{1 + e^{1.4}} = \frac{1}{1 + 4.055} \approx 0.198. Dropping the intercept makes the linear predictor +1.4+1.4 and gives 11+e−1.4≈0.802\frac{1}{1 + e^{-1.4}} \approx 0.802, far too high. Adding −2.8+0.6+0.8-2.8 + 0.6 + 0.8 as −1.6-1.6 is an arithmetic slip; even with the correct logistic form, it leads to 0.168. Reporting e−1.6e^{-1.6} or the linear predictor itself stops before converting log-odds to a probability, and a value like −1.6-1.6 cannot be a probability at all. Always add the intercept and every coefficient-times-value, then apply 11+e−z\frac{1}{1 + e^{-z}}.
  19. A logistic regression model yields the equation: log-odds = -2.5 + 0.8X, where X represents treatment status (0 = control, 1 = treatment). What is the probability of the outcome for a patient in the treatment group?
    Answer: e−1.71+e−1.7=0.155\frac{e^{-1.7}}{1 + e^{-1.7}} = 0.155 Substitute X=1X = 1: log-odds =−2.5+0.8(1)=−1.7= -2.5 + 0.8(1) = -1.7. Convert to a probability with P=11+e−(log-odds)=11+e1.7P = \frac{1}{1 + e^{-(\text{log-odds})}} = \frac{1}{1 + e^{1.7}}, which is the same as e−1.71+e−1.7\frac{e^{-1.7}}{1 + e^{-1.7}}. Since e1.7≈5.474e^{1.7} \approx 5.474, P≈16.474=0.155P \approx \frac{1}{6.474} = 0.155. The value 0.845 pairs the right expression with the complement 1−P1 - P; a negative log-odds must give a probability below 0.5. Using only the intercept −2.5-2.5 gives the control group, and its value is 11+e2.5≈0.076\frac{1}{1 + e^{2.5}} \approx 0.076, not 0.924. Using only the coefficient 0.8 ignores the baseline, and treating 0.8 as a probability ratio misreads the model.
  20. A logistic model predicts treatment success with log-odds = -1.2 + 0.8(dose). If the current dose gives a 40% success rate, what dose would be needed to achieve a 70% success rate?
    Answer: Current dose + ln⁡(70/30)−ln⁡(40/60)0.8=Current dose+1.57\frac{\ln(70/30) - \ln(40/60)}{0.8} = \text{Current dose} + 1.57 In a logistic model the dose acts linearly on the log-odds, ln⁡(p1−p)\ln\left(\frac{p}{1-p}\right), not on the probability itself. Each 1-unit increase in dose adds 0.8 to the log-odds. At 40% success the odds are 40/60, so the log-odds are ln⁡(40/60)≈−0.405\ln(40/60) \approx -0.405. At 70% success the odds are 70/30, so the log-odds are ln⁡(70/30)≈0.847\ln(70/30) \approx 0.847. The log-odds must rise by 0.847−(−0.405)=1.2530.847 - (-0.405) = 1.253, which takes 1.2530.8≈1.57\frac{1.253}{0.8} \approx 1.57 more units of dose. (Check: the current dose is about 0.99 and the new dose about 2.56.) Dividing the change in probability, 0.7 - 0.4, by 0.8 treats the model as linear in p. Using ln⁡(0.7)\ln(0.7) takes the log of the probability instead of the odds. Scaling the dose by 0.7/0.4 assumes success is proportional to dose, which the logistic curve is not.

Start this quiz