Files
freeCodeCamp/guide/english/mathematics/how-to-find-the-median-value/index.md
UzawaT 98dc1856fb added description and examples to the article (#35019)
* fixed grammar error

* added description and examples to the article
2019-04-06 19:50:48 +05:30

27 lines
950 B
Markdown

---
title: How to Find the Median Value
---
## How to Find the Median Value
The median is the middle value of the sorted number set.
#### Example 1
Find the median value for the set below.<br/>
<em>244 191 160 187 180</em>
##### Step 1. Sort the numbers in order.
After it is sorted, you will have <em>160 180 187 191 244</em>.
##### Step 2. Find the median value.
Once the numbers are ordered, the median is the value in the middle. In this case, the median is <em>187</em>.
#### Example 2
Find the median value for the set below.<br/>
<em>205 211 183 211 180 194</em>
##### Step 1. Sort the numbers in order.<br/>
After it is sorted, you will have <em>180 183 194 205 211 211</em>.
##### Step 2. Find the median value.<br/>
In this case, there are two middle numbers (<em>194</em> and <em>205</em>). To find the median, we will look for the average of the two middle values. The median is (<em>194</em> + <em>205</em>) / 2 = <em>199.5</em>.