From the course: Machine Learning with Logistic Regression in Excel, R, and Power BI

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Visualizing logistic regression

Visualizing logistic regression

- [Instructor] Once we predict our probability outcomes for logistic progression model, I find it's immensely helpful to visualize them as graphs as part of the process to get more inside into what the model output tells us. We can construct charts in Excel, and we can also construct them in R. There are thousands of libraries in R and many of them support graphic capabilities, but there are actually built-in graphic commands or functions, we can leverage directly in R without having to load or import any other packages. One example of this is the plot function. Let's first create our scatter plots for the points scored, versus the predicted and actual outcomes in Excel. We can select these three columns, you may hold down the Control key, select our, predicted column, we then insert a scatter plot on the same page. Let's make this a bit smaller, move it over, and I've renamed it. Actuals versus, predicted. You…

Contents