Professional Documents
Culture Documents
2214101657
MASTERiOFiCOMPUTERiAPPLICATIONi(MCA)
THIRD SEMESTER
DCA7101
SET1i&iSETi2
SET 1 & SET 2
Q1. Suppose a person throws a die. If he gets a 5 or 6, he tosses a coin three times and
notes the number of heads. If he gets 1, 2, 3 or 4, tosses a coin once and notes whether a
head or tail is obtained. If he obtained exactly one head; what is the probability that he
threw 5 or 6 with the die.
Answer
To solve this problem, we can use Bayes' theorem. Let's denote the events as follows:
We want to find the probability of event A given event B, denoted as P(A|B). We can use
Bayes' theorem to calculate this probability:
P(B|A): The probability of obtaining exactly one head given that the die shows 5 or 6. Since
in this case, the person tosses a coin three times, the probability of getting exactly one head is
given by the binomial distribution:
P(A): The probability of throwing a 5 or 6 with the die. Since a fair die has six equally likely
outcomes, each with a probability of 1/6:
P(B): The probability of obtaining exactly one head overall. This can happen in two ways:
either by throwing a 5 or 6 and getting exactly one head from three coin tosses, or by
throwing 1, 2, 3, or 4 and getting exactly one head from a single coin toss. So we can
calculate P(B) as:
P(not A): The probability of not throwing a 5 or 6 with the die. This is equal to 1 - P(A),
which is 1 - 1/3 = 2/3.
P(B|not A) = 1/2
Now we can substitute these values back into Bayes' theorem to calculate P(A|B):
Therefore, the probability that the person threw a 5 or 6 with the die, given that they obtained
exactly one head, is 1/5.
(i) The sum of all probabilities in a distribution must be equal to 1. So we can write the
equation:
∑P[X=x] = 0 + a + 2a + 2a + 3a + a^2 + 2a^2 + 7a^2 + a = 1
19a^2 + 7a = 1
To solve for 'a,' we need to find the values that satisfy this equation. However, it seems there
might be a mistake in the probability distribution you provided. The term "7a^2 + a" violates
the probability constraint since it can be greater than 1 when 'a' is large. Please double-check
the values in the probability distribution.
(ii) To calculate P[(1.5 < X < 4.5)/(X > 2)], we need to find the probability of the event (1.5 <
X < 4.5) given that (X > 2). This can be calculated using the conditional probability formula:
P[(1.5 < X < 4.5)/(X > 2)] = P(1.5 < X < 4.5 and X > 2) / P(X > 2)
To find P(1.5 < X < 4.5 and X > 2), we sum the probabilities for X = 3 and X = 4:
Therefore,
(iii) To find the expected value E(X), we multiply each value of X by its respective
probability and sum them up:
Q3. The daily earning of a vendor for a period of 43 days are given below
Daily earning 118- 127- 136- 145- 154- 163- 172-
(Rs.) 126 135 144 153 162 171 180
No. of days 3 8 9 12 5 4 2
Calculate Standard Deviation and coefficient of variation.
Answer
Q4. The probability that a bomb dropped from a plane will strike the target is 1/5. If 6
bombs are dropped, find the probability that-
(i) Exactly two will strike the target.
(ii) Atleast two will strike the target.
Answer
To calculate the probabilities, we can use the binomial probability formula. Let's denote the
event of a bomb striking the target as "success" and the event of a bomb not striking the
target as "failure." The probability of success, p, is 1/5, and the probability of failure, q, is 1 -
p, which is 4/5.
(i) Exactly two bombs will strike the target.
To calculate this probability, we use the binomial probability formula:
P(X = k) = C(n, k) * p^k * q^(n-k)
where:
P(X = k) is the probability of getting exactly k successes.
C(n, k) is the number of combinations of n items taken k at a time, given by n! / (k! * (n -
k)!).
p is the probability of success.
q is the probability of failure.
n is the number of trials (in this case, the number of bombs dropped).
k is the number of successes we're interested in (exactly two bombs striking the target).
For this case, n = 6 and k = 2:
P(X = 2) = C(6, 2) * (1/5)^2 * (4/5)^(6-2)
To find the values of a, b, c, and d, we'll use the given information: the means, standard
deviations, and correlation coefficient.
Step 1: Calculate the slope (b) for the regression equation of Y on X: b = r * (σY / σX) = 0.50
* (9 / 10) = 0.45
Step 3: Calculate the slope (d) for the regression equation of X on Y: d = r * (σX / σY) = 0.50
* (10 / 9) = 0.5556 (rounded to four decimal places)
Q6. The following data relate to the prices and quantities of 4 commodities in the years
1982 and 1983. Construct the following index numbers of price for the year 1983 by using
1982 as base year.
(i) Laspeyre’s Index
(ii) Paasche’s Index
(iii) Fisher’s Index
Commodity Price (1982) Quantity (1982) Price (1983) Quantity (1983) A 5 100 6 150 B 4 80
5 100 C 2.5 60 5 72 D 12 30 9 33
(i) Laspeyre's Index: Laspeyre's Index = (Σ(P₁Q₀) / Σ(P₀Q₀)) * 100 = [(6 * 100) + (5 * 80) +
(5 * 60) + (9 * 30)] / [(5 * 100) + (4 * 80) + (2.5 * 60) + (12 * 30)] * 100 = (600 + 400 + 300
+ 270) / (500 + 320 + 150 + 360) * 100 = 1570 / 1330 * 100 = 117.79 (rounded to two
decimal places)
(ii) Paasche's Index: Paasche's Index = (Σ(P₁Q₁) / Σ(P₀Q₁)) * 100 = [(6 * 150) + (5 * 100) + (5
* 72) + (9 * 33)] / [(5 * 150) + (4 * 100) + (2.5 * 72) + (12 * 33)] * 100 = (900 + 500 + 360 +
297) / (750 + 400 + 180 + 396) * 100 = 2057 / 1726 * 100 = 119.17 (rounded to two decimal
places)
(iii) Fisher's Index: Fisher's Index = √(Laspeyre's Index * Paasche's Index) = √(117.79 *
119.17) = √14025.0683 = 118.47 (rounded to two decimal places)
Therefore, the index numbers of price for the year 1983 using 1982 as the base year are: (i)
Laspeyre's Index: 117.79 (ii) Paasche's Index: 119.17 (iii) Fisher's Index: 118.47
***********************************