Handouts ENGINEERING DATA ANALYSIS 2020 CIVIL ENGINEERING PDF
Handouts ENGINEERING DATA ANALYSIS 2020 CIVIL ENGINEERING PDF
Vision: A premier S & T university for the formation of a world-class and virtuous human resource for sustainable development in Bohol and the country.
Mission: BISU is committed to provide quality higher education in the arts and sciences, as well as in the professional and technological fields; undertake research and
development, and extension services for the sustainable development of Bohol and the country.
Probability
Probability is a field of mathematics that deals with chance. An experiment is an activity in which the
results cannot be predicted with certainty. Each repetition of an experiment is called a trial. An outcome is a
result of an experiment. An event is any collection of outcomes, and a simple event is an event with only one
possible outcome. An event can be one outcome or more than one outcome. For example, if a die is rolled
and a 6 shows, this result is called an outcome, since it is a result of a single trial. An event with one
outcome is called a simple event. The event of getting an odd number when a die is rolled is called a
compound event, since it consists of three outcomes or three simple events. In general, a compound
event consists of two or more outcomes or simple events. The sample space for a given experiment is a set
S that contains all possible outcomes of the experiment.
The sample space for the experiment of throwing a die and observing the number of dots on the top
face is the set { 1, 2, 3, 4,5, 6}.
In any experiment for which the sample space is S, the probability of an event occurring is given by the formula
𝑛 𝐸𝑣𝑒𝑛𝑡
𝑃 𝐸𝑣𝑒𝑛𝑡 = 𝑛 Sample Space
𝑆𝑎𝑚𝑝𝑙𝑒 𝑆𝑝𝑎𝑐𝑒
Event
1. Tree Diagram
Example 1. Use a tree diagram to show all the possible outcomes when two unbiased coins are tossed.
Example 2.In a drawer there are some white socks and some black socks. Tim takes out one sock and then a
second. Draw a tree diagram to show the possible outcomes.
Caitlin and Dave each buy a chocolate bar from a vending machine that sells Aero, Bounty, Crunchie and Dime
bars. List the possible pairs of bars which Caitlin and Dave can choose.
3. Tables
Example 1.A fair dice is rolled and an unbiased is tossed. Draw a table to show the possible outcomes.
Example 2. Draw a table to show all the possible total scores when two fair dice are thrown at the same time.
Classical Probability
Classical probability uses sample spaces to determine the numerical probability that an event
will happen. You do not actually have to perform the experiment to determine that probability. Classical
probability is so named because it was the first type of probability studied formally by mathematicians
in the 17th and 18th centuries.
Rounding Rule for Probabilities. Probabilities should be expressed as reduced fractions or rounded to
two or three decimal places. When the probability of an event is an extremely small decimal, it is
permissible to round the decimal to the first nonzero digit after the point. For example, 0.0000587
would be 0.00006.
Examples:
1. Find the probability of getting a black 10 when drawing a card from a deck.
2. If a family has three children, find the probability that two of the three children are girls.
3. A card is drawn from an ordinary deck. Find these probabilities.
a. Of getting a jack.
b. Of getting the 6 of clubs (i.e., a 6 and a club).
c. Of getting a 3 or a diamond.
d. Of getting a 3 or a 6.
Examples:
1. When a single die is rolled, find the probability of getting a 9. ( Ans. Zero or Impossible)
2. When a single die is rolled, what is the probability of getting a number less than 7? (Ans. One or
Certain)
Empirical Probability
The difference between classical and empirical probability is that classical probability assumes
that certain outcomes are equally likely (such as the outcomes when a die is rolled), while empirical
probability relies on actual experience to determine the likelihood of outcomes. In empirical probability,
one might actually roll a given die 6000 times, observe the various frequencies, and use these
frequencies to determine the probability of an outcome.
Suppose, for example, that a researcher for the American Automobile Association
Example: In a sample of 50 people, 21 had type O blood, 22 had type A blood, 5 had type B blood, and 2
had type AB blood. Set up a frequency distribution and find the following probabilities.
a. A person has type O blood.
b. A person has type A or type B blood.
c. A person has neither type A nor type O blood.
d. A person does not have type AB blood.
Example 2: Hospital records indicated that knee replacement patients stayed in the hospital for the
number of days shown in the distribution.
Subjective Probability
The third type of probability is called subjective probability. Subjective probability uses a
probability value based on an educated guess or estimate, employing opinions and inexact information.
In subjective probability, a person or group makes an educated guess at the chance that an event
will occur. This guess is based on the person’s experience and evaluation of a solution. For example, a
sportswriter may say that there is a 70% probability that the
Pirates will win the pennant next year. A physician might say that, on the basis of her diagnosis,
there is a 30% chance the patient will need an operation. A seismologist might say there is an 80%
probability that an earthquake will occur in a certain area. These are only a few examples of how
subjective probability is used in everyday life.
All three types of probability (classical, empirical, and subjective) are used to solve a variety of
problems in business, engineering, and other fields.
LET’S DO AN EXERCISE
2. Find the probability of getting at least two 4’s in a roll of three dice.
3. A number of five different digits is built at random from the digits (1, 2, 3, 4, 5, 6, 8). Find the probability
that the number will have even digits at each end.
Addition Rule 1. Probability of Mutually Exclusive Events- two or more events are mutually exclusive if the
occurrence of one of them excludes the probability of the others to happen in the same trial. It refers to as the
sum of their separate probabilities.
P (A U B) = P (A) + P (B)
Addition Rule 2. Not Mutually Exclusive- events occur together.
P( A or B)= P(A)+ P(B)-P(A and B)
Examples:
1. Determine which events are mutually exclusive and which are not, when a single die is rolled.
a. Getting an odd number and getting an even number
b. Getting a 3 and getting an odd number
c. Getting an odd number and getting a number less than 4
d. Getting a number greater than 4 and getting a number less than 4
2. Determine which events are mutually exclusive and which are not when a single card is drawn from a
deck.
a. Getting a 7 and getting a jack
b. Getting a club and getting a king
c. Getting a face card and getting an ace
d. Getting a face card and getting a spade
3. A box contains 3 glazed doughnuts, 4 jelly doughnuts, and 5 chocolate doughnuts. If a person selects a
doughnut at random, find the probability that it is either a glazed doughnut or a chocolate doughnut.
4. At a political rally, there are 20 Republicans, 13 Democrats, and 6 Independents. If a person is selected at
random, find the probability that he or she is either a Democrat or an Independent.
5. A single card is drawn at random from an ordinary deck of cards. Find the probability that it is either an
ace or a black card.
6. On New Year’s Eve, the probability of a person driving while intoxicated is 0.32, the probability of a person
having a driving accident is 0.09, and the probability of a person having a driving accident while
intoxicated is 0.06. What is the probability of a person driving while intoxicated or having a driving
accident?
Multiplication Rules can be used to find the probability of two or more events that occur in sequence.
Multiplication Rule 1. Two events A and B are independent events if the fact that A occurs does not affect the
probability of B occurring.
P A and B = P A •P B
Multiplication Rule 2. When the outcome or occurrence of the first event affects the outcome or occurrence of
the second event in such a way that the probability is changed, the events are said to be dependent events.
P A and B = P A •P B∣A .
Examples:
1. A coin is flipped and a die is rolled. Find the probability of getting a head on the coin and a 4 on the
die.
2. A card is drawn from a deck and replaced; then a second card is drawn. Find the probability of
getting a queen and then an ace.
3. Example: Three cards are drawn from an ordinary deck and not replaced. Find the probability of
these events.
i) Getting 3 jacks.
ii) Getting an ace, a king, and a queen in order.
iii) Getting a club, spade, and a heart in order.
iv) Getting 3 clubs.
Conditional Probability
The probability that the second event B occurs given that the first event A has occurred can be found by
dividing the probability that both events occurred by the probability that the first event has occurred. The
formula is P B∣A =
Example 1. A box contains black chips and white chips. A person selects two chips without replacement. If the
probability of selecting a black chip and a white chip is , and the probability of selecting a black chip on the
Example 2. The probability that Sam parks in a no-parking zone and gets a parking ticket is 0.06, and the
probability that Sam cannot find a legal parking space and has to park in the parking zone is 0.20. On Tuesday,
Sam arrives at school and has to park in a no-parking zone. Find the probability that he will get a parking
ticket.
Solution: Let N=parking in a no-parking zone T=getting a ticket
.
P T∣N = = . =0.30
In sequence of events in which the first one has m1 possibilities, the second has m2, the third has m3
and so on and the total number of possible outcomes will be
m1•m2•m3•...mn
Examples:
1. In a restaurant, a person can choose from the 8 viands, plain, garlic or java rice, 5 kinds of
beverages and 6 kinds of desserts. In how many ways can this person choose what to have if
he is to order one from each group?
2. In how many ways can 4 boys and 3 girls be seated in a row of 7 seats if the end seats are to
be occupied by boys?
3. In how many ways can 3 men be assigned consecutive seats in a row of 7 seats?
4. In how many ways can 4 boys and 3 girls be seated in a row of 7 seats with the girls in
consecutive seats?
In sequence of events in which the first on has m1 possibilities, the second has m2, the third has m3, and so on,
and if the events are mutually exclusive, then the total number of possible outcomes will be
m1+m2+m3+...mn
1. How many numbers greater than 5 000 can be formed the digits 1, 2, 3, 4, and 5 using each
digit only once in each number?
2. How many numbers greater than 5000 of four different digits each, can be formed by the use
of the digits 0, 2, 3, 4, 8, 9?
3. How many integers between 1000 and 9000 may be formed from the digits 2, 4, 5, 6 and 7?
Lek k be a positive integer. Then the product of the first k positive integers is called k factorial and is denoted
by the symbol k! . Thus,
Every arrangement in order of a set of things is called permutations. It refers to a set of objects is any
arrangement of the said objects in definite order. Thus, the set of the letters m, s, a, if we use all of them, can
be arranged in the following orders:
Cases to be followed:
!
3. Permutation of n objects Not all Distinct. = ! ! !.. !
Ex. How many permutations can be made with the word CONCOCTION?
Ex. In how many ways can you arrange the letters of the word “PROBABILITY”?
Ex. In how many ways can you arrange the letters of the word “STATISTICS”?
4. Circular Permutations (n-1)!
Ex. In how many ways can eight guests be seated in a round table with eight chairs?
Ex. How many ways can you sit 10 people in a round table with 10 seats?
Combinations
Combination refers to a selection of objects with no attention given to their order of arrangement. Thus, msa,
mas, ams are all combinations, although they are different permutations.
!
1. Combination of n objects taken r at a time. = ! !
Ex. In how many ways can a reader select 3 books without regard to order from a set of 4 books?
Ex. From a deck of 52 cards, in how many ways can a hand of 13 cards be selected?
1. A box has contains 16 marbles, 7 of which are blue, 4 are red, and 5 are yellow. What is the
probability of drawing at random 3 marbles that are (a) blue; (b) yellow; (c) red; (d) 1 red and 2
yellow; (e) at least 1 blue; and (f) the marbles in order are blue, red and yellow?
2. Out of 5 men and 7 women, a committee consisting of 2 men and 3 women is to be formed. In how
many ways can this be done if
a. Any men and any women can be included
b. One particular women must be included on the committee
c. Two particular men cannot be included on the committee
3. A poker hand consists of five cards dealt from an ordinary deck of 52 playing cards.
a. How many possible poker hands are there?
b. How many different hands are there consisting of three aces and two kings?
c. How many different hands are there consisting of all red cards?
d. How many different hands are there consisting of 2 hearts, 2 diamonds and 1 spade?
4. A combination lock consists of the 26 letters of the alphabet. If a 3-letter combination is needed, find
the probability that the combination will consist of the letters ABC in that order. The same letter can
be used more than once. (Note: A combination lock is really a permutation lock.)
5. There are 8 married couples in a tennis club. If 1 man and 1 woman are selected at random to plan the
summer tournament, find the probability that they are married to each other.
LET’S DO AN EXERCISE
1. In a class, there are 15 boys and 10 girls. Three students are selected at random. What is the
probability that 1 girl and 2 boys are selected?
2. From a pack of 52 cards, two cards are drawn together at random. What is the probability of both the
cards being kings?
3. From a group of 7 men and 6 women, five persons are to be selected to form a committee so that at
least 3 men are there on the committee. In how many ways can it be done?
4. A class photograph has to be taken. The front row consists of 6 girls who are sitting. 20 boys are
standing behind. The two corner positions are reserved for the 2 tallest boys. In how many ways can
the students be arranged?
5. In how many different ways can the letters of the word 'MATHEMATICS' be arranged so that the
vowels always come together?
6. A teacher is making a multiple choice quiz. She wants to give each student the same questions, but
have each student's questions appear in a different order. If there are twenty-seven students in the
class, what is the least number of questions the quiz must contain?
7. Find the probability that in a random arrangement of the letters of the word 'UNIVERSITY' the two I's
come together.
8. A special lottery is to be held to select a student who will live in the only deluxe room in a hostel.
There are 100 Year-III, 150 Year-II and 200 Year-I students who applied. Each Year-III's name is
placed in the lottery 3 times; each Year-II's name, 2 times and Year-I's name, 1 time. What is the
probability that a Year-III's name will be chosen?
9. How many words can be formed by re-arranging the letters of the word ASCENT such that A and T
occupy the first and last position respectively?
HYPERGEOMETRIC DISTRIBUTION
Definition
A set of N objects contains K objects classified as successes and N-K objects classified as failures. A
sample of size n objects is selected randomly (without replacement) from the N objects, where K N and
n .
Let the random variables X denotes the number of successes in the sample. Then X is a
hypergeometric random variable and
( )( )
=
( )
x=max{0, } min{ , }
If X represents a random variable that has a binomial distribution, then it can be expressed as:
X~Bi(n,p) or X~B(n,p). It can be translated into words, X~Bi(n,p) means that X follows a binomial
distribution with parameters n (the number of trials) and p (probability of success).
Consider the experiment where a fair die is rolled four times. If X represents the number of times a 3
appears uppermost, then X is a binomial variable. Obtaining a 3 will represent a success and all other values
Example 1. Determine which of the following sequences can be defined as Bernoulli sequences.
a. Rolling an 8-sided die numbered 1 to 8 forty times and recording the number of 6s obtained.
b. Drawing a card from a fair deck with replacement and recording the number of aces.
c. Rolling a die 60 times and recording the number that is obtained.
Example 2. A binomial variable, X, has the probability function Pr (X=x) = 6 0.4 0.6 x=0,
1,…6. Find:
a. n, the number of trials
b. p, the probability of success
c. the probability distribution for x as a table.
Example 3. A fair dice is rolled five times. Find the probability of obtaining:
a. exactly four 5s
b. exactly two even numbers
Example 4. A new drug for hay fever is known to be successful in 40% of cases. Ten hay fever sufferers take
part in the testing of the drug. Find the probability that:
a. four people are cured b. no people are cured c. all 10 are cured.
Example 5. Find Pr(X 3 if X has a binomial distribution with the probability of success, p, and the number of
trials, n, given by p=0.3, n=5.
Example 6. A bag contains 4 red and 3 blue marbles. A marble is selected at random and replaced. The
experiment is repeated 7 times. Find the probability that:
a. all 7 selections are red b. at least 5 are red c. no more than 2 are red.
Example 7. Seventy per cent of all scheduled trains through Westbourne station arrive on time. If 10 trains go
through the station every day, find:
a. the probability that at least 8 trains are on time
Examples:
1. In a large city, 50% of the people choose a movie, 30% choose dinner and a play, and 20% choose
shopping as a leisure activity. If a sample of 5 people is randomly selected, find the probability that 3
are planning to go to a movie, 1 to a play, and 1 to a shopping mall.
2. A small airport coffee shop manager found that the probabilities a customer buys 0, 1, 2, or 3 cups of
coffee are 0.3, 0.5, 0.15, and 0.05, respectively. If 8 customers enter the shop, find the probability that
2 will purchase something other than coffee, 4 will purchase 1 cup of coffee, 1 will purchase 2 cups,
and 1 will purchase 3 cups.
3. A box contains 4 white balls, 3 red balls, and 3 blue balls. A ball is selected at random, and its color is
written down. It is replaced each time. Find the probability that if 5 balls are selected, 2 are white, 2
are red, and 1 is blue.
POISSON DISTRIBUTION
The Poisson distribution, named after the French mathematician Simeon D. Poisson in 1837 is
another important probability distribution of a discrete random variable that has many applications. The
Poisson distributions is applied to experiments with random and independent occurrences.
Given an interval of real numbers, assume events occur at random throughout the interval. If the
interval can be partitioned into subintervals of small enough length such that
1. the probability of more than one event in an subinterval is zero.
2. the probability of one event in a subinterval is the same for all subinterval is the same for all
subintervals and proportional to the length of the subinterval, and
3. the event in each subinterval is independent of other subintervals, the random experiment is called a
Poissson process.
Examples
1. In statistics course final examination, 15% of the students fail. Find the probability that in random of
100 students in that statistics class who took the final examination exactly 20 will fail. Use the
Poisson formula.
2. Suppose an average of 5 calls for service per hour is received by a machine repair office. What is the
probability that exactly two calls for service will be received in a randomly selected hour?
3. Determine the probability that
LET’S DO AN EXERCISE
1. In the manufacture of glassware, bubbles can occur in the glass which reduces the status of the
glassware to that of a ‘second’. If, on average, one in every 1000 items produced have a bubble,
calculate the probability that exactly six items in a batch of three thousand are seconds.
2. An automatic camera records the number of cars running a red light at an intersection (that is, the
cars were going through when the red light was against the car). Analysis of the data shows that on
average 15% of light changes record a car running a red light. Assume that the data has a binomial
distribution. What is the probability that in 20 light changes there will be exactly three (3) cars
running a red light?
3. A Statistics department purchased 24 hand calculators from a dealer in order to have a supply on
hand for tests for use by students who forget to bring their own. Although the department was not
aware of this, five of the calculators were defective and gave incorrect answers to calculations. When
a test is being written, students who have forgotten their own calculators are allowed to select one of
the Department's (at random). Suppose at the first test of the term, four students forgot to bring their
calculators. What is the probability that exactly one of these students selects a defective calculator?
4. A graduate statistics course has seven male and three female students. The professor wants to select
two students at random to help her conduct a research project. What is the probability that the two
students chosen are female?
5. In a school survey 68% of the students have an Android device. What is the probability that 12 of a
selecting of 20 have Android devices?
6. The average number of homes sold by the Acme Realty Company is 2 homes per day. What is the
probability that exactly 3 homes will be sold tomorrow?
Random variables are expressed as capital letters, usually from the end of the alphabet ( for example
X, Y, Z) and the value they can take on is represented by lowercase letters ( for example x, y, z respectively)
Random variable is categorized into two, discrete and continuous random variable. Discrete random
variables generally deal with number or size or outcomes were able to be counted. Continuous random
variables generally deal with quantities which can be measured, such as mass, height or time.
Discrete random variables generally deal with number or size and are able to be counted. A discrete
probability distribution exists only if the following two characteristics are satisfied.
a. Each probability lies in a restricted interval 0 Pr = 1.
b. The probabilities of a particular experiment sum to 1, that is, ∑ Pr X=x =1.
If these two characteristics are not satisfied, then there is no discrete probability distribution.
Example 2. Let X represent the number of tails obtained in three tosses. Draw up a table which displays the
values the discrete random variable random variable can assume and the corresponding probabilities.
X 0 1 2 3 X 0 2 4 6
Pr 0.2 0.5 0.2 0.1 Pr (X=x) 0.5 0.3 0.1 0.1
(X=x)
X -2 0 5 7 X -1 0 1 2
Pr -0.2 0.3 0.5 0.4 Pr 0.2 0.1 0.3 0.3
(X=x) (X=x)
Example 4. Find the value of k for each of the following discrete probability distributions.
1.
X 1 3 5 7 9
Pr (X=x) 0.2 k 0.2 0.3 0.1
2.
X 0 1 2 3 4
Pr (X=x) 5k 6k 4k 3k 2k
The expected value of a discrete random variable, X, is the average value of X. It is also referred to as the mean
of X or the expectation.
The expected value of a discrete random variable, X, is denoted by E X or the symbol mu . It is
defined as the sum of each value of X multiplied by its respective probability; that is,
E(X)= x1Pr(X=x1) + x2Pr(X=x2) + x3Pr(X=x3) +... + xnPr(X=xn)= ∑ =
The expected value of a discrete random variable, X, is defined by the rule =∑ = .
Also = ∑ Pr = .
A game is considered fair if the cost to play the game is equal to the expected gain.
A fair game is one in which = 0.
The expected value of a linear function can be calculated using the expectation theorems:
=
=
=
=
Note: The expected value will not always assume a discrete value.
Example 7. Find the expected value of a random variable which has the following probability distribution.
x 1 2 3 4 5
Pr(X=x) 2/5 1/10 3/10 1/10 1/10
Example 9. Find the values of a and b of the following probability distribution if = 4.2
x 1 2 3 4 5 6 7
Pr (X=x) 0.1 0.1 A 0.3 0.2 b 0.2
Example 10. Niki and Melanie devise a gambling game based on tossing three coins simultaneously. If three
heads or three tails are obtained, the player wins $20. Otherwise the player loses $5. In order to make a profit
they charge each person two dollars to play.
a. What is the expected gain to the player?
b. Do Nikki and Melanie make a profit?
c. Is this a fair game?
The variance is written as ar X and denoted by the symbol (sigma squared). It is defined as the
expected value (or average) of the squares of the spreads (deviations) from the mean.
Var (x)=
The variance of a linear function can also be calculated by the following rule:
Var =
The standard deviation, SD X or σ, is defined by the rule:
SD(X)=√ =√
Example 12. Find the expected value and variance of the following probability distribution table.
x 1 2 3 4 5
Pr (X=x) 0.15 0.12 0.24 0.37 0.12
Example 13. Find the variance of 2Y+1 for the following probability distribution table.
Y 0 1 2 3
Pr (Y=y) 0.25 0.35 0.2 0.2
Example 14. X is a discrete random variable with the following probability distribution.
X 3 4 6 K
Pr(X=x) 0.15 0.3 0.45 0.1
Find the value of k, a positive integer, if the variance is 1.7475.
X 0 1 2 3
Pr(X=x) ¼ 3/8 1/8 ¼
Math 4- Engineering Data Analysis DR. JOSEPH ITEM SALIGAN- Professor
Contacts: 0912-443-9392/0927-749-8487 Email Add: [email protected] Page 14
Calculate the expected value, the variance and the standard deviation.
Example 16. In order to encourage car pooling, a new toll is to be introduced on the Eastgate Bridge. If the car
has no passengers, a toll of $2 applies. Cars with one passenger pay a $1.50 toll, cars with two passengers pay
a $1 toll and cars with 3 or more passengers pay no toll. Long-term statistics show that the number of
passengers (X) follows the probability distribution given below.
x( no. of passengers) 0 1 2 3
Pr(X=x) 0.4 0.35 0.2 0.05
a. Construct a probability distribution of the toll paid.
b. Find the mean toll paid per car.
c. Find the standard deviation of tolls paid.
If X is a random variable and X~Bi(n,p) then: E(X)=np, Var(X)=npq and SD(X)= √ . Note: the
distribution must be binomial for these rules to apply.
Example 24: If the random variables, X, is such that X~Bi(8, 0.3) and has the following probability
distribution. Find the expected value, variance and standard deviation.
X 0 1 2 3 4 5 6 7 8
Pr (X=x) 0.05765 0.19765 0.29648 0.25412 0.13614 0.04668 0.01000 0.00122 0.00007
Example 25. The random variable X follows a binomial distribution such that X~Bi(40, 0.25). Determine the:
a. expected value b. variance and standard deviation
Example 27. A binomial random variable has an expected value of 14.4 and a variance of 8.64. Find:
a. the probability of success, p b. the number of trials, n.
Example 28. A new test designed to assess the reading ability of students entering high school showed that
10% of the students displayed a reading level that was inadequate to cope with high school. If 400 students
are selected at random, find the expected number of students whose reading level is inadequate to cope with
high school.