-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnote_clt_vs_bs.text
34 lines (26 loc) · 1.1 KB
/
note_clt_vs_bs.text
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
Bootsrap: slow down bootstrap graphic.
animate it slower: replicate("slow down")
package for showing messages "computing sample mean" "loading graphic"
#most important**
****God mode: the truth-(what I got as CLT right now) redo UI so this comes first
y_god ~ dgamma(x(vector, input$n, input$skew)
fix CLT: x_bar ~ n(x_bar, s/sqr(n))
fork in path: Do statistcis, draw from normal
do a bootstrap: make it slow progress
ggplot()+
geom_histogram(data = goddf(),
mapping = aes(x = s,
y = ..density..),
color = "white",
fill = "purple")+
geom_histogram(data = dataframe(),
mapping = aes(x = bs,
y = ..density..),
color = "white",
fill = "orangered")+
geom_line(data = dataframe(),
mapping = aes(x = l,
y = m),
size = 1,
color = "black")+
theme_classic()