Regression 3 quiz

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

@ -32,7 +32,7 @@ As you learned in Lesson 1, the goal of a linear regression exercise is to be ab
> >
> You can observe the method of calculation for these values on the [Math is Fun](https://www.mathsisfun.com/data/least-squares-regression.html) web site. > You can observe the method of calculation for these values on the [Math is Fun](https://www.mathsisfun.com/data/least-squares-regression.html) web site.
> >
> A common method of regression is **Least-Squares Regression** which means that all the datapoints surounding the regression line are squared and then added up. Ideally, that final sum is as small as possible, because we want a low number of errors, or `least-squares`. We do so since we want to model a line that has the least cumulative distance from all of our data points. We also square the terms before adding them since we are concerned with its magnitude rather than its direction. > A common method of regression is **Least-Squares Regression** which means that all the datapoints surrounding the regression line are squared and then added up. Ideally, that final sum is as small as possible, because we want a low number of errors, or `least-squares`. We do so since we want to model a line that has the least cumulative distance from all of our data points. We also square the terms before adding them since we are concerned with its magnitude rather than its direction.
> >
> One more term to understand is the **Correlation Coefficient** between given X and Y variables. For a scatterplot, you can quickly visualize this coefficient. A plot with datapoints scattered in a neat line have high correlation, but a plot with datapoints scattered everywhere between X and Y have a low correlation. > One more term to understand is the **Correlation Coefficient** between given X and Y variables. For a scatterplot, you can quickly visualize this coefficient. A plot with datapoints scattered in a neat line have high correlation, but a plot with datapoints scattered everywhere between X and Y have a low correlation.
> >

@ -555,48 +555,52 @@
"title": "Linear and Polynomial Regression: Pre-Lecture Quiz", "title": "Linear and Polynomial Regression: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "q1", "questionText": "Matplotlib is a ",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "drawing library",
"isCorrect": "false" "isCorrect": "false"
}, },
{ {
"answerText": "b", "answerText": "data visualization library",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {
"answerText": "c", "answerText": "lending library",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "q2", "questionText": "Linear Regression uses the following to plot relationships between variables",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "a straight line",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {
"answerText": "b", "answerText": "a circle",
"isCorrect": "false"
},
{
"answerText": "a curve",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "q3", "questionText": "A good Linear Regression model has a ___ Correlation Coefficient",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "low",
"isCorrect": "false" "isCorrect": "false"
}, },
{ {
"answerText": "b", "answerText": "high",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {
"answerText": "c", "answerText": "flat",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
@ -608,49 +612,53 @@
"title": "Linear and Polynomial Regression: Post-Lecture Quiz", "title": "Linear and Polynomial Regression: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "q1", "questionText": "If your data is nonlinear, try a ___ type of Regression",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "linear",
"isCorrect": "false" "isCorrect": "false"
}, },
{ {
"answerText": "b", "answerText": "spherical",
"isCorrect": "true" "isCorrect": "false"
}, },
{ {
"answerText": "c", "answerText": "polynomial",
"isCorrect": "false" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "q2", "questionText": "These are all types of Regression methods",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "Falsestep, Ridge, Lasso and Elasticnet",
"isCorrect": "false"
},
{
"answerText": "Stepwise, Ridge, Lasso and Elasticnet",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {
"answerText": "b", "answerText": "Stepwise, Ridge, Lariat and Elasticnet",
"isCorrect": "false" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "q3", "questionText": "Least-Squares Regression means that all the datapoints surrounding the regression line are:",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "a", "answerText": "squared and then subtracted",
"isCorrect": "false" "isCorrect": "false"
}, },
{ {
"answerText": "b", "answerText": "multiplied",
"isCorrect": "true" "isCorrect": "false"
}, },
{ {
"answerText": "c", "answerText": "squared and then added up",
"isCorrect": "false" "isCorrect": "true"
} }
] ]
} }

Loading…
Cancel
Save