#### Statistics

**PRESENTING DATA**

- Raw data refers to data that has not undergone any form of processing; i.e., all the information is just congested and hard to make sense of.
- Presenting data in some forms helps to ‘free up’ the data, i.e. make it more understandable.
- Data can be presented using the following methods:
- BAR CHART
- A bar chart (or bar graph) is a chart (or graph) that represents categorical data with rectangular bars.
- The lengths/heights of these bars are proportional to the values they represent.
- The bar chart is usually drawn along the x-, and y-axis with the x-axis representing the categories of the data, the y-axis representing values for those categories.
- Bar charts can be drawn horizontally or vertically. Vertically drawn bar charts are the most common.
- A vertical bar chart is sometimes called a
*column chart*. - Bar charts are used for discrete variables only.
- When constructing a bar chart, it is important to choose a suitable scale to represent the frequency.

- BAR CHART

- PIE CHART
- A pie chart is a type of graph that displays data in a circular graph.
- In a pie chart, the length of the arc of each slice (and consequently its central angle and area), is proportional to the quantity it represents.
- In other words, each ‘slice’ of the pie is relative to the size of that category in the group as a whole.
- The entire ‘pie’ represents 100 percent of a whole, while the ‘slices’ of the pie represent portions of the whole.
- A pie chart gives you a snapshot of how a group is broken down into smaller pieces.

- PIE CHART

**AVERAGES**

- The average of a set of numbers is a number that is representative of a whole set of numbers.
- There are three common averages: the mean, median, and mode.
- The mean is the sum of all the values divided by the number of values.
- The median is the middle value when all the numbers are arranged in order of size. If there are two middle values, the mean is the mean of the two numbers.
- The mode is the value of the highest frequency. Some distributions (sets of values) may have more than one mode. A bimodal distribution has two modes.

**PROBABILITY**

- If there are n possible outcomes and r required outcomes, the probability, p, of obtaining a required outcome is given as a fraction:
- Probability, P =
^{Number of required outcomes}/_{Number of possible outcomes}=^{r}/_{n} - where:
- P lies between 0 and 1, and
- P may be expressed as a common fraction, a decimal fraction, or percentage.

- Probability, P =
- If an outcome is certain to happen, its probability is 1.
- If an outcome is not certain to happen, its probability is 0.
- If the probability of an event happening is p, then the probability of the event not happening is 1 – p.

__Examples__

__Examples__

- In a Government College in the west of Nigeria, 400 students were asked what their mother language was. The results were as follows:
Hausa 55 Igbo 70 Yoruba 178 Others 97 Represent this data with a bar chart.

- For this question, we would pick a scale that would effectively house the frequencies given.

- For this question, we would pick a scale that would effectively house the frequencies given.
- The bar chart below shows the distribution of secondary school classes 1 – 6 in a school.

- How many students are in the school?
- To get the total number of students in the school, we would add the total number of students in each class.
- For class 1, the total number of students = 80
- For class 2, the total number of students = 60
- For class 3, the total number of students = 60
- For class 4, the total number of students = 40
- For class 5, the total number of students = 40
- For class 6, the total number of students = 20
- ∴ The total number of students in the school = 80 + 60 + 60 + 40 + 40 + 20 = 300 students

- If each of the students gets three exercise books for the term, how many exercise books are needed?
- Exercise books needed = Total number of students × Number of books needed by each student
- ∴ Exercise books needed = 300 × 3
- ∴ Exercise books needed = 900 books

- How many students are in the school?
- In a Government College in the west of Nigeria, 400 students were asked what their mother language was. The results were as follows:
Hausa 55 Igbo 70 Yoruba 178 Others 97 Represent this data with a pie chart.

- Firstly, we calculate the total number of students, which is 400.
- Secondly, we calculate the ratio of number of students for each mother language to the total number of students, i.e.
- For Hausa:
^{55}/_{400}=^{11}/_{80} - For Igbo:
^{70}/_{400}=^{7}/_{40} - For Yoruba:
^{178}/_{400}=^{89}/_{200} - For Others:
^{97}/_{400}=^{97}/_{400}

- For Hausa:
- Thirdly, we multiply each of the ratios by the total angle of a pie (which is a circle), which is 360°
- For Hausa:
^{11}/_{80}× 360 = 49.5° - For Igbo:
^{7}/_{40}× 360 = 63° - For Yoruba:
^{178}/_{400}× 360 = 160.2° - For Others:
^{97}/_{400}× 360 = 87.3° **NOTE**: To check if you are correct, add the new angles together, they must be equal to 360°.

- For Hausa:
- Fourthly, we plot the pie chart using the angles for each mother language.

- 72 fish were caught in a river in one day. The chart below shows the different kinds of fish caught.

- What percentage of fish were dogfish?
- To calculate the percentage of fish that were dogfish, we would first divide the angle of the dogfish by the total angle of the pie (360°), and then multiply the result by 100%.
- ∴ Percentage of fish that were dogfish =
^{90}/_{360}× 100% - ∴ Percentage of fish that were dogfish = 25%

- What fraction of the fish were bream?
- To calculate this fraction, we would divide the angle of the bream fish by the total angle of the pie.
- ∴ The fraction of fish that were bream =
^{135}/_{360}=^{3}/_{8}

- How many kingfish were caught?
- To calculate the amount of fish that were kingfish, we would find the fraction of the fish that were bream, and then multiply by the total number of fish that were caught.
- ∴ Number of kingfish =
^{120}/_{360}× 72 = 24 Kingfish.

- How many pike were caught?
- Angle of pike fish = 360 – (120 + 90 + 135) = 15°
- ∴ Number of pike fish =
^{15}/_{360}× 72 = 3 Pike fish

- What percentage of fish were dogfish?
- In five tests, a student’s marks were 13, 17, 18, 8, and 10. What is the average mark?
- Average (Mean) mark = (13 + 17 + 18 + 8 + 10) ÷ 5
- =
^{66}/_{5} - ∴ The average mark = 13.2

- A hockey team has played eight games and has a mean score of 3.5 goals per game. How many goals has the team scored?
- Mean score = Total number of goals ÷ Number of games
- ∴ 3.5 =
^{Total number of goals}/_{8} - Multiply both sides by 8: 3.5 × 8 = Total number of goals.
- ∴ The total number of goals scored = 28 goals

- Find the median of 8.3, 11.3, 9.4, 13.8, 12.9, 10.5.
- Arrange the set of numbers in order of size: 8.3, 9.4, 10.5, 11.3, 12.9, 13.8
- There are six numbers, the median is the mean of the third and fourth numbers.
- Median = (10.5 + 11.3) ÷ 2
- =
^{21.8}/_{2} - ∴ The median = 10.9

- In a class test, the marks scored by 40 students are shown in the table below. Find the mode of the marks.

- The greatest frequency is 8.
- Two marks have this frequency; 6 and 9.
- Thus there are two modes; 6 and 9.
- This distribution is said to be
*bimodal*

- It is known that out of every 1000 new cars, 50 develop a mechanical fault in the first three months. What is the probability of buying a car that will develop a mechanical fault within three months?
- Number of cars developing faults = 50
- Number of cars altogether = 1000
- Probability of buying a faulty car =
^{50}/_{1000} - ∴ P =
^{1}/_{20}

- A tray of eggs contains 18 large-sized and 12 small-sized eggs. An egg is selected at random. Find the probability of selecting:
- a small-sized egg.
- The total number of eggs in the tray = 30
- Number of small-sized eggs = 12
- ∴ The probability of selecting a small-sized egg =
^{12}/_{30} - ∴ The probability of selecting a small-sized egg =
^{2}/_{5}

- either a small-sized or a large-sized egg.
- It is certain that either a small-sized egg or a large-sized egg will be selected.
- ∴ P =
^{30}/_{30}= 1

- Neither a small-sized nor a large-sized egg.
- The eggs are either large or small. It is impossible to select any other size.
- ∴ P =
^{0}/_{30}= 0

- a small-sized egg.