R에서 수치형 데이터에 대한 추론
Mine Cetinkaya-Rundel
Associate Professor of the Practice, Duke University
100명의 무작위 표본 중 13명이 왼손잡이라고 가정합니다. 다음 표본에서 12명이라면 놀라운 일일까요? 15명은요? 30명은? 1명이나 90명이라면?
표본 평균의 변동성을 수치화하는 방법:
부트스트래핑으로 시뮬레이션
중심극한정리로 근사
$$ \bar{x} \sim N \left( mean = \mu, SE = \frac{\sigma}{\sqrt{n}} \right) $$
2010년 일반 사회 조사 데이터(데이터:
gss)를 사용하여 미국인이 정규 일정 외에 초과 근무를 하는 평균 일수(변수:moredays)를 추정하세요.
2010년 일반 사회 조사 데이터(데이터:
gss)를 사용하여 미국인이 정규 일정 외에 초과 근무를 하는 평균 일수(변수:moredays)를 추정하세요.
t.test(gss$moredays, conf.level = 0.95)
One Sample t-test
data: gss$moredays
t = 25.628, df = 1146, p-value < 2.2e-16
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
5.273367 6.147732
sample estimates:
mean of x
5.710549
R에서 수치형 데이터에 대한 추론