표집과 편향

Python에서 배우는 추론 통계 기초

Paul Savala

Assistant Professor of Mathematics

편향

  • 편향된 표본: 어떤 집단이 모집단보다 표본에서 더 자주/덜 자주 나타남

여러 색 셔츠를 입은 사람들 속에서, 샘플에는 초록 셔츠 사람만 포함된 그림.

Python에서 배우는 추론 통계 기초

편향된 표본

all_salaries = [75000, 82000, ...]
friends_salaries = [93000, 87000, 103000, 101000]

np.mean(friends_salaries)
96000
Python에서 배우는 추론 통계 기초

표본분포

sampling_distribution = []

for i in range(100):
random_sample = np.random.choice(salaries, size=10) sample_mean = np.mean(random_sample)
sampling_distribution.append(sample_mean)
plt.hist(sampling_distribution) plt.xlabel('Mean salary') plt.ylabel('Percent of samples') plt.title('Sampling distribution of mean salaries') plt.show()
Python에서 배우는 추론 통계 기초

평균 급여의 표본분포를 보여주는 히스토그램. 대략 종모양이며 약 82,000달러에 중심이 있고, 최소 약 70,000달러, 최대 약 95,000달러.

Python에서 배우는 추론 통계 기초

표본에 따라 달라짐

  • 표본은 점추정치에 영향
  • 점추정치는 추론에 영향
  • 표본은 p-값 계산에 영향
Python에서 배우는 추론 통계 기초

표본에 의존하지 않음

  • 모집단 통계량
    • 선택한 표본에 영향받지 않음
  • 검정 결론
    • 주어진 p-값이면, 결론은 표본에 영향받지 않음
Python에서 배우는 추론 통계 기초

연습해 봅시다!

Python에서 배우는 추론 통계 기초

Preparing Video For Download...