I am writing this blog for beginner very basic
Below are the some mathematics terms used frequently in data science
- Mean is the average , where you add up all the numbers and then divide by the number of numbers.
- Median is the middle value in the list of numbers. To find the median, your numbers have to be listed in numerical order from smallest to largest, so you may have to rewrite your list before you can find the median.
- Mode is the value that occurs most often. If no number in the list is repeated, then there is no mode for the list.
- Range is the difference between the lowest and highest values
Calculate Median when total count of numbers (n) is odd
13, 18, 13, 14, 13, 16, 14, 21, 13
First reorder it in numerical order
13, 13, 13, 13, 14, 14, 16, 18, 21
There are nine numbers(odd) in the list, so the middle one will be the (9 + 1) ÷ 2 = 10 ÷ 2 = 5th number:
So when total count of number is odd then position of median is (n+1) ÷ 2
Calculate Median When total count of numbers(n) is even
1,2,4,7
The median is the middle number. In this example, the
numbers are already listed in numerical order, so We don't have to
rewrite the list. But there is no "middle" number, because there are an
even number of numbers. Because of this, the median of the list will be
the mean (that is, the usual average) of the middle two values within
the list. The middle two numbers are 2 and 4, so:
(2 + 4) ÷ 2 = 6 ÷ 2 = 3
So the median of this list is 3, a value that isn't in the list at all.
Median = (val(n÷2) + val((n÷2) +1) ) ÷ 2