Tuesday, 7 February 2017

Topic 10: Measure of Central Tendency

Measure of central tendency


Introduction..
- A measure of central tendency is a single value that attempts to describe a set of data by identifying the central position within that set of data. As such, measures of central tendency are sometimes called measures of central location. They are also classed as summary statistics. The mean (often called the average) is most likely the measure of central tendency that you are most familiar with, but there are others, such as the median and the mode.

The mean, median and mode are all valid measures of central tendency, but under different conditions, some measures of central tendency become more appropriate to use than others. In the following sections, we will look at the mean, mode and median, and learn how to calculate them and under what conditions they are most appropriate to be used.

There are 3 type in measure of central tendency:

1) Mean

2) Median

3) Mode

1. Mean (Arithmetic)
- The mean (or average) is the most popular and well known measure of central tendency. It can be used with both discrete and continuous data, although its use is most often with continuous data (see our types of variable guide for data types). The mean is equal to the sum of all the values in the data set divided by the number of values in the data set.

This formula is usually written in a slightly different manner using the Greek capitol letter, , pronounced "sigma", which means "sum of...":

The mean is essentially a model of your data set. It is the value that is most common. You will notice, however, that the mean is not often one of the actual values that you have observed in your data set. However, one of its important properties is that it minimizes error in the prediction of any one value in your data set. That is, it is the value that produces the lowest amount of error from all other values in the data set.

An important property of the mean is that it includes every value in your data set as part of the calculation. In addition, the mean is the only measure of central tendency where the sum of the deviations of each value from the mean is always zero.

The formula for calculating a mean is:

Mean = (X1 + X2 + X3 + ... +XN) / N

where X1, X2, X3,... XN are the values of the observations being averaged and N equals the number of observations

Negative Numbers

How do you handle negative numbers? Adding a negative number is the same as subtracting the number (without the negative). For example 3 + (−2) = 3−2 = 1.
Knowing this, let us try an example: 

Example 1:

3, -7, 5, 13, -2
  • The sim of these number is 3 -7 + 5 + 13 - 2 =12
  • There are 5 numbers
  • The mean is equal to 12 ➗ 5 = 2.4
  The mean of the above numbers is 2.4
here is how to do it one line:
mean = 3 - 7 + 5 + 13 - 2 ➗ 5 = 12 / 5 = 2.4 


Example 2:

A random sample of 10 American college students reported sleeping 7, 6, 8, 4, 2, 7, 6, 7, 6, 5 hours, respectively. What is the sample mean?
Solution. The sample mean is:

x¯=7+6+8+4+2+7+6+7+6+510=5.8

Example 3: 
Find the mean of 12, 12, 23, 10, 10, 15, 15, 15, 9, 17

Total all the number above then divided by the number given

Solution:
12 + 12 + 23 + 10 + 10 + 15 + 15+ 15 + 9 +17 / 10

= 138 / 10

= 13.8 

2. Median

The median is the middle score for a set of data that has been arranged in order of magnitude. The median is less affected by outlines and skewed data. In order to calculate the median, suppose we have the data below:
65 55 89 56 35 14 56 55 87 45 92

We first need to rearrange that data into order of magnitude (smallest first):
14 35 45 55 55 56 56 65 87 89 92

Our median mark is the middle mark - in this case, 56 (highlighted in bold). It is the middle mark because there are 5 scores before it and 5 scores after it. This works fine when you have an odd number of scores, but what happens when you have an even number of scores? What if you had only 10 scores? Well, you simply have to take the middle two scores and average the result. So, if we look at the example below:
65 55 89 56 35 14 56 55 87 45

We again rearrange that data into order of magnitude (smallest first):
14 35 45 55 55 56 56 65 87 89

Only now we have to take the 5th and 6th score in our data set and average them to get a median of 55.5.
 

One numbers in the middle


Example 1: 

How to find the median value?

Solution: Put them in order:
 3, 5, 12
The middle is 5, so the median is 5.


Example 2:

3, 13, 7, 5, 21, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29
When we put those numbers in order we have:
3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 39, 40, 56 

Solution: There are fifteen numbers. Our middle is the eighth number:
3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 39, 40, 56

The median value of this set of numbers is 23


Example 3: Find the median in  2, 12, 23, 5, 25, 7, 8, 9, 10, 11, 12

Solution:*arrange the number from the smaller number to the biggest number.

2, 5, 7, 8, 9, 10, 11, 12, 12, 23, 25

* cancel one by one from in front and behind

The middle number is 10

Two Numbers in the Middle

BUT, with an even amount of numbers things are slightly different.
In that case we find the middle pair of numbers, and then find the value that is half way between them. This is easily done by adding them together and dividing by two.

Example 1:
3, 13, 7, 5, 21, 23, 23, 40, 23, 14, 12, 56, 23, 29

Solution: When we put those numbers in order we have:

3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 40, 56

There are now fourteen numbers and so we don't have just one middle number, we have a pair of middle numbers:

3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 40, 56

In this example the middle numbers are 21 and 23.

To find the value halfway between them, add them together and divide by 2:

21 + 23 = 44
then 44 ÷ 2 = 22
So the Median in this example is 22

Example 2:
There are 66 numbers

66 plus 1 is 67, then divide by 2 and we get 33.5

33 and a half? That means that the 33rd and 34th numbers in the sorted list are the two middle numbers.

So to find the median: add the 33rd and 34th numbers together and divide by 2.The answer is 33.5


Example 3:  

A marathon race was completed by 4 participants. What was the median race time?
2.7 hr,  8.3 hr,  3.5 hr,  5.1 hr
Solution:   Ordering the data from least to greatest, we get:
2.7,  3.55.1,  8.3
Since there is an even number of items in the data set, we compute the median by taking the mean of the two middlemost numbers.

3.5 + 5.1 = 8.6 ➗ 2

The answer is the median race time was 4.3 hr.
(Note that 22 was not in the list of numbers ... but that is OK because half the numbers in the list are less, and half the numbers are greater.)

3. Mode

The mode is the most frequent score in our data set. On a histogram it represents the highest bar in a bar chart or histogram. You can, therefore, sometimes consider the mode as being the most popular option. An example of a mode is presented below:

Normally, the mode is used for categorical data where we wish to know which is the most common category, as illustrated below:

We can see above that the most common form of transport, in this particular data set, is the bus. However, one of the problems with the mode is that it is not unique, so it leaves us with problems when we have two or more values that share the highest frequency, such as below:

We are now stuck as to which mode best describes the central tendency of the data. This is particularly problematic when we have continuous data because we are more likely not to have any one value that is more frequent than the other. For example, consider measuring 30 peoples' weight (to the nearest 0.1 kg). How likely is it that we will find two or more people with exactly the same weight (e.g., 67.4 kg)? The answer, is probably very unlikely - many people might be close, but with such a small sample (30 people) and a large range of possible weights, you are unlikely to find two people with exactly the same weight; that is, to the nearest 0.1 kg. This is why the mode is very rarely used with continuous data.
Another problem with the mode is that it will not provide us with a very good measure of central tendency when the most common mark is far away from the rest of the data in the data set, as depicted in the diagram below:

 In the above diagram the mode has a value of 2. We can clearly see, however, that the mode is not representative of the data, which is mostly concentrated around the 20 to 30 value range. To use the mode to describe the central tendency of this data set would be misleading.


Example 1:

To find the mode, or modal value, first put the numbers in order, then count how many of each number. A number that appears most often is the mode.

3, 7, 5, 13, 20, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29
In order these numbers are:
3, 5, 7, 12, 13, 14, 20, 23, 23, 23, 23, 29, 39, 40, 56
This makes it easy to see which numbers appear most often.
In this case the mode is 23

Example 2
{19, 8, 29, 35, 19, 28, 15}
Arrange them in order: {8, 15, 19, 19, 28, 29, 35}
19 appears twice, all the rest appear only once, so 19 is the mode.

Example 3:


{45, 33, 3, 8, 5, 6, 7, 17, 3, 3, 43}
Arrange them in order: {3, 3, 3, 5, 6, 7, 8, 17, 33, 43, 45}
3 is the most number among all the number here, so the mode is 3

This video is show you what is the different of mean, median and mode and it will show you how to solve it. 😃 



Exercise
... Try your best ...

1) What is the mean of the numbers 8, 9, 13 and 18?


2) What is the median of the numbers 4, 2, 11, 6, 2?


3) What is the mode for the numbers 7, 6, 5, 8, 7, 5, 9, 3, 5, 4?




Monday, 30 January 2017

Topic 6: Arithmetic prigression and Geometric progression & Exercise


ARITHMETIC PROGRESSION

Definition of Arithmetic progression

Definition 1: An arithmetic sequence or progression is defined as a sequence of numbers in which for every pair of consecutive terms, the second number is obtained by adding a fixed number to the first one.

Definition 2: The fixed number that must be added to any term of an AP to get the next term is known as the common difference of the AP (arithmetic progression).

An AP can contain positive as well as negative terms. Also, the common difference can be positive, negative or zero. The nth  term of an AP is referred to be the general term of an AP. The first term, common difference and general term of an AP are denoted by a, d and an  respectively.

So, the general form of an infinite AP (containing infinite terms) can be represented as
a, a + d , a + 2d , a + 3d,…



Formula to find n term for AP 

Tn = a + (n+1) d
n = term that are given in the question
a = first term or first number
d = the common different (2nd term - 1st term) 

Example 1:
 Calculate the 7 term of the following arithmetic progression:
2, -1, -4, -6..........

