Industrial Mechatronics Technology  ·  Level 6
Engineering Mathematics
Chapter 8: Apply statistics and probability
📚 5 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • accurately find measures of central tendency to match job-specific probability needs
  • correctly calculate measures of dispersion as required in your work
  • apply laws of probability precisely to solve job-related problems
  • use probability distribution methods properly to support job tasks
  • apply sampling distribution methods correctly to meet job demands

Mastering these skills will help you make confident, data-driven decisions essential for success in engineering and technical roles.

Industrial Mechatronics Technology professionals frequently collect and analyze data from sensors, control systems, and production processes to optimize machine performance and ensure quality. Understanding how to present data effectively is crucial for diagnosing system behaviors, monitoring outputs, and making informed decisions in automated industrial environments. This chapter focuses on the statistical presentation of different types of data encountered in industrial mechatronics, facilitating accurate interpretation and communication of findings.

8.1 Data presentation

Data presentation is foundational in industrial mechatronics for summarizing measurements and observations from automated systems. Whether monitoring continuous sensor outputs or counting discrete events, choosing the correct data representation method enhances clarity and supports precise analysis. This section covers continuous and discrete variables, as well as grouped and ungrouped data formats common in industrial contexts.

8.1.1 Continuous variables

Continuous variables represent quantities measured on a scale that can take any value within a range, such as temperature, pressure, or motor speed. These variables are essential in mechatronics for controlling processes with high precision.

The general formula to represent continuous data distribution is the probability density function (PDF), but for data presentation, frequency distributions and histograms are commonly used.

$$ f(x) = \frac{\text{Number of observations in interval}}{\text{Total observations} \times \text{Interval width}} $$

Worked Examples

Example 1: A temperature sensor in an automated kiln records 50 readings between 200°C and 300°C. The data is grouped in intervals of 10°C. Calculate the frequency density for the interval 230°C to 240°C if 5 readings fall in this range.

Given:
Number of observations in interval = 5
Total observations = 50
Interval width = 10°C

$$ f(x) = \frac{5}{50 \times 10} $$

$$ f(x) = \frac{5}{500} = 0.01 \text{ per } °C $$

Answer: 0.01 per °C


Example 2: A conveyor belt speed sensor measures speeds continuously from 1.0 m/s to 2.0 m/s. If 20 readings fall between 1.3 m/s and 1.5 m/s out of 100 total readings, calculate the frequency density for this interval.

Given:
Number of observations in interval = 20
Total observations = 100
Interval width = 1.5 - 1.3 = 0.2 m/s

$$ f(x) = \frac{20}{100 \times 0.2} $$

$$ f(x) = \frac{20}{20} = 1 \text{ per } m/s $$

Answer: 1 per m/s


Example 3: A pressure sensor outputs readings between 100 kPa and 200 kPa. The readings are grouped into intervals of 20 kPa. If the frequency density for 140 kPa to 160 kPa is 0.015 per kPa, and total observations are 80, find the number of observations in this interval.

Given:
Frequency density, \(f(x) = 0.015\) per kPa
Total observations, \(N = 80\)
Interval width = 20 kPa

Formula for frequency density:$$ f(x) = \frac{\text{Frequency}}{N \times \text{Interval width}} $$

Rearranged for frequency:$$ \text{Frequency} = f(x) \times N \times \text{Interval width} $$

Substitute values:$$ \text{Frequency} = 0.015 \times 80 \times 20 $$

$$ \text{Frequency} = 0.015 \times 1600 = 24 $$

Answer: 24 observations


Kenyan Context Example

Example 4: At Bamburi Cement Ltd, a temperature sensor in the kiln records 60 readings between 1200°C and 1400°C, grouped in intervals of 20°C. If 9 readings fall in the interval 1260°C to 1280°C, calculate the frequency density for this interval.

Given:
Number of observations in interval = 9
Total observations = 60
Interval width = 20°C

