Data Summary:

To work with ratio data we require to summarize data by using mean, median, mode e.t.c

Mean:

Let say we have data points like x1,x2,x3...xn

Therefore the mean would be : x̅ = ∑x1+x2+x3+...xn/n

Generally we use mean for discreate data.

Median:

The data values are ordered from smallest to largest. If the number of data values is odd, then the sample median is the middle value in the ordered list; else it is the average of the two middle values.

Median for dataset : 5,9,4,8,3

Order the set from smallest to largest>>After order the set looks like :

3,4,5,8,9

As the number of data points in this set is an odd number hence the median would be:

n+1/2 = 5+1/2 = 3rd number of the series i.e 5

Now let us assume a data set like 3,4,5,8,9,10

Here the median would be (n/2 th number + (n+1)/2 th number)/2 i.e 5+8/2 = 6.5

When to Use Mean and When to Use Median:

--Suppose a government has a flat rate income tax and is trying to figure out how much income it can expect based on the sample data of income of its citizens (Use mean)

--If the government were planning to construct some middle income housing and were interested in the proportion of its citizens who would be able to afford such housing(Use median)


Percentile:

Suppose there are n = 12 data points, then the sample 90th percentile will correspond to

100p = 90, so p = 0.9

100p% of n = np = 12*0.9 = 10.8 

So the data value must be in position 11 or higher

Quartile:

25th percentile is called the first quartile.

50th percentile is called the second quartile.

75th percentile  is called the third quartile.

Lets say 1st Quartile value is 36

2nd Quartile value is 48

and 3rd Quartile value is 63

Therefore IQR(Inter-quartile Range) value will be = 63-36 = 27

Mode:

that occurs most frequently in the data set

Example: 8, 10, 6, 4, 10, 12, 14, 10

Sample Mode = 10

10 should be also known as bimodal data (As it appears twice)

Range:

Difference between the largest and the smallest values in the data set

For Sample A: Range = 6 – 1 = 5

Variance:

Talks about the sum of deviation of a data point from its mean. As the sum of deviation of a data point from its mean stands out to be 0 hence we consider sum of squared deviation.

Sample Variance Formula:

Sample Standard Deviation:

It is the “positive” square root of the sample variance.


Sample Correlation Coefficient:

1. Used for paired data
2. Measures the degree to which larger x values  go with larger y values and smaller x values go with smaller y values.
3. Denoted by “r”
4. Can take values in [-1, 1]

An Example:

Positive Correlation:



Negative Correlation:




Formula of R:



When r > 0, data pairs are said to be positively correlated
and when r < 0, they are said to be negatively correlated
when r = 0, they are said be uncorrelated!