### Python Statistics Median_Low

Article No:7
`Link for Previous Article :javascript:nicTemp();`
`                       PYTHON MEDIAN_LOW MODULE`

Introduction:

The median is a simple measure of central tendency. To find the median, we arrange the observations in order from smallest to largest value. If there is an odd number of observations, the median is the middle value. If there is an even number of observations, the median_low returns smaller of the two middle values.

Sensitivity to Outliers:

The median_low is a robust measure of central location and is less affected by the presence of outliers.

How to calculate Median_Low:

( i ) When the number of data points is odd, the middle data point is returned.

Eg:    median([1, 3, 5]) gives value 3.

(ii)When the number of data points is even, the median is interpolated by taking the smaller of the two middle values.

Eg:   median([1, 3, 5, 7]) gives value 3.

NOTE:

If data is empty, `StatisticsError` is raised. data can be a sequence or iterable.

SAMPLE PROGRAM:

import statistics as st

if __name__=="__main__":
med_low=st.median_low([
1,3,5,7])
print(med_low)
OUTPUT:
3