sampling
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sampling [2018/03/13 16:48] – [Sample statistics] hkimscil | sampling [2019/03/18 11:58] – [Probability sampling] hkimscil | ||
---|---|---|---|
Line 36: | Line 36: | ||
==== 원리 | ==== 원리 | ||
* Representativeness (대표성) | * Representativeness (대표성) | ||
- | * ECBS (Equal Chance of Being Selected) | + | * ECoBS (Equal Chance of Being Selected) |
* Sampling bias (샘플링 바이어스) | * Sampling bias (샘플링 바이어스) | ||
* concscious | * concscious | ||
Line 66: | Line 66: | ||
var_ <- new.env() | var_ <- new.env() | ||
- | n< | + | n< |
- | p_mean< | + | p_mean< |
- | p_sd< | + | p_sd< |
- | N< | + | N< |
pdf(' | pdf(' | ||
- | for(i in 1:N) ## do the experiment N times | + | for(i in 1:N) |
{ | { | ||
- | smp< | + | smp< |
- | var_$x_bar< | + | var_$x_bar< |
+ | |||
+ | hist(var_$x_bar, | ||
+ | # Plot a histogram of x_bar values | ||
- | hist(var_$x_bar, | ||
points(mean(smp), | points(mean(smp), | ||
curve(dnorm(x, | curve(dnorm(x, | ||
Line 86: | Line 88: | ||
text(2.5, | text(2.5, | ||
- | curve(dnorm(x, | + | curve(dnorm(x, |
+ | ## Plot the sample | ||
text(2.5, | text(2.5, | ||
Line 100: | Line 103: | ||
dev.off() | dev.off() | ||
</ | </ | ||
- | + | {{SE.pdf}} | |
* Variation See, [[: | * Variation See, [[: |
sampling.txt · Last modified: 2020/12/04 22:37 by hkimscil