First, we need to calculate the sample proportions of non-coffee drinkers and coffee drinkers who have trouble sleeping. The sample proportion is calculated by dividing the number of successes (in this case, people who have trouble sleeping) by the total number of
Show more…