You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inst/tutorials/01a_reg_lin/reg_lin_simp.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -265,7 +265,7 @@ question("D'après votre analyse, pouvons nous considérer qu'il y a ...",
265
265
266
266
```{r}
267
267
x <- seq(from = 5, to = 15, by = 0.25)
268
-
268
+
set.seed(42)
269
269
a <- x*1 + 3 + rnorm(sd = 0.5, n = length(x))
270
270
b <- x*1.1 + 3 + rnorm(sd = 0.5, n = length(x))
271
271
c <- x*1.2 + 3 + rnorm(sd = 0.5, n = length(x))
@@ -279,7 +279,6 @@ mais <- tibble(
279
279
)
280
280
```
281
281
282
-
283
282
Réalisez la régression linéaire de `value` en fonction de `x` sur le jeu de données `mais`. Vous avez à votre dispositon un nuage de points et un résumé des données pour avoir une première connaissance de données.
<scripttype="application/json" data-for="htmlwidget-6aa6fc76439b429914f3">{"x":{"question":"Quelles sont les combinaisons de variables les plus corrélées ?","answers":[{"option":"x-y","correct":true,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":false,"message":null}],"label":"qu_corr1","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelles sont les combinaisons de variables les plus corrélées ?","a":[{"option":"x-y","correct":true,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
110
+
<scripttype="application/json" data-for="htmlwidget-3df863f24ac0b9c240ae">{"x":{"question":"Quelles sont les combinaisons de variables les plus corrélées ?","answers":[{"option":"x-y","correct":true,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":false,"message":null}],"label":"qu_corr1","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelles sont les combinaisons de variables les plus corrélées ?","a":[{"option":"x-y","correct":true,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
111
111
<ul>
112
112
<li>Réalisez une matrice de correlation avec la méthode de Spearman</li>
<scripttype="application/json" data-for="htmlwidget-7bbd18e1158c9117cc46">{"x":{"question":"Quelles sont les combinaisons de variables les moins corrélées ?","answers":[{"option":"x-y","correct":false,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":true,"message":null}],"label":"qu_corr2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelles sont les combinaisons de variables les moins corrélées ?","a":[{"option":"x-y","correct":false,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":true,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
139
+
<scripttype="application/json" data-for="htmlwidget-6d1817a09071ea6916d6">{"x":{"question":"Quelles sont les combinaisons de variables les moins corrélées ?","answers":[{"option":"x-y","correct":false,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":true,"message":null}],"label":"qu_corr2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelles sont les combinaisons de variables les moins corrélées ?","a":[{"option":"x-y","correct":false,"message":null},{"option":"x-z","correct":false,"message":null},{"option":"x-a","correct":false,"message":null},{"option":"y-z","correct":false,"message":null},{"option":"y-a","correct":false,"message":null},{"option":"z-a","correct":true,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
140
140
<ul>
141
141
<li>Reproduisez le graphique ci-dessous en vous basant sur vos matrices réalisées précédements</li>
<scripttype="application/json" data-for="htmlwidget-ac4619e1a21646ad7c98">{"x":{"question":"D'après votre analyse, pouvons nous considérer qu'il y a ...","answers":[{"option":"homoscédasticité","correct":false,"message":null},{"option":"hétéroscédasticité","correct":false,"message":null}],"label":"qu_homo","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":false,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"D'après votre analyse, pouvons nous considérer qu'il y a ...","a":[{"option":"homoscédasticité","correct":false,"message":null},{"option":"hétéroscédasticité","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
196
+
<scripttype="application/json" data-for="htmlwidget-2be8afc5e70c9632d8cf">{"x":{"question":"D'après votre analyse, pouvons nous considérer qu'il y a ...","answers":[{"option":"homoscédasticité","correct":false,"message":null},{"option":"hétéroscédasticité","correct":false,"message":null}],"label":"qu_homo","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":false,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"D'après votre analyse, pouvons nous considérer qu'il y a ...","a":[{"option":"homoscédasticité","correct":false,"message":null},{"option":"hétéroscédasticité","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
<p>Réalisez la régression linéaire de <code>value</code> en fonction de <code>x</code> sur le jeu de données <code>mais</code>. Vous avez à votre dispositon un nuage de points et un résumé des données pour avoir une première connaissance de données.</p>
<scripttype="application/json" data-for="htmlwidget-0c612aee7c00a81933a3">{"x":{"question":"Quelle est la valeur de l'ordonnée à l'origine ?","answers":[{"option":"2.85","correct":true,"message":null},{"option":"1.12","correct":false,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"8.89","correct":false,"message":null},{"option":"36.37","correct":false,"message":null},{"option":"0.92","correct":false,"message":null}],"label":"qu_reglin1-1","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelle est la valeur de l'ordonnée à l'origine ?","a":[{"option":"2.85","correct":true,"message":null},{"option":"1.12","correct":false,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"8.89","correct":false,"message":null},{"option":"36.37","correct":false,"message":null},{"option":"0.92","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
252
+
<scripttype="application/json" data-for="htmlwidget-36bc903447cf0551bcce">{"x":{"question":"Quelle est la valeur de l'ordonnée à l'origine ?","answers":[{"option":"3.26","correct":true,"message":null},{"option":"1.07","correct":false,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"10.21","correct":false,"message":null},{"option":"35.04","correct":false,"message":null},{"option":"0.91","correct":false,"message":null}],"label":"qu_reglin1-1","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelle est la valeur de l'ordonnée à l'origine ?","a":[{"option":"3.26","correct":true,"message":null},{"option":"1.07","correct":false,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"10.21","correct":false,"message":null},{"option":"35.04","correct":false,"message":null},{"option":"0.91","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
<scripttype="application/json" data-for="htmlwidget-121722831263f5eb50b0">{"x":{"question":"Quelle est la valeur de la pente ?","answers":[{"option":"2.85","correct":false,"message":null},{"option":"1.12","correct":true,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"8.89","correct":false,"message":null},{"option":"36.37","correct":false,"message":null},{"option":"0.92","correct":false,"message":null}],"label":"qu_reglin1-2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelle est la valeur de la pente ?","a":[{"option":"2.85","correct":false,"message":null},{"option":"1.12","correct":true,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"8.89","correct":false,"message":null},{"option":"36.37","correct":false,"message":null},{"option":"0.92","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
265
+
<scripttype="application/json" data-for="htmlwidget-3d452b8c100a59685a61">{"x":{"question":"Quelle est la valeur de la pente ?","answers":[{"option":"3.26","correct":false,"message":null},{"option":"1.07","correct":true,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"10.21","correct":false,"message":null},{"option":"35.04","correct":false,"message":null},{"option":"0.91","correct":false,"message":null}],"label":"qu_reglin1-2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":true,"json":{"info":{"name":"","main":""},"questions":[{"q":"Quelle est la valeur de la pente ?","a":[{"option":"3.26","correct":false,"message":null},{"option":"1.07","correct":true,"message":null},{"option":"0.32","correct":false,"message":null},{"option":"0.03","correct":false,"message":null},{"option":"10.21","correct":false,"message":null},{"option":"35.04","correct":false,"message":null},{"option":"0.91","correct":false,"message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
0 commit comments