ageron / ageron/handson-ml2

Chapter 2 about the stratified sampling example

Abierto
#495 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
30k
Forks
13.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

In chapter 2, there is a stratified sampling:
For example, the US population is composed of 51.3% female and 48.7% male, so a well-conducted survey in the US would
try to maintain this ratio in the sample: 513 female and 487 male. This is called stratified sampling: the population is divided into homogeneous subgroups called strata, and the right number of instances is sampled from each stratum to guarantee that the
test set is representative of the overall population. If they used purely random sampling, there would be about **12%** chance of sampling a skewed test set with either less than **49%** female or more than **54%** female. Either way, the survey results would be significantly biased.

The question is: could you give some explanation how these 12%, 49%, 54% calculated? thanks

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.