Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Logistic regression
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Predictions=== The {{tmath|\beta_0}} and {{tmath|\beta_1}} coefficients may be entered into the logistic regression equation to estimate the probability of passing the exam. For example, for a student who studies 2 hours, entering the value <math>x = 2</math> into the equation gives the estimated probability of passing the exam of 0.25: : <math> t = \beta_0+2\beta_1 \approx - 4.1 + 2 \cdot 1.5 = -1.1 </math> : <math> p = \frac{1}{1 + e^{-t} } \approx 0.25 = \text{Probability of passing exam} </math> Similarly, for a student who studies 4 hours, the estimated probability of passing the exam is 0.87: : <math>t = \beta_0+4\beta_1 \approx - 4.1 + 4 \cdot 1.5 = 1.9</math> : <math>p = \frac{1}{1 + e^{-t} } \approx 0.87 = \text{Probability of passing exam} </math> This table shows the estimated probability of passing the exam for several values of hours studying. {| class="wikitable" |- ! rowspan="2" | Hours<br />of study<br />(''x'') ! colspan="3" | Passing exam |- ! Log-odds (''t'') !! Odds (''e<sup>t</sup>'') !! Probability (''p'') |- style="text-align: right;" | 1|| β2.57 || 0.076 β 1:13.1 || 0.07 |- style="text-align: right;" | 2|| β1.07 || 0.34 β 1:2.91 || 0.26 |- style="text-align: right;" |{{tmath|\mu \approx 2.7}} || 0 ||1 || {{sfrac|1|2}} = 0.50 |- style="text-align: right;" | 3|| 0.44 || 1.55 || 0.61 |- style="text-align: right;" | 4|| 1.94 || 6.96 || 0.87 |- style="text-align: right;" | 5|| 3.45 || 31.4 || 0.97 |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)