Given two bell-shaped populations with unknown parameters and labels, how would you separate them?
Assume the labeled observations are stored in a single table and you need to assign each unlabeled row to one of the two populations. Write a SQL query that returns the predicted population for every unlabeled observation, using the labeled rows to derive the separation rule.
observation_id, predicted_populationlabel IS NULLobservation_id ascending| Column | Type | Description |
|---|---|---|
| observation_idPK | INT | Unique observation identifier |
| measurement | NUMERIC(10,4) | Observed numeric value |
| label | VARCHAR(20) | Known population label, null for unlabeled rows |