$$ f(x) = \frac{9}{60 \times 20} $$$$ f(x) = \frac{9}{1200} = 0.0075 \text{ per } ^\circ C $$

Answer: 0.0075 per °C

8.1.2 Discrete variable

Discrete variables take specific separated values, often counts of events or items like the number of defective units or faults detected. These variables are vital in quality control and maintenance scheduling in mechatronics systems.

The frequency of each discrete value is presented using frequency tables or bar charts.

$$ f_i = \text{Number of occurrences of discrete value } x_i $$

Worked Examples

Example 1: In a shift, a machine recorded defects per hour as follows: 0 defects (3 hours), 1 defect (5 hours), 2 defects (2 hours). Find the total number of defects.

Given:
\(f_0 = 3\), \(f_1 = 5\), \(f_2 = 2\)

Total defects =$$ 0 \times 3 + 1 \times 5 + 2 \times 2 $$

$$ = 0 + 5 + 4 = 9 $$

Answer: 9 defects


Example 2: A sensor counts the number of faults per day over 10 days: 1, 0, 2, 1, 3, 0, 1, 2, 2, 1. Prepare a frequency table.

Values: 0, 1, 2, 3
Count frequencies:

  • 0 faults: 2 days
  • 1 fault: 4 days
  • 2 faults: 3 days
  • 3 faults: 1 day

Frequency table:
| Faults | Frequency |
|---|---|
| 0 | 2 |
| 1 | 4 |
| 2 | 3 |
| 3 | 1 |


Example 3: Calculate the mean number of faults per day from the frequency table in Example 2.

Given:
Faults \(x_i\) and frequencies \(f_i\) as above
Total days \(N = 10\)

Mean \( \bar{x} = \frac{\Sigma f_i x_i}{N} \)

$$ \bar{x} = \frac{(0 \times 2) + (1 \times 4) + (2 \times 3) + (3 \times 1)}{10} $$

$$ = \frac{0 + 4 + 6 + 3}{10} = \frac{13}{10} = 1.3 \text{ faults/day} $$

Answer: 1.3 faults/day


Kenyan Context Example

Example 4: At Kenya Power's Nairobi substation, the number of circuit breaker trips per day over a week is: 0, 1, 2, 0, 1, 3, 1. Prepare a frequency table.

Values: 0, 1, 2, 3
Count frequencies:

  • 0 trips: 2 days
  • 1 trip: 3 days
  • 2 trips: 1 day
  • 3 trips: 1 day

Frequency table:
| Trips | Frequency |
|---|---|
| 0 | 2 |
| 1 | 3 |
| 2 | 1 |
| 3 | 1 |

8.1.3 Grouped data

Grouped data organizes measurements into intervals or classes, allowing easier summarization of large datasets from sensors or production batches. This method is commonly used in industrial reporting for parameters like voltage levels or cycle times.

The midpoint \(x_m\) of each group is used for statistical calculations.

$$ x_m = \frac{\text{Lower class limit} + \text{Upper class limit}}{2} $$

Worked Examples

Example 1: A voltage sensor records the following grouped data:

Voltage (V) Frequency
200-220 4
220-240 6
240-260 10
260-280 5

Calculate the midpoint for each voltage class.

Calculate midpoints:
200-220:$$ x_m = \frac{200 + 220}{2} = 210 $$

220-240:$$ x_m = \frac{220 + 240}{2} = 230 $$

240-260:$$ x_m = \frac{240 + 260}{2} = 250 $$

260-280:$$ x_m = \frac{260 + 280}{2} = 270 $$

Answer: Midpoints are 210 V, 230 V, 250 V, 270 V respectively.


Example 2: Using the data from Example 1, calculate the mean voltage.

Given: frequencies \(f_i\) and midpoints \(x_{m_i}\)

Mean \( \bar{x} = \frac{\Sigma f_i x_{m_i}}{\Sigma f_i} \)