Solution:
Tn = a + (n-1) d
T7 = 2 + (7 - 1) -3
T7 = 2 + (6) -3
T7 = 2 + 3
T7 = 5 


Example 2:
Calculate the 20 term of the following arithmetic progression
7, 4, 1, 2..........

Solution:
Tn = a + (n-1)d
T20 = 7 + (20-1) -3
T20 = 7 + (19) -3
T20 = 7 + (16)
T20 = 23 


Example 3:
Calculate the 5 term of the following arithmetic progression
3, 6, 9, 12..........

Solution:
Tn = a+ (n-1)d
T5 = 3 + (5-1) 3
T5 = 3+ (4) 3
T5 = 3 + 12
T5 = 15


Sum of arithmetic progression

Below is the formula to find the sum of arithmetic progression
Sn = n/2 [2a + (n-1)d] 

Example 1:
find the sum of the first 10terms of sequence below:
3,5,7,9..........

Solution:
Sn = n /2 [2a+(n-1)d]
S10 = 10 / 2 [2 (3) + (10-1) 2]
S10 = 5 [6 + (9) 2]
S10 = 5 (24)
S10 = 120








Example 2:
Find the sum of the first 45 term of the sequence below:
1, 3, 5, 7, 9..........

Solution:
Sn = n / 2 [2a + (n-1) d]
S45 = 45 / 2 [2(1) + (45-1) 2]
S45 = 22.5 [2 + (44) 2]
S45 = 22.5 [2+88]
S45 = 22.5 [90]
S45 = 2025   
 

Example 3:
Find the sum of the first 23 term of arithmetic progression
4, -3, -10..........

Solution:
Sn = n/2 [2a+(n-1)d]
S23 = 23/2 [2(4) + (23-1) -7]
S23 = 11.5 [8 + (22) -7]
S23 =11.5 [8 + -154]
S23 = 11.5 [-146]
S23 = -1679


This video teach us how to solve the arithmetic progression.
 

While this is video how to find the sum of arithmetic progression

GEOMETRIC PROGRESSION

Definition of geometric progression
 A geometric progression is a sequence such that any element after the first is obtained by multiplying the preceding element by a constant called the common ratio which is denoted by "r". The common ratio is obtained by dividing any team by preceding term. 

In a geometric progression, the ratio of any two adjacent numbers is the same. An example is 5, 25, 125, 625, ... , where each number is multiplied by 5 to obtain the following number, and the ratio of any number to the next number is always 1 to 5. Compare arithmetic progression

Formula to find n term of geometric progression

Tn = ar^n-1

Formula to find ratio

2nd term / 1st term 

Example1:
Find the 10 term?
1, -2, 4, 8..........

First find the ratio (use the formula that are given above)

r = 2ns term / 1st term
r = -2 / 1
r = -2

Second find the n term

solution:
Tn = ar^n-1
T10 = 1(-2)^10-1
T10 = -2 ^9
T10 = -512


Example 2:
Find the 10 term?
2, 6, 18, 24..........

Solution:
r = 2nd term / 1st term
r = 6 / 2
r = 3

find the n term

T10 = 2 x 3^ 10-1
T10 = 6^9
T10 = 10077696






Example 3:
Find the 5 term?
3, 6, 9, 12..........

Solution:

r = 2nd term / 1st term
r = 6 / 3
r = 2

Second find the n term

T5 = 3 (2) ^ 5 -1 
T5 = 6 ^ 4
T5 = 1296

Sum of geometric progression
The formula is 
Sn = a (1-r^n) / 1 - r)




Below there are 3 example given.

Example 1; Find the sum of the first 7 term of Geometric progression?
1, -2, 4, 8..........

Solution:
r = 2nd term / 1st term
r = -2 / 1
r = -2

Second  use the formula of sum of geometric progression

Sn = a(1-r ^ n) / 1- r)
S7 = 1 (1-(-2) ^ 7) / 1 - (-2)
S7 = 1 (129 / 3)
S7 = 43 


Example 2: Find the first 20 term of the geometric progression with first term 3 and common ratio 1.5

Solution:

Sn = a(1 - r ^ n)  / 1-r)
S20 = 3 (1 - 1.5^20) / 1 -1.5)
S20 = 3 (-3324.25673) / - 0.5)
S20 = 19945.54038


Example 3: Find the sum of the 10 term of geometric progression with the first term 5 and common ratio 2.

Solution:

Sn = a (1-r^n) / 1 - r) 
S10 = 5 (1 -2^10) / 1 - 2
S10 = 5(-1023) / -1)
S10 = -5117


Below is the example to solve the geometric progression



While this is the video about how to solve the sum of geometric progression






Exercise

1) Find the 8 term of geometric progression
1, 2, -2, 8..........

2) Calculate the 7 term of the following arithmetic progression
4, 7, -1, 8..........

3) Find the sum of the first 10 term of sequence below:
2, 5, 7, 9..........