write the all formules of mean & medium

mean is calculated as the average value.

summation of all values divided by number of values is mean.
and median is the value present in the middle of a sequence of numbers.

yes of course

Sure! Here are the formulas for mean and median:

Mean:
The mean, also known as the average, is calculated by summing up all the values in a dataset and dividing it by the number of values.

Formula for mean (average):

Mean = (sum of all values) / (number of values)

For example, if you have the following dataset: [3, 5, 7, 9, 11], the mean would be calculated as:

Mean = (3 + 5 + 7 + 9 + 11) / 5 = 35 / 5 = 7

Therefore, the mean of this dataset is 7.

Median:
The median is the middle value in a dataset when the values are arranged in ascending or descending order. If the dataset has an odd number of values, the median is the exact middle value. If the dataset has an even number of values, the median is calculated as the average of the two middle values.

Formula for median:

If the number of values is odd:
Median = Middle value

If the number of values is even:
Median = (Value at position n/2) + (Value at position (n/2)+1) / 2

For example, if you have the following dataset: [2, 4, 6, 8, 10], the median would be calculated as:

Median = Value at position (n/2) = Value at position (5/2) = Value at position 2.5

Since position 2.5 is not an integer, we take the average of the values at positions 2 and 3:

Median = (Value at position 2 + Value at position 3) / 2 = (4 + 6) / 2 = 10 / 2 = 5

In this case, the median of the dataset is 5.

So, these are the formulas for mean and median.