Input a set of numbers and a power value to quickly compute the Power Mean.
The Power Mean is a type of average that incorporates a power value to weight data points. The formula is: \( M_p = \left( \frac{1}{n} \sum_{i=1}^n x_i^p \right)^{\frac{1}{p}} \) Where:
Special cases of the Power Mean include:
Solution:
1. Raise each value to \( p = 2 \):
\( 2^2 = 4 \)
\( 4^2 = 16 \)
\( 6^2 = 36 \)
\( 8^2 = 64 \)
2. Sum and divide by the total count:
\( \frac{4 + 16 + 36 + 64}{4} = \frac{120}{4} = 30 \)
3. Compute the square root (\( \frac{1}{2} \)-th power):
\( M_2 = 30^{\frac{1}{2}} = \sqrt{30} \approx 5.48 \)
Result: The Power Mean is approximately 5.48.
Solution:
1. Raise each value to \( p = -1 \) (find the reciprocal):
\( 3^{-1} = \frac{1}{3} \)
\( 5^{-1} = \frac{1}{5} \)
\( 7^{-1} = \frac{1}{7} \)
2. Sum and divide by the total count:
\( \frac{\frac{1}{3} + \frac{1}{5} + \frac{1}{7}}{3} = \frac{0.67619}{3} \approx 0.2254 \)
3. Compute the reciprocal (\( -1 \)-th power):
\( M_{-1} = 0.2254^{-1} \approx 4.4366 \)
Result: The Power Mean is approximately 4.4366.