$$ \bar{x} = \frac{4 \times 210 + 6 \times 230 + 10 \times 250 + 5 \times 270}{4 + 6 + 10 + 5} $$

$$ = \frac{840 + 1380 + 2500 + 1350}{25} = \frac{6070}{25} = 242.8 \text{ V} $$

Answer: 242.8 V


Example 3: Calculate the variance of the voltage data in Example 1.

Step 1: Calculate mean \( \bar{x} = 242.8 \) V (from Example 2)
Step 2: Use variance formula for grouped data:

$$ \sigma^2 = \frac{\Sigma f_i (x_{m_i} - \bar{x})^2}{\Sigma f_i} $$

Calculate squared deviations:
\((210 - 242.8)^2 = ( -32.8 )^2 = 1075.84\)
\((230 - 242.8)^2 = ( -12.8 )^2 = 163.84\)
\((250 - 242.8)^2 = 7.2^2 = 51.84\)
\((270 - 242.8)^2 = 27.2^2 = 739.84\)

Multiply by frequencies:
\(4 \times 1075.84 = 4303.36\)
\(6 \times 163.84 = 983.04\)
\(10 \times 51.84 = 518.4\)
\(5 \times 739.84 = 3699.2\)

Sum:$$ 4303.36 + 983.04 + 518.4 + 3699.2 = 9504 $$

Divide by total frequency \(N=25\):$$ \sigma^2 = \frac{9504}{25} = 380.16 \text{ V}^2 $$

Answer: 380.16 V²


Kenyan Context Example

Example 4: At Kenya Breweries Ltd, the following grouped data shows the alcohol content (ABV %) of batches:

ABV (%) Frequency
4.0-4.5 8
4.5-5.0 12
5.0-5.5 18
5.5-6.0 7

Calculate the mean ABV.

Midpoints:
4.0-4.5: \(x_m = \frac{4.0+4.5}{2} = 4.25\)
4.5-5.0: \(x_m = \frac{4.5+5.0}{2} = 4.75\)
5.0-5.5: \(x_m = \frac{5.0+5.5}{2} = 5.25\)
5.5-6.0: \(x_m = \frac{5.5+6.0}{2} = 5.75\)

Mean:$$ \bar{x} = \frac{8 \times 4.25 + 12 \times 4.75 + 18 \times 5.25 + 7 \times 5.75}{8+12+18+7} $$$$ = \frac{34 + 57 + 94.5 + 40.25}{45} = \frac{225.75}{45} = 5.017 \text{\% ABV} $$

Answer: 5.017% ABV

8.1.4 Ungrouped data

Ungrouped data refers to raw individual data points collected from sensors or measurements before summarization. This form is essential for detailed analysis and is often the starting point before data grouping or statistical calculations.

Measures such as mean, median, and mode are calculated directly from ungrouped data.

$$ \bar{x} = \frac{\Sigma x_i}{n} $$

Worked Examples

Example 1: A robotic arm records the following cycle times in seconds: 12, 15, 14, 13, 16. Calculate the mean cycle time.

Given: \(x_i = \{12, 15, 14, 13, 16\}\), \(n=5\)

$$ \bar{x} = \frac{12 + 15 + 14 + 13 + 16}{5} $$

$$ = \frac{70}{5} = 14 \text{ seconds} $$

Answer: 14 seconds


Example 2: Find the median of the cycle times in Example 1.

Step 1: Arrange data in ascending order: 12, 13, 14, 15, 16
Step 2: Identify middle value (3rd value since \(n=5\))

Answer: Median = 14 seconds


Example 3: Calculate the mode of the following sensor fault counts recorded over 7 days: 2, 3, 2, 1, 4, 2, 3.

Given: data set \( \{2, 3, 2, 1, 4, 2, 3\} \)

Count frequencies:

  • 1 occurs 1 time
  • 2 occurs 3 times
  • 3 occurs 2 times
  • 4 occurs 1 time

Mode is the value with the highest frequency.

Answer: Mode = 2 faults


