Question: Upload the data in Jupyter Notebook. b) Find the correlation between Mean and N. (Hint: Assignment 7) c) Interpret the results. d) Predict Gen probabilities
Upload the data in Jupyter Notebook. b) Find the correlation between Mean and N. (Hint: Assignment 7) c) Interpret the results. d) Predict Gen probabilities using logistic regression method. Copy the predicted values. (Hint: Python Tutorial 9) e) Write a for loop to convert the predicted values to genders. (Hint: if predict_value < 0.5 P=1, otherwise P=2) f) Write a for loop to find the accuracy of logistic regression results. (Hint: count the number of indices that predicted genders and y are equal) g) Interpret the results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
