Linear and logistic regression
Machine Learning · Engineering
Study notes
Predict salary from experience: linear regression finds y = 50000 + 8000*x. For pass/fail admission: logistic computes z = w*x+b, probability = 1/(1+e^-z); if > 0.5 predict pass. Linear for continuous, logistic for binary: same linear core, different output.