Concept:
The mean is the sum of observations divided by the number of observations. The median is the middle value when the data is arranged in ascending order. For a set with 5 elements, the median is the 3rd element.
Step 1: Arrange the data and find \( a \).
Given conditions: \( -7 < 1 < a < 7 < b \).
The sorted data set is: \( \{-7, 1, a, 7, b\} \).
Since the median is 4, and the 3rd term in our sorted list is \( a \), we have:
\[ \text{Median} = a = 4 \]
This satisfies the given condition \( 1 < a < 7 \) as \( 1 < 4 < 7 \).
Step 2: Use the mean to find \( b \).
The mean of the 5 numbers is also 4.
\[ \text{Mean} = \frac{-7 + 1 + a + 7 + b}{5} = 4 \]
Substitute \( a = 4 \):
\[ \frac{-7 + 1 + 4 + 7 + b}{5} = 4 \]
\[ \frac{5 + b}{5} = 4 \]
Step 3: Solve the algebraic equation.
\[ 5 + b = 20 \]
\[ b = 20 - 5 = 15 \]
This satisfies the condition \( b > 7 \) as \( 15 > 7 \).