BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
Module-I
PROBABILITY distributions
SHEET-1
1. A random variable X has the following distribution :
-2 -1 0 1 2 3
0.1 0.2 0.3
Find (i) (ii) Evaluate (iii) (iv) Mean (v) Variance.
2. A random variable X has the following distribution :
0 1 2 3 4 5 6 7
0
Find (i) (ii) Evaluate P(X < 4) (iii) P(3 < X 6) (iv) P(X 5) (v) mean (vi) standard deviation.
3. A r.v takes values 0, 1, 2, 3 with probabilities
a) Verify that this is a valid probability mass function (pmf).
b) Find
c) Compute and .
4. A random variable take the values -3, -2,-1, 0, 1, 2, 3 such that )
a) Find the probability distribution.
b) Find
c) Compute and .
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-2
1. A coin is tossed 6 times. Find the probability of getting (i) exactly 1 head(ii) atmost 3 heads (iii)
atleast 2 heads (iv) heads only.
2. A factory produces bulbs, each with probability 0.95 of being non-defective. A sample of 12 bulbs
is taken. Let be the number of non-defective bulbs.
(a) Write the distribution of . (b) Find (c) Find . (d) Find the expected
number of defective bulbs in the sample.
3. A car hire firm has 2 cars, which it hires out day by day. The demand for a car on each day is
distributed as a Poisson distribution with mean 1.5. Calculate the probability that on a certain day
(i) neither car is used and (ii) some demand is refused.
4. In a certain factory turning out razor blades, there is a small chance of 0.002 for any blade to be
defective. The blades are supplied in packets of 10. Using Poisson distribution, find the
approximate number of packets containing (i) no defective blade (ii) one defective blade and (iii)
two defective blades, in a consignment of 10,000 packets.
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-3
1. The probability density function of a continuous random variable is
{ Find , and
2. The pdf of a continuous r.v is {
Find , mean, variance and standard deviation.
3. The life of a T.V. tube manufactured by a company is known to have a mean of 200 months.
Assuming that the life has an exponential distribution, find the probability that the life of a tube
manufactured by a company is (i) less than 200 months (ii) between 100 and 300 months.
4. In a call center, the time (in minutes) between successive calls is exponentially distributed with
mean 4 minutes.
(a) What is the probability that the next call comes within 2 minutes?
(b) What is the probability that the next call comes after 6 minutes?
(c) What is the probability that the next call comes between 3 and 6 minutes?
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-4
1. In an examination taken by 500 students, the average and standard deviation of marks obtained are
40% and 10% respectively. Assuming normal distribution, find (i) how many have scored above
60% (ii) how many will pass if 50% is fixed as the minimum for passing. ( and
)
2. In a test on 2000 electric bulbs, it was found that the life of a particular make was normally
distributed with an average life of 2040 hours and S.D of 60 hours. Estimate the number of bulbs
likely to burn for
i. More than 2150 hours
ii. Less than 1950 hours
iii. More than 1920 hours and Less than 2160 hours.
iv. ( ).
3. Steel rods are manufactured to be 3 cms in diameter but they are acceptable if they are inside the
limits 2.99cms and 3.01 cms. It is observed that 5% are rejected as oversized and 5% are rejected
as undersized. Assuming that diameters are normally distributed, find the mean and the standard
deviation of the distribution. ( ).
4. The heights of male students in a college are normally distributed with mean 170 cm, and standard
deviation 6cm. ( ,
(a) What is the probability that a randomly chosen student is taller than 180 cm?
(b) What percentage of students are shorter than 160 cm?
(c) Find the height above which the tallest 10% of students lie. (Hint : find )
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
module- II
Joint probability DISTRIBUTIONS
SHEET-1
1. A joint probability distribution is given by the following table :
1 3 9
2 1/8 1/24 1/12
4 1/4 1/4 0
6 1/8 1/24 1/12
Find and
2. The distribution of two stochastically independent r.v. and defined on the same sample space
are given by the following tables:
0 1 1 2 3
0.2 0.8 P( 0.1 0.4 0.5
Find the joint distribution of and . Also evaluate
3. The joint pmf of and is given by
a) Verify that this is a valid probability distribution, b) Find the marginal distribution of and
c) Find , .
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
1. Two marbles are selected at random from a box containing 3 blue, 2 red and 3 green marbles.
If is the number of blue marbles and is the number of red marbles selected, find (i) joint
distribution of and (ii) marginal distributions of and (iii) (iv) Correlation
coefficient of and (v) check whether and are stochastically independent or not?
2. The joint probability function for two discrete random variables and is the given by
where and can assume all integral values s.t
and otherwise. Find (i) the values of the constant , (ii)
(iii) (iv) (v)
3. A family has 2 children. Let number of boys and number of girls. Assume boys and
girls are equally likely.
a) Write the joint probability distribution of b) Find the probability that there are more
girls than boys, c) Find the expected values of and
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-3
1. Show that [ ] is a regular stochastic matrix and find the corresponding unique
⁄ ⁄
fixed probability vector.
⁄ ⁄ ⁄
2. Find the fixed probability vector of regular stochastic matrix [ ⁄ ⁄ ].
3. Find the stochastic matrix [ ].
4. Let [ ]. Solve for the stationary distribution.
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-4
1. Every year, a man trades his car for a new car. If he has Maruti, he trades it for an
Ambassador. If he has an ambassador, he trades it for Santro. However, if he has Santro he is
just likely to trade it for anew Santro as to trade it for a Maruti or an Ambassador. In 2000, he
bought his first car which was Santro. Find the probability that he has a) 2002 Santro b) 2002
Maruti.
2. A student’s study habits are as follows: If he studies one night, he is 60% sure not to study the
next night; on the other hand if he does not study one night, he is 80% sure to study the next
night. In the long run how often does he study?
3. A shop has two cash counters. If a customer goes to counter A today, there is a 50% chance
they go to A again tomorrow and a 50% chance they go to B. If they go to counter B today,
there is a 40% chance they go to A tomorrow and 60% chance they stay at B. Find the long-
run proportion of customers going to counter A and counter B.
4. A person can be in one of three moods: Happy (H), Neutral (N), or Sad (S). The transition
probabilities are:
If Happy today: 60% Happy tomorrow, 40% Neutral, 0% Sad.
If Neutral today: 30% Happy, 40% Neutral, 30% Sad.
If Sad today: 20% Happy, 30% Neutral, 50% Sad.
Find the long-run proportion of time the person spends in each mood.
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
Module-III
Statistical Inference 1
SHEET-1
1. A population consists of four numbers 2, 3, 4, 5. Consider all possible distinct samples of size two
with replacement. Find a) the population mean b) the population standard deviation c) the
sampling distribution means d) the mean of the sampling distribution of means e) standard
deviation of sampling distribution of means.
2. The population values are 4, 6, 8, 10. Draw all possible samples of size 2 without replacement.
Find: a) the population mean b) the population standard deviation c) the sampling distribution of
sample means d) the mean of the sampling distribution of means e) the standard deviation of the
sampling distribution of means.
3. A small population consists of the values 2,4,6. All possible samples of size 3 are drawn with
replacement. Find: a) the population mean and standard deviation b) the sampling distribution of
the means c) the mean and standard deviation of the sampling distribution of means.
4. A population consists of four numbers 3, 7, 11, 15. Find the mean and standard deviation of the
sampling distribution of means by considering sampling of size 2 without replacement. Verify
i) ̅ [ ] ii) ̅ where ̅ is the mean of the sampling distribution and is
the population mean.
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-2
1. 300 random samples each of size are drawn from a population of which is
normally distributed with mean and Determine the expected number of
random samples having their means
a. between 22.39 and 22.41
b. greater than 22.42
c. less than 22.37
d. less than 22.38 or more than 22.41. Given
2. Calculate the probability that a random sample of 16 computers will have an average life of
a) less than 775 hours
b) between 790 hours and 810 hours
c) more than 820 hours assuming that the length of life of computers in approximately normally
distributed with mean 800 hours and SD of 40 hours.
3. Population N is effectively infinite , . Draw 400 independent samples each of size
. Find the expected number of sample means a) greater than 101.5,
b) between 98.5 and 101.5.
4. Explain the following terms : (i) Null Hypothesis (ii) Confidence limits (iii) Type I and
Type II Errors (iv) Level of significance (v) Standard error (vi) Test of significance
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-3
1. A die is thrown 324 times and an odd number turned up 181 times. Is it reasonable to think that the
die is an unbiased one?
2. A die is thrown 9000 times and a throw of 3 or 4 was observed 3240 times. On the assumption of
random throwing, do the data indicate that the die is biased?
3. A sample of 900 days was taken in a coastal town and it was found that on 100 days the weather
was very hot. Obtain the probable limits of the percentage of very hot weather.
4. To know the mean weights of all 10 year old boys in Delhi a sample of 225 was taken. The mean
weight of the sample was found to be 67 pounds with SD of 12 pounds. What can we infer about
the mean weight of the population?
5. A sample of 1000 days is taken from meteorological records of a certain district and 120 of them
are found to be foggy. What are the probable 99% confidence limits to the proportion of foggy
days in the district?
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-4
1. A sample of 100 bulbs produced by a company A showed a mean life of 1190 hours and a SD of
90 hours. Also a sample of 75 bulbs produced by a company B showed a mean life of 1230 hours
and a SD of 120 hours. Is there a difference between the mean life time of the bulbs produced by
the two companies at i) 5% level of significance ii) 1% level of significance.
2. A recipe development lab measures the sugar content (grams) in cookies from two ovens. For
Oven X, a sample of 40 cookies gave mean 12.4 g and SD 0.9 g. For Oven Y, a sample of 35
cookies gave mean 11.9 g and SD 1.1 g. Test at the 5% level whether the ovens produce cookies
with different mean sugar content.
3. In an elementary school examination the mean grade of 32 boys was 72 with a standard deviation
of 8, while the mean grade of 36 girls was 75 with a standard deviation of 6. Test the hypothesis
that the performance of girls is better than boys at i) 5% level of significance ii) 1% level of
significance.
4. In an exit poll enquiry it was revealed that 600 voters in one locality and 400 voters from an other
locality favoured 55% and 48% respectively a particular party to come power. Test the hypothesis
that there is a difference in the locality in respect of the opinion.
5. Random sample of 1000 engineering students from a city A and 800 from city B were taken. It
was found that 400 students in each of the sample were from payment quota. Does the data reveal
a significant difference between the two cities in respect of payment quota students?
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
Module-IV
Statistical Inference 2
SHEET-1
1. A certain stimulus administered to each of 12 patients resulted in the following change in blood
pressure : 5, 2, 8, -1, 3, 0, 6, -2, 1, 5, 0, 4(in appropriate units). Can it be concluded that, on the
whole, the stimulus will change the blood pressure. Use t0.05(11) = 2.201.
2. A new inhaler claims to reduce mean number of wheeze episodes. For 15 patients the reduction
observed (episodes/week) is: 2, 1, 0, 3, 2, 4, 1, 2, 0, 3, 1, 1, 2, 3, 2. Test whether the mean
reduction is greater than 0. Use t0.1(14) = 1.761.
3. Heights (cm) of 8 plants under a new fertilizer: 15.1, 14.8, 15.6, 14.9, 15.0, 15.4, 15.2, 14.7.
At the 5% level, test whether the mean height differs from 15 cm. (Two sided) Use t0.025(7) =
2.365.
4. A sample of 12 measurements of the diameter of metal ball gave the mean 7.38 mm with standard
deviation1.24mm. Find (i) 95% and (ii) 99% confidence limits for actual diameter given t 0.05(11) =
2.201 and t0.01(11) = 3.11.
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-2
1. Two coaches timed sprint finishes. Coach A timed 8 runs:
Coach A 11.2 11.5 11.4 11.1 11.6 11.3 11.7 11.2
Coach B 11.8 11.6 11.9 11.5 11.7 11.4 11.8
Test at the 5% level whether the mean sprint times differ. (Two-sided; assume equal variances,
t0.005(13) = 3.012.)
2. Two horses A and B were tested according to time to run a particular race with the following
results:
Horse A 28 30 32 33 33 29 34
Horse B 29 30 30 24 27 29
Test whether you can discriminate between the two horses.(t0.05 = 2.2 and t0.02= 2.72 for 11 d.f)
3. Eleven school boys were given a test in drawing. They were given a month’s further tution and
a second test of equal difficulty was held at the end of it. Do the marks give evidence that the
students have benefitted by extra coaching? (Given t0.05(10) = 2.228)
Boys 1 2 3 4 5 6 7 8 9 10 11
Marks(I Test) 23 20 19 21 18 20 18 17 23 16 19
Marks(II Test) 24 19 22 18 20 22 20 20 23 20 17
4. Two tyres compared for wear (mm) after a fixed distance. Tyre X: 8 measurements: 3.2, 3.4,
3.1, 3.3, 3.5, 3.0, 3.6, 3.3. Tyre Y: 9 measurements: 3.5, 3.8, 3.7, 3.4, 3.6, 3.9, 3.6, 3.7, 3.5.
Test at 5% whether mean wear differs. (Two-sided; small samples, t0.05(13) = 2.160.)
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-3
1. Fit a Poisson distribution to the following data and test for its goodness of fit at 5 % level of
significance.
x 0 1 2 3 4
f 419 352 154 56 19
(Given 20.05 for = 3 is 7.82).
2. A set of five similar coins is tossed 320 times and the result is :
No. of heads 0 1 2 3 4 5
Frequency 6 27 72 112 71 32
Test the hypothesis that the data follows a binomial distribution . (Given 20.05 for = 5 is 11.07).
3. A survey conducted on 64 families with 3 children each are recorded as follows :
No. of male children 0 1 2 3
No. of families 6 19 29 10
Apply Chi- square test to test whether male and female children are equiprobable at 5% level of
significance. (Given 20.05 for = 2 is 7.82).
4. For the following data, test the hypothesis that the accidents are uniformly distributed over all the
days of the week for 99% confidence (Given 20.01 for = 6 is 16.812).
Day Sun Mon Tue Wed Thu Fri Sat Total
No. of accidents 14 16 8 12 11 9 14 84
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-4
1. Is there a difference between the variances of the number of weeks on the best seller lists for
nonfiction and fiction books? Fifteen New York Times bestselling fiction books had a standard
deviation of 6.17 weeks on the list. Sixteen New York Times bestselling nonfiction books had a
standard deviation of 13.12 weeks. At 5% significance level, can we conclude there is a difference in
the variances? (
2. Two different machines are used for filling bottles with cold drink. A random sample of 12 bottles
filled by Machine A has a standard deviation of 2.5 ml in the amount filled, while a random sample
of 10 bottles filled by Machine B has a standard deviation of 1.2 ml. At the 5% level of significance,
test whether there is a significant difference between the variances of the amounts filled by the two
machines. (Given
3. The following data shows the runs scored by 2 batsmen. Can it be said that the performance of
batsman A is more consistent than the performance of batsman B? Use 1% level of significance.
(
Batsman A 40 50 35 25 60 70 65 55
Batsman 5 60 70 40 30 50
4. The following table gives the number of units produced per day by 2 Workers A and B for some
days. Can we say that Worker A is more stable than Worker B? Use 5% level of significance.
(
Worker A 40 30 38 41 38 35
Worker B 39 38 41 33 32 49 49 34
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
Module-V
Curve fitting, Correlation, and Regressions
SHEET-1
1. Using the method of least squares, fit a linear relation of the form to the following
data, where P is the pull required to lift a weight W :
W(kg) 50 70 100 120
P (kg-wt) 12 15 21 25
Estimate P when W is 150 kg.
2. The following data relate the advertising expenditure X (in thousand rupees) and the corresponding
sales Y (in lakhs of rupees) of a company in different months:
Advertising
10 20 30 40 50
(X)
Sales (Y) 25 45 65 70 95
Using the method of least squares fit a straight line of the form to the data. Also,
estimate the expected sales when the advertising expenditure is 60 thousand rupees.
3. Fit a power function (geometric curve) of the form to the following data and estimate y
at x = 12
Price (x) 20 16 10 11 14
Demand (y) 22 41 120 89 56
4. Fit an exponential curve of the form for the following data :
x 1 2 3 4
y 7 11 17 27
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-2
1. Fit a parabola of the form for the following data by the method of least
squares :
1.0 1.5 2.0 2.5 3.0 3.5 4.0
1.1 1.3 1.6 2.0 2.7 3.4 4.1
2. Fit a second degree polynomial in the least square sense that fits to the following data
0 1 2 3 4
1 1.8 1.3 2.5 6.3
3. The data below give the time (in seconds) and the distance (in metres) travelled by a car
starting from rest:
Time 1 2 3 4 5
Distance 2 7 18 34 56
Fit a quadratic curve using least squares, and use it to estimate the distance
travelled at seconds.
4. The following are the marks obtained by students in Mathematics ( ) and their scores in Physics
( ):
1 2 3 4 5 6
2 6 7 15 25 37
Fit a quadratic curve to the data and estimate the Physics score when the
Mathematics score is 7.
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-3
1. Calculate the coefficient of correlation between x and y and obtain the lines of regression for the
following data.
1 2 3 4 5 6 7 8 9
9 8 10 12 11 13 14 16 15
2. While calculating the correlation coefficient between and from 25 pairs of observations, a
person obtained the following values:
∑ ∑ ∑ ∑ ∑
It was later discovered that the person had copied down the pairs (8, 12) and (6,8) as (6,12) and
(8,6) respectively. Obtain the correct value of the correction coefficient.
3. The following data relate to the marks obtained by 8 students in Mathematics ( ) and Statistics
( ):
Mathematics ( ) 25 28 35 32 31 36 29 38
Statistics ( ) 43 46 49 41 36 32 31 30
Obtain the two lines of regression: on and on , and hence calculate the coefficient of
correlation between and .
4. Obtain the lines of regression and hence find the coefficient of correlation for the data
1 2 3 4 5 6 7
9 8 10 12 11 13 14
BMS INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEPARTMENT OF MATHEMATICS
Mathematics III for Computer Science
Tutorial Sheets SUBJECT CODE : BCS301
SHEET-4
1. Compute x , y and r from the following equation of the regression lines. and
–
x y 1 r 2
2. Show that if Ɵ is the angle between the lines of regression, then tan
x2 y2 r
3. Ten students were ranked in order of merit in two subjects, History and Economics, as follows:
Student A B C D E F G H I J
History 1 2 3 4 5 6 7 8 9 10
Economics 2 1 4 3 5 7 6 9 10 8
4. Ten competitors in a beauty contest are ranked by two judges in the following order. Compute the
coefficient of rank correlation.
1 6 5 3 10 2 4 9 7 8
6 4 9 8 1 2 3 10 5 7