Materi MT
Materi MT
Simply divide the cumulative Dividing the odds of disease analogous to the risk
incidence in exposed group in the exposed by the the
by the cumulative incidence in odds of disease in the non- ratio (RR) of cohort
the unexposed group exposed group studies
OUTLINE
TODAY
Introduction to Logistic Regression
01 Binary data, the difference of ordinary linear regression and logistic regression,
implementation in real life
Outcome:
Model and Parameter Estimation
1. Able to explain
binary data
2. Understanding
02 The form of model and how to estimate the parameter
logistic binary
regression Parameter Interpretation
3. Able to estimate
parameters in logistic
03 Explain the meaning of the parameter
regression
4. Interpreting the
Quiz and Discussion
analysis result 04 Discussion time
Categorical Data
d a t a
Categorical data has a Data Types
measurement scale that
consist of several
C a t e g o r i c a l
categories. The Categorical Data Numerical Data
d a t a
Binary Categorical Data Tipe Data
is grouping the data into
C a t e g o r i c a l
2 categories, for Data Kategorik
example "Success" and
"Failure"
Nominal Ordinal
𝑝
𝑙𝑜𝑔𝑖𝑡 𝑝 = log = 𝛼 + 𝛽𝑥 + 𝜀
𝑝: Probability of “Success” 1−𝑝
𝑥: the value of predictor variable
𝛼: Intercept of logit
𝛽: Slope of the logit Estimation
𝜀: Error term
Then
𝑝: the probability of getting promoted
Parameter
Each female horseshoe crab in the study had a male crab attached to
Estimation her in her nest. The study investigated, whether the width of the crab
affecting the existence of the male crab around the female, that
commonly called satellites.
So, the estimated odds of a satellite multiply by 𝑒 𝛽 = exp 0.497 = 1.64 for each centimeter increase in
width. That is, there is a 64% increase
Consider the effect of snoring in heart disease. With scores {0, 2, 4, 5}
for snoring levels, the logistic regression ML fit is
Study Case
1. Describe the independent and dependent variables
2. Describe 𝑝 as the probability of existence of heart disease
3. Interpret the sign of the estimated effect of x
4. Estimate the probabilities of heart disease at snoring levels 0 and 5
5. Describe the estimated effect of snoring on the odds of heart disease
Source
https://towardsdatascience.com/logistic-
regression-explained-in-7-minutes-
f648bf44d53e