b:head_first_statistics:measuring_central_tendency
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| b:head_first_statistics:measuring_central_tendency [2025/09/14 14:35] – [skewedness] hkimscil | b:head_first_statistics:measuring_central_tendency [2026/09/08 23:24] (current) – [outlier] hkimscil | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| \end{split} | \end{split} | ||
| \end{equation*} | \end{equation*} | ||
| + | |||
| + | < | ||
| + | > # mean | ||
| + | > x <- c(19, 19, 20, 20, 20, 21) | ||
| + | > sum(x) | ||
| + | [1] 119 | ||
| + | > length(x) | ||
| + | [1] 6 | ||
| + | > sx <- sum(x) | ||
| + | > nx <- length(x) | ||
| + | > sx/nx | ||
| + | [1] 19.83333 | ||
| + | > mean(x) | ||
| + | [1] 19.83333 | ||
| + | |||
| + | </ | ||
| ===== outlier ===== | ===== outlier ===== | ||
| Line 40: | Line 56: | ||
| [{{eg.distribution.jpg}}] | [{{eg.distribution.jpg}}] | ||
| </ | </ | ||
| + | < | ||
| + | > # mean | ||
| + | > x <- c(19, 19, 20, 20, 20, 21) | ||
| + | > sx <- sum(x) | ||
| + | > nx <- length(x) | ||
| + | > sx/nx | ||
| + | [1] 19.83333 | ||
| + | > mean(x) | ||
| + | [1] 19.83333 | ||
| + | > | ||
| + | > y <- c(3, | ||
| + | > mean(y) | ||
| + | [1] 22.33333 | ||
| + | > | ||
| + | > xy <- cbind(x, y) | ||
| + | > boxplot(xy, col=c(" | ||
| + | + names = c(" | ||
| + | </ | ||
| + | {{.: | ||
| ===== skewedness ===== | ===== skewedness ===== | ||
| + | see [[: | ||
| <WRAP info> | <WRAP info> | ||
| skewedness: 왜도 | skewedness: 왜도 | ||
| {{skewedness.jpg}} | {{skewedness.jpg}} | ||
| </ | </ | ||
| - | see http:// | + | |
| ===== median ===== | ===== median ===== | ||
| see [[:median]] document | see [[:median]] document | ||
| Line 104: | Line 140: | ||
| ==== e.g. 1 ==== | ==== e.g. 1 ==== | ||
| - | |||
| quartile 명령어는 r에서는 없다. 대신 quantile을 사용한다. 둘은 비슷하나 quantile은 4분위 이상의 것을 한다. | quartile 명령어는 r에서는 없다. 대신 quantile을 사용한다. 둘은 비슷하나 quantile은 4분위 이상의 것을 한다. | ||
| + | 교재에서 구하는 quartile방식은 알아두되, | ||
| R에서 | R에서 | ||
b/head_first_statistics/measuring_central_tendency.1757860505.txt.gz · Last modified: by hkimscil
