American Airlines wants to run a randomized experiment using eligible AAdvantage passengers from recent flight bookings. Write a PostgreSQL query that assigns each eligible passenger ID to one of three mutually exclusive groups: 10% treatment, 10% holdout, and 80% control.
treatment_10_pct, the next 10% to holdout_10_pct, and the remainder to control_80_pct.| Column | Type | Description |
|---|---|---|
| passenger_idPK | INTEGER | Unique passenger identifier |
| passenger_name | VARCHAR(100) | Passenger name |
| Column | Type | Description |
|---|---|---|
| booking_idPK | INTEGER | Unique booking identifier |
| passenger_id | INTEGER | Passenger associated with the booking |
| flight_number | VARCHAR(10) | American Airlines flight number |
| flight_date | DATE | Scheduled flight date |
| booking_status | VARCHAR(20) | Booking status |