已知一個樣本4,2,7,x,9的平均數(shù)為5,則這個樣本的中位數(shù)為________.
4
分析:先由平均數(shù)的公式計算出x的值,再根據(jù)中位數(shù)的定義求解即可.
解答:∵一個樣本4,2,7,x,9的平均數(shù)為5,
∴
(4+2+7+x+9)=5,
解得:x=3,
將該組數(shù)據(jù)按從小到大的順序排列:2,3,4,7,9,
∵一共有5個數(shù)據(jù),第三個數(shù)據(jù)為4,
∴中位數(shù)是4.
故答案為4.
點評:本題考查平均數(shù)和中位數(shù).平均數(shù)等于數(shù)據(jù)總數(shù)除以總個數(shù).求一組數(shù)據(jù)的中位數(shù)時,先將該組數(shù)據(jù)按從小到大(或按從大到。┑捻樞蚺帕,然后根據(jù)數(shù)據(jù)的個數(shù)確定中位數(shù):當數(shù)據(jù)個數(shù)為奇數(shù)時,則中間的一個數(shù)即為這組數(shù)據(jù)的中位數(shù);當數(shù)據(jù)個數(shù)為偶數(shù)時,則最中間的兩個數(shù)的算術(shù)平均數(shù)即為這組數(shù)據(jù)的中位數(shù).