-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathChapter5b.Rmd
43 lines (28 loc) · 1.22 KB
/
Chapter5b.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Ch. 5 Joint Probability {-}
Sections covered: 5.1, 5.2
## 5.1 Jointly Distributed Random Variables {-}
Skip *everything but* "Two Discrete Random Variables" pp. 199-200
and "Independent Random Variables" pp. 204-205 (discrete case only)
<script src="https://d3js.org/d3.v4.min.js"></script>
<div id="corr" style="width: 600px">
### *Interactive* {-}
**Click anywhere on the graph to add points. The correlation coefficient will be calculated.**
<p>The correlation coefficient (r) is a measure of the linear relationship
between two variables x and y. To get a sense of the connection between the
appearance of points -- (x,y) pairs -- in a scatterplot and the value of r,
click anywhere on the graph to add points. To remove points, click the Remove
points button and then mouseover points.</p>
<table>
<td>
<p>
<input type="radio" name="typeofaction" value="add" checked="true"> Add points
<input type="radio" name="typeofaction" value="remove"> Remove points
</p>
</td><td>
<p id="r">Two points are needed to calculate r.</p>
</td></table>
</div>
<script src="scripts/corrcoef.js"></script>
## Resources {-}
Correlation and Covariance Visualization
https://shiny.rit.albany.edu/stat/rectangles/