29_ML Exp_03
29_ML Exp_03
Key Concepts:
1. Sigmoid Function: Logistic regression uses the sigmoid function to map predicted
values to probabilities. The sigmoid function, σ(z)\sigma(z)σ(z), is defined as:
Binary Outcome: The dependent variable yyy is binary, taking values of 0 or 1. The logistic
function outputs probabilities between 0 and 1, which can then be mapped to these binary
outcomes using a threshold (typically 0.5).
Log-Odds and Odds Ratio: Logistic regression models the log-odds of the probability of the
outcome:
Applications:
Output:
Conclusion:
Hence , We have successfully implement Logistics Regression using python
libraries like numpy, sk learn, and predicted dependent variable from an
independent variable.