regression 3 quiz

pull/34/head
Jen Looper 4 years ago
parent 2b4906a58e
commit 8f24bccc65

@ -105,8 +105,6 @@ sns.catplot(x="Color", y="Item Size",
Now that we have an idea of the relationship between the binary categories of color and the larger group of sizes, let's explore Logistic Regression to determine a given pumpkin's likely color. Now that we have an idea of the relationship between the binary categories of color and the larger group of sizes, let's explore Logistic Regression to determine a given pumpkin's likely color.
> infographic here (an image of logistic regression's sigmoid flow, like this: https://wikipedia.org/wiki/Logistic_regression#/media/File:Exam_pass_logistic_curve.jpeg)
> **🧮 Show Me The Math** > **🧮 Show Me The Math**
> >
> Remember how Linear Regression often used ordinary least squares to arrive at a value? Logistic Regression relies on the concept of 'maximum likelihood' using [sigmoid functions](https://wikipedia.org/wiki/Sigmoid_function). A 'Sigmoid Function' on a plot looks like an 'S' shape. It takes a value and maps it to somewhere between 0 and 1. Its curve is also called a 'logistic curve'. Its formula looks like thus: > Remember how Linear Regression often used ordinary least squares to arrive at a value? Logistic Regression relies on the concept of 'maximum likelihood' using [sigmoid functions](https://wikipedia.org/wiki/Sigmoid_function). A 'Sigmoid Function' on a plot looks like an 'S' shape. It takes a value and maps it to somewhere between 0 and 1. Its curve is also called a 'logistic curve'. Its formula looks like thus:

@ -669,48 +669,52 @@
"title": "Logistic Regression: Pre-Lecture Quiz", "title": "Logistic Regression: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "q1", "questionText": "Use Logistic Regression to predict",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "whether an apple is ripe or not",
"isCorrect": "false" "isCorrect": "true"
}, },
{ {
"answerText": "b", "answerText": "how many tickets can be sold in a month",
"isCorrect": "true" "isCorrect": "false"
}, },
{ {
"answerText": "c", "answerText": "what color the sky will turn tomorrow at 6 PM",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "q2", "questionText": "Types of Logistic Regression include",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "multinomial and cardinal",
"isCorrect": "false"
},
{
"answerText": "multinomial and ordinal",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {
"answerText": "b", "answerText": "principal and ordinal",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "q3", "questionText": "Your data has weak correlations. The best type of Regression to use is:",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "Logistic",
"isCorrect": "false" "isCorrect": "true"
}, },
{ {
"answerText": "b", "answerText": "Linear",
"isCorrect": "true" "isCorrect": "false"
}, },
{ {
"answerText": "c", "answerText": "Cardinal",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
@ -722,48 +726,52 @@
"title": "Logistic Regression: Post-Lecture Quiz", "title": "Logistic Regression: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "q1", "questionText": "Seaborn is a type of",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "data visualization library",
"isCorrect": "false" "isCorrect": "true"
}, },
{ {
"answerText": "b", "answerText": "mapping library",
"isCorrect": "true" "isCorrect": "false"
}, },
{ {
"answerText": "c", "answerText": "mathematical library",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "q2", "questionText": "A confusion matrix is also known as a:",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "error matrix",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {
"answerText": "b", "answerText": "truth matrix",
"isCorrect": "false"
},
{
"answerText": "accuracy matrix",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "q3", "questionText": "A good model will have:",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "a large number of false positives and true negatives in its confusion matrix",
"isCorrect": "false" "isCorrect": "false"
}, },
{ {
"answerText": "b", "answerText": "a large number of true positives and true negatives in its confusion matrix",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {
"answerText": "c", "answerText": "a large number of true positives and false negatives in its confusion matrix",
"isCorrect": "false" "isCorrect": "false"
} }
] ]

Loading…
Cancel
Save