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!
===Problem=== As a simple example, we can use a logistic regression with one explanatory variable and two categories to answer the following question: <blockquote> A group of 20 students spends between 0 and 6 hours studying for an exam. How does the number of hours spent studying affect the probability of the student passing the exam? </blockquote> The reason for using logistic regression for this problem is that the values of the dependent variable, pass and fail, while represented by "1" and "0", are not [[cardinal number]]s. If the problem was changed so that pass/fail was replaced with the grade 0β100 (cardinal numbers), then simple [[regression analysis]] could be used. The table shows the number of hours each student spent studying, and whether they passed (1) or failed (0). {| class="wikitable" |- ! Hours (''x<sub>k</sub>'') | 0.50|| 0.75|| 1.00|| 1.25|| 1.50|| 1.75|| 1.75|| 2.00|| 2.25|| 2.50|| 2.75|| 3.00|| 3.25|| 3.50|| 4.00|| 4.25|| 4.50|| 4.75|| 5.00 || 5.50 |- ! Pass (''y<sub>k</sub>'') | 0|| 0|| 0|| 0|| 0|| 0|| 1|| 0|| 1|| 0|| 1|| 0|| 1|| 0|| 1|| 1|| 1|| 1|| 1|| 1 |} We wish to fit a logistic function to the data consisting of the hours studied (''x<sub>k</sub>'') and the outcome of the test (''y<sub>k</sub>'' =1 for pass, 0 for fail). The data points are indexed by the subscript ''k'' which runs from <math>k=1</math> to <math>k=K=20</math>. The ''x'' variable is called the "[[explanatory variable]]", and the ''y'' variable is called the "[[categorical variable]]" consisting of two categories: "pass" or "fail" corresponding to the categorical values 1 and 0 respectively.
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)