Practice Questions

  1. A temperature sensor records the following grouped data for 40 readings: 100-110°C (8 readings), 110-120°C (12 readings), 120-130°C (15 readings), 130-140°C (5 readings). Calculate the frequency density for each interval. (6 marks)

  2. A machine produces items with the following number of defects per batch over 7 batches: 0, 1, 2, 1, 0, 3, 1. Calculate the mean number of defects per batch. (6 marks)

  3. A pressure gauge outputs readings grouped as follows: 50-60 kPa (4 readings), 60-70 kPa (10 readings), 70-80 kPa (6 readings). Calculate the mean pressure. (6 marks)

  4. Given the ungrouped cycle times in seconds: 8, 9, 7, 10, 12, calculate the mean, median, and mode. (6 marks)

The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒8.2 Measures of central tendency

Measures of central tendency are statistical tools that summarize a large set of data by identifying a central point around which the data values cluster. For Industrial Mechatronics Technology professionals in Kenya, these measures are essential in analyzing…

🔒8.3 Measures of dispersion

In Industrial Mechatronics Technology, understanding the variability of data such as sensor readings, machine tolerances, or production measurements is vital. Measures of dispersion describe how data points spread around a central value, enabling engineers and…

🔒8.4 Probability types

Probability is essential in industrial mechatronics technology for predicting the likelihood of events such as component failures, system faults, or quality defects. Understanding different probability types helps engineers evaluate risks and make informed dec…

🔒8.5 Probability distribution functions

Probability distribution functions describe how probabilities are distributed across values of a random variable. In industrial mechatronics, these functions model events like failure rates, number of faults per time unit, or measurement errors. Key distributi…

Chapter Summary

This chapter covered the presentation of data using various graphical methods suited to different types of variables, including histograms and line graphs for continuous data, bar and pie charts for discrete data, as well as techniques for grouped and ungrouped data such as cumulative frequency and ogive curves. It then explored measures of central tendency, detailing how to calculate the mean, mode, and median for both grouped and ungrouped data sets. The chapter proceeded to measures of dispersion, explaining the concepts and calculations of standard deviation, variance, range, quartile deviation, and mean deviation to describe data variability. Different types of probability were examined, distinguishing between scenarios with and without replacement. Finally, the chapter introduced key probability distribution functions, focusing on the binomial, Poisson, and normal distributions, which model various types of random phenomena in engineering contexts. These topics collectively provide essential tools for analyzing and interpreting data relevant to engineering projects and decision-making.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

Written Assessment

  1. A sensor records the temperature in a manufacturing plant every hour for 8 hours as follows (in °C):
    22, 24, 23, 25, 24, 26, 25, 27.
    Calculate the mean temperature. (2 marks)

  2. The number of defective parts produced by a robotic arm in 10 shifts are:
    3, 5, 2, 4, 6, 3, 7, 5, 4, 3.
    Find the mode of defective parts per shift. (2 marks)

🔒18 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. A mechatronics engineer at a Nairobi manufacturing firm collects continuous temperature readings of a hydraulic system every hour for 12 hours. Represent this data using a suitable graph. Which graph would best display the continuous variable? (4 marks)
  2. Given the following frequency distribution of defects in a batch of 100 sensors: 0 defects (40 sensors), 1 defect (35 sensors), 2 defects (20 sensors), 3 defects (5 sensors). Construct a bar graph to represent this discrete data. (4 marks)
🔒18 more in this section.
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Am I competent?

At the start of this chapter we promised you would be able to:

  • accurately find measures of central tendency to match job-specific probability needs
  • correctly calculate measures of dispersion as required in your work
  • apply laws of probability precisely to solve job-related problems
  • use probability distribution methods properly to support job tasks
  • apply sampling distribution methods correctly to meet job demands

Tick each one you can genuinely do.

So, are you there yet?

You're competent when you can confidently do 50% or more of what this chapter promised.

Sign in to record how you're doing.