Skip to main content

Chapter 3

Probability and Statistics

TU BCA past exam questions

Past questions and answers

37 questions set from this chapter, 4 of them more than once. Most repeated first.

  • Asked 2 times
  • 2019 · 5 marks
  • 2024 · 5 marks

Describe the scope and limitation of statistics.

Answer

Statistics is the science of collecting, organising, presenting, analysing and interpreting numerical data to support decision making.

Scope of statistics

  • Planning and economics: government planning, national income, price indices, population and census studies depend on statistics.
  • Business and industry: demand forecasting, market research, quality control, inventory and production planning, and risk assessment.
  • Banking and insurance: premium calculation, credit risk and investment analysis use probability and statistics.
  • Science and medicine: design of experiments, testing the effectiveness of drugs, and analysis of research data.
  • Education and social sciences: examination results, surveys, opinion polls and behavioural studies.
  • Information technology: data mining, machine learning, big data analysis and performance evaluation of systems.
  • Agriculture and weather: crop yield estimation and weather forecasting.

Limitations of statistics

  • Deals with groups, not individuals: it does not give information about a single item; only aggregates and averages are studied.
  • Only quantitative data: qualitative features such as honesty or intelligence cannot be studied unless expressed numerically.
  • Results are true only on average: conclusions are not exact for every individual case.
  • Can be misused: data can be selectively presented or wrongly interpreted, so it needs to be handled by experts and honest persons.
  • Requires homogeneous, reliable data: poor or biased data lead to incorrect conclusions.
  • Does not explain causes: it shows relationships but does not prove cause and effect.
  • Sampling errors: conclusions from samples may differ from population values.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2019 · 10 marks
  • 2020 · 10 marks

Given a normal distribution with mean = 200 and standard deviation = 20, find the probability that:
i) P(X>180)
ii) P(X<220)
iii) P(160< x<240)
iv) P(x>220)
ii) 10% of the values are less than what value of X?

Answer

Let X∼N(μ=200,σ=20)X \sim N(\mu = 200, \sigma = 20) and use Z=X−20020Z = \dfrac{X - 200}{20}.

(i) P(X>180)P(X > 180)

Z=180−20020=−1Z = \frac{180-200}{20} = -1

P(X>180)=P(Z>−1)=1−0.1587=0.8413P(X>180) = P(Z>-1) = 1 - 0.1587 = 0.8413

(ii) P(X<220)P(X < 220)

Z=220−20020=1Z = \frac{220-200}{20} = 1

P(X<220)=P(Z<1)=0.8413P(X<220) = P(Z<1) = 0.8413

(iii) P(160<X<240)P(160 < X < 240)

Z1=160−20020=−2,Z2=240−20020=2Z_1 = \frac{160-200}{20} = -2,\qquad Z_2 = \frac{240-200}{20} = 2

P(−2<Z<2)=0.9772−0.0228=0.9544P(-2<Z<2) = 0.9772 - 0.0228 = 0.9544

(iv) P(X>220)P(X > 220)

P(Z>1)=1−0.8413=0.1587P(Z>1) = 1 - 0.8413 = 0.1587

(v) 10% of the values are less than what value of XX?

We need xx with P(X<x)=0.10P(X < x) = 0.10. From the normal table, P(Z<z)=0.10P(Z < z) = 0.10 gives z=−1.28z = -1.28.

x=μ+zσ=200+(−1.28)(20)=200−25.6=174.4x = \mu + z\sigma = 200 + (-1.28)(20) = 200 - 25.6 = 174.4

So 10% of the values are less than X≈174.4X \approx 174.4.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2021 · 5 marks
  • 2023 · 5 marks

Discuss the role of statistics in computer application.

Answer

Statistics is the science of collecting, organising, analysing and interpreting data. In computer applications it plays the following roles.

  1. Data mining and machine learning: regression, classification, clustering and probability models (such as Naive Bayes) are statistical methods used to find patterns and make predictions from large data sets.
  2. Database and big data analytics: summaries such as mean, median, variance and correlation are used for reporting, business intelligence and decision support.
  3. Performance evaluation and simulation: response time, throughput and load of systems are modelled with distributions (Poisson, exponential) and queuing theory; simulations use random number generation.
  4. Software quality and reliability: defect counts, failure rates and mean time between failures are analysed with probability distributions and control charts; testing results are compared using hypothesis tests.
  5. Image, speech and signal processing: noise is handled with probabilistic models, and pattern recognition uses statistical decision theory.
  6. Networking and security: traffic modelling, packet-loss estimation, anomaly and intrusion detection use statistical tests and probability.
  7. Information retrieval and AI: ranking of search results, spam filtering, recommendation systems and natural language processing rely on probabilistic and statistical models.
  8. Sampling and testing: sampling techniques and confidence intervals allow conclusions about a large system or user population from a small sample, for example in A/B testing and usability surveys.

Thus statistics gives computer applications the tools for handling uncertainty, validating results and making data-driven decisions.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2023 · 5 marks
  • 2024 · 5 marks

Define sampling. A population consists of the four numbers 1, 3, 4, 8.
(1) Write down all possible sample size of two without replacement.
(ii) Show that sample mean is an unbiased estimate of population mean.

Answer

Sampling: the process of selecting a part (sample) of the units from a population so that conclusions about the whole population can be drawn from the study of that part.

Population: 1,3,4,81, 3, 4, 8, with N=4N = 4.

Population mean:

μ=1+3+4+84=164=4\mu = \frac{1+3+4+8}{4} = \frac{16}{4} = 4

(i) All samples of size 2 without replacement (there are (42)=6\binom{4}{2} = 6):

SampleSample mean xˉ\bar x
(1, 3)2.0
(1, 4)2.5
(1, 8)4.5
(3, 4)3.5
(3, 8)5.5
(4, 8)6.0

(ii) Unbiasedness of the sample mean

Mean of the sample means:

E(xˉ)=2+2.5+4.5+3.5+5.5+66=246=4E(\bar x) = \frac{2+2.5+4.5+3.5+5.5+6}{6} = \frac{24}{6} = 4

Since E(xˉ)=4=μE(\bar x) = 4 = \mu, the sample mean is an unbiased estimate of the population mean.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 10 marks

The lifetime of a certain electronic component is a normal random variate with an expectation of 5000 hours and a standard deviation of 100 hours. Compute the probabilities under the following conditions:
a) Lifetime of components is less than 3012 hours
b) Lifetime of components between 4000 to 6000 hours
c) Lifetime of components less than 4500 hours
d) Lifetime of components more than 7000 hours

Similar questions: Define normal distribution and standard normal distribution. (2024)

Answer

Let XX be the lifetime, X∼N(μ=5000, σ=100)X \sim N(\mu = 5000,\ \sigma = 100), and Z=X−5000100Z = \dfrac{X-5000}{100}.

(a) P(X<3012)P(X < 3012)

z=3012−5000100=−19.88z = \frac{3012-5000}{100} = -19.88

P(Z<−19.88)≈0P(Z < -19.88) \approx 0

(b) P(4000<X<6000)P(4000 < X < 6000)

z1=4000−5000100=−10,z2=6000−5000100=10z_1 = \frac{4000-5000}{100} = -10,\qquad z_2 = \frac{6000-5000}{100} = 10

P(−10<Z<10)≈1P(-10 < Z < 10) \approx 1

(c) P(X<4500)P(X < 4500)

z=4500−5000100=−5z = \frac{4500-5000}{100} = -5

P(Z<−5)≈0.0000003≈0P(Z < -5) \approx 0.0000003 \approx 0

(d) P(X>7000)P(X > 7000)

z=7000−5000100=20z = \frac{7000-5000}{100} = 20

P(Z>20)≈0P(Z > 20) \approx 0

The standard deviation is small compared with these limits, so almost all components last between about 47004700 and 53005300 hours (μ±3σ\mu \pm 3\sigma). Hence the required probabilities are approximately 00, 11, 00 and 00 respectively; the standard normal table ends at z=3.49z = 3.49 (area 0.99980.9998), so values beyond it are taken as 00 or 11.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 10 marks

Define normal distribution and standard normal distribution. The life time of a certain electronic component is a normal distribution with mean 5000 hours and standard deviation of 1000 hours, compute the probabilities under the following conditions:
(a) Life time of components is less than 5012 hours,
(b) Lifetime of components between 4000 to 6000 hours, and,
(c) Lifetime of components more than 7000 hours.

Similar questions: The lifetime of a certain electronic component (2021)

Answer

Normal distribution: a continuous distribution of a variable XX with mean μ\mu and standard deviation σ\sigma, having the bell-shaped, symmetric density

f(x)=1σ2π e−(x−μ)22σ2,−∞<x<∞f(x) = \frac{1}{\sigma\sqrt{2\pi}}\,e^{-\frac{(x-\mu)^2}{2\sigma^2}},\qquad -\infty < x < \infty

Standard normal distribution: the normal distribution with μ=0\mu = 0 and σ=1\sigma = 1, obtained by the transformation Z=X−μσZ = \dfrac{X-\mu}{\sigma}; its density is ϕ(z)=12πe−z2/2\phi(z) = \dfrac{1}{\sqrt{2\pi}}e^{-z^2/2} and its areas are tabulated.

Here X∼N(5000, 1000)X \sim N(5000,\ 1000).

(a) P(X<5012)P(X < 5012)

z=5012−50001000=0.012≈0.01z = \frac{5012-5000}{1000} = 0.012 \approx 0.01

P(Z<0.01)=0.5040(exactly 0.5048)P(Z < 0.01) = 0.5040 \quad(\text{exactly } 0.5048)

(b) P(4000<X<6000)P(4000 < X < 6000)

z1=4000−50001000=−1,z2=6000−50001000=1z_1 = \frac{4000-5000}{1000} = -1,\qquad z_2 = \frac{6000-5000}{1000} = 1

P(−1<Z<1)=0.8413−0.1587=0.6826P(-1<Z<1) = 0.8413 - 0.1587 = 0.6826

(c) P(X>7000)P(X > 7000)

z=7000−50001000=2z = \frac{7000-5000}{1000} = 2

P(Z>2)=1−0.9772=0.0228P(Z > 2) = 1 - 0.9772 = 0.0228

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 5 marks

How do you determine sample size in sampling? (Explain briefly)

Answer

The sample size is the number of units selected from the population for study. It must be large enough for reliable results but small enough to limit cost and time.

Factors that determine the sample size

  • Population variability (σ\sigma): the more variable the population, the larger the sample required.
  • Desired precision (margin of error EE): smaller permissible error needs a larger sample.
  • Confidence level: a higher confidence level (e.g. 99% instead of 95%) needs a larger sample, through a larger ZZ value.
  • Population size: matters mainly for small populations; a finite population correction can reduce the sample.
  • Resources: available time, money and manpower.
  • Sampling method and nature of analysis: complex designs or subgroup analysis need larger samples.

Formulas

For estimating a population mean (large or infinite population):

n=(Zα/2 σE)2n = \left(\frac{Z_{\alpha/2}\,\sigma}{E}\right)^2

For estimating a proportion:

n=Zα/22 p (1−p)E2n = \frac{Z_{\alpha/2}^2\,p\,(1-p)}{E^2}

If pp is unknown, p=0.5p = 0.5 is used, as it gives the maximum nn. For a finite population of size NN, the adjusted sample is

n′=n1+n−1Nn' = \frac{n}{1 + \dfrac{n-1}{N}}

Example: for 95% confidence (Z=1.96Z = 1.96), σ=10\sigma = 10 and E=2E = 2: n=(1.96×10/2)2=96.04≈97n = (1.96 \times 10 / 2)^2 = 96.04 \approx 97.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 5 marks

Write short notes on Simple Random Sampling.

Answer

Simple Random Sampling (SRS) is a probability sampling method in which every unit of the population has an equal chance of being selected, and every possible sample of a given size has the same chance of being chosen.

Types

  • SRS with replacement (SRSWR): a selected unit is returned to the population before the next draw, so it can be selected again. Number of possible samples is NnN^n.
  • SRS without replacement (SRSWOR): a selected unit is not returned. Number of possible samples is (Nn)\binom{N}{n}.

Methods of selection

  • Lottery method: each unit is given a number on a slip, the slips are mixed well and nn are drawn.
  • Random number table or computer generated random numbers: units are numbered from 1 to NN and the selected numbers decide the sample.

Merits

  • Simple and easy to understand and apply.
  • Free from personal bias and selection is unbiased.
  • Sample mean is an unbiased estimator of the population mean; sampling error can be measured.
  • Basis for other sampling methods.

Demerits

  • Needs a complete list (sampling frame) of the population.
  • Selected units may be widely scattered, making the survey costly.
  • Not suitable for a heterogeneous population, where stratified sampling is better.
  • Sample may not represent small subgroups.

Use: best when the population is homogeneous and of moderate size.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

How many types of data on the basis of sources of data collection? (a) 1 (b) 2 (c) 3 (d) 4

Answer

(b) 2

On the basis of source of collection, data are of two types: primary data (collected first hand by the investigator) and secondary data (already collected by others).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

Which is more appropriate central tendency to find the average of profit? (a) Arithmetic mean (b) Median (c) Mode (d) All

Answer

(a) Arithmetic mean

Profit is a quantitative, additive measure, and the arithmetic mean uses all values and gives the average profit per unit or period.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

What is the range of Correlation? (a) 0 to ∞\infty (b) −∞-\infty to ∞\infty (c) -1 to 1 (d) 0 to 1

Answer

(c) -1 to 1

The correlation coefficient satisfies −1≤r≤+1-1 \le r \le +1, where −1-1 is perfect negative and +1+1 is perfect positive correlation.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

If r=0.2 then coefficient of determination implies that (a) 20% of total variation in dependent variable has been explained by independent variable. (b) 40% of total variation in dependent variable has been explained by independent variable. (c) 2% of total variation in dependent variable has been explained by independent variable. (d) 4% of total variation in dependent variable has been explained by independent variable.

Answer

(d) 4% of total variation in dependent variable has been explained by independent variable.

The coefficient of determination is r2=(0.2)2=0.04r^2 = (0.2)^2 = 0.04, which is 4%.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

What is the minimum value of Probability? (a) 1 (b) 100 (c) 0 (d) None of above

Answer

(c) 0

Probability always lies between 0 and 1, so the minimum value is 0 (an impossible event).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

In case of Normal distribution (a) Mean > Median (b) Mean = Median (c) Mean <= Median (d) Mean >= Median

Answer

(b) Mean = Median

The normal distribution is symmetric about its centre, so the mean, median and mode coincide.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

The regression line of X on Y and Y on X are intersect at the point (a) (μ,0)(\mu, 0) (b) (a,b)(a, b) (c) (X,Y)(X, Y) (d) (Xˉ,Yˉ)(\bar{X}, \bar{Y})

Answer

(d) (Xˉ,Yˉ)(\bar{X}, \bar{Y})

Both regression lines pass through the point of the two sample means, so they intersect at (Xˉ,Yˉ)(\bar{X}, \bar{Y}).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

In case of systematic sampling (a) sample mean is biased estimator population mean. (b) sample mean is unbiased estimator population mean. (c) sample mean can't estimate population mean. (d) sample mean may equal to population mean.

Answer

(b) sample mean is unbiased estimator population mean.

In systematic sampling, each unit has an equal chance of being included, so the expected value of the sample mean equals the population mean (when NN is a multiple of the sampling interval kk).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

Mean of Chi-Square distribution with n degrees of freedom is (a) 1 (b) 0 (c) 2n (d) n

Answer

(d) n

For a chi-square distribution with nn degrees of freedom, the mean is nn and the variance is 2n2n.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2019 · 1 mark

How do you obtain degree of freedom in one-way ANOVA? (a) (k, n-1) (b) (k, n-k) (c) (k-1, n-1) (d) (k-1, n-k)

Answer

(d) (k-1, n-k)

For kk groups and nn total observations, the between-group degrees of freedom are k−1k-1 and the within-group degrees of freedom are n−kn-k, so FF has (k−1,  n−k)(k-1,\; n-k) degrees of freedom.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

Write down the process of collecting Primary Data.

Answer

Primary data are data collected first hand by the investigator for a specific purpose, directly from the original source. The process of collecting them involves the following steps.

  1. Define the objective: state clearly what problem is to be studied and what information is needed.
  2. Decide the scope and population: determine the units of study, the area covered and the time period.
  3. Choose the method of collection:
    • Direct personal investigation (interview): the investigator meets respondents face to face; gives accurate and detailed data but is costly and time consuming.
    • Indirect oral investigation: data are obtained from persons who know about the subject.
    • Questionnaire / schedule: a set of written questions sent by mail or online (questionnaire) or filled by an enumerator (schedule).
    • Observation: recording behaviour or events directly.
    • Experiments: data produced under controlled conditions.
    • Telephone or online surveys: quick and cheaper for wide coverage.
  4. Prepare the instrument: design a clear, short, unambiguous questionnaire and test it in a pilot survey, then correct defects.
  5. Select the sample or plan a census: use a suitable sampling method if the whole population cannot be covered.
  6. Train enumerators and collect data: field workers are trained and the actual collection is carried out with supervision.
  7. Check and edit the data: verify completeness, consistency and accuracy before tabulation and analysis.

Primary data are reliable and suited to the purpose of the study, but collecting them costs more time, money and effort than using secondary data.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

What is sampling? The standard deviation of marks in an entrance exam for BCA students is 0.5. How large a sample must be taken in order to be 95% confident that the error of his/her estimate will not exceed 0.01?

Answer

Sampling is the process of selecting a part (sample) of the units from a population, studying it, and using the results to draw conclusions about the whole population. It saves time and cost and is used when studying every unit (census) is impractical.

Sample size for estimating a mean

Given: σ=0.5\sigma = 0.5, error E=0.01E = 0.01, confidence level 95% so Zα/2=1.96Z_{\alpha/2} = 1.96.

n=(Zα/2 σE)2=(1.96×0.50.01)2=(0.980.01)2=(98)2=9604n = \left(\frac{Z_{\alpha/2}\,\sigma}{E}\right)^2 = \left(\frac{1.96 \times 0.5}{0.01}\right)^2 = \left(\frac{0.98}{0.01}\right)^2 = (98)^2 = 9604

A sample of at least 9604 students must be taken to be 95% confident that the error of the estimate does not exceed 0.01.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 5 marks

A box contains 50 items of which 20 are defective. If one item is selected randomly from the box, what is the probability that it is a non-defective item?

Answer

Total items =50= 50, defective =20= 20, so non-defective =50−20=30= 50-20 = 30.

P(non-defective)=non-defective itemstotal items=3050=35=0.6P(\text{non-defective}) = \frac{\text{non-defective items}}{\text{total items}} = \frac{30}{50} = \frac{3}{5} = 0.6

The probability that the selected item is non-defective is 0.6. (Check: P(defective)=20/50=0.4P(\text{defective}) = 20/50 = 0.4, and 0.4+0.6=10.4 + 0.6 = 1.)

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2020 · 10 marks

Describe Simple Random Sampling with a suitable example.

Answer

Simple random sampling (SRS) is a probability sampling method in which every unit of the population has an equal chance of being selected, and every possible sample of size nn has the same chance of being chosen. Selection of one unit does not influence the selection of another.

Procedure

  1. Prepare a complete list (sampling frame) of the NN units of the population and number them 11 to NN.
  2. Decide the sample size nn.
  3. Select nn numbers using a lottery method or a table of random numbers / a random number generator.
  4. The units carrying the selected numbers form the sample.

Types

  • SRS without replacement (SRSWOR): a selected unit is not returned to the population; the number of possible samples is (Nn)\binom{N}{n} and each has probability 1/(Nn)1/\binom{N}{n}.
  • SRS with replacement (SRSWR): a selected unit is returned before the next draw; the number of possible samples is NnN^n.

Example: A college has N=500N = 500 BCA students and the principal wants the opinion of n=50n = 50 of them. Each student is given a roll number from 1 to 500. Fifty distinct numbers are drawn using a random number generator (or 500 slips are mixed in a box and 50 are drawn one by one without replacement). The 50 students so chosen form a simple random sample; each student had the probability 50/500=0.150/500 = 0.1 of being selected.

Merits: it is free from personal bias, simple to understand, and the sample is representative on average, so statistical theory (standard error, confidence intervals) applies directly.

Demerits: it needs a complete list of the population, it is costly if the population is widely scattered, and for a very heterogeneous population it may fail to represent all groups unless the sample is large.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2021 · 5 marks

A box contains 30 items of which 10 are defectives. If two items are selected randomly from the box without replacement, what is the probability that
(a) Both are defective
(b) Both are non-defective

Answer

Total items =30= 30, defective =10= 10, non-defective =20= 20. Two items are drawn without replacement.

(a) Both defective

P=1030×929=90870=329≈0.1034P = \frac{10}{30}\times\frac{9}{29} = \frac{90}{870} = \frac{3}{29} \approx 0.1034

(equivalently (102)/(302)=45/435\binom{10}{2}/\binom{30}{2} = 45/435).

(b) Both non-defective

P=2030×1929=380870=3887≈0.4368P = \frac{20}{30}\times\frac{19}{29} = \frac{380}{870} = \frac{38}{87} \approx 0.4368

(equivalently (202)/(302)=190/435\binom{20}{2}/\binom{30}{2} = 190/435).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

Differentiate between Convenient sampling and Systematic random sampling with suitable examples.

Answer

BasisConvenient samplingSystematic random sampling
TypeNon-probability samplingProbability sampling
SelectionUnits are chosen because they are easily available or accessible to the researcherEvery kk-th unit is chosen from an ordered list after a random start, where k=N/nk = N/n
Chance of selectionUnknown; not every unit has a chanceEach unit has a known chance, 1/k1/k for the starting point
BiasHigh chance of selection bias; may not represent the populationLow bias if the list has no hidden periodic pattern
Sampling frameNot requiredRequired (ordered list of the population)
GeneralisationResults cannot be generalised reliablyResults can be generalised and errors estimated
Cost and timeCheapest and quickestSimple and quick, a little more effort than convenience

Example of convenient sampling: to know students' opinion on the canteen, a researcher interviews the first 30 students he meets at the college gate.

Example of systematic sampling: from a list of 1000 students, a sample of n=50n = 50 is needed. Then k=1000/50=20k = 1000/50 = 20; a random number between 1 and 20, say 7, is chosen, and the students numbered 7,27,47,67,…7, 27, 47, 67, \dots are selected.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

The number of defective articles is found to be 2% in a lot of 300 sample articles per day, then find out following probabilities using suitable probability distribution that
(i) There are exactly two defective articles per day
(ii) There are at least 2 defective articles per day.

Answer

Here n=300n = 300 is large and p=0.02p = 0.02 is small, so the Poisson distribution is a suitable approximation to the binomial with

λ=np=300×0.02=6,P(X=x)=e−λλxx!\lambda = np = 300 \times 0.02 = 6,\qquad P(X = x) = \frac{e^{-\lambda}\lambda^{x}}{x!}

Using e−6=0.002479e^{-6} = 0.002479:

(i) Exactly two defective articles

P(X=2)=e−6 622!=0.002479×362=0.0446P(X=2) = \frac{e^{-6}\,6^2}{2!} = \frac{0.002479\times 36}{2} = 0.0446

(ii) At least two defective articles

P(X≥2)=1−P(X=0)−P(X=1)=1−e−6(1+6)=1−7(0.002479)=1−0.01735=0.9827P(X\ge 2) = 1 - P(X=0) - P(X=1) = 1 - e^{-6}(1 + 6) = 1 - 7(0.002479) = 1 - 0.01735 = 0.9827

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2022 · 5 marks

In a Hospital, the height of patients follows normal distribution with mean height of 53 inches with standard deviation of 3 inches.Then find out the following probabilities of heights of patients that:
i) less than 57 inches,
ii) more than 64 inches,
iii) between 50 and 56 inches. Use Normal table.

Answer

Let X∼N(μ=53, σ=3)X \sim N(\mu = 53,\ \sigma = 3) and Z=X−533Z = \dfrac{X-53}{3}.

(i) P(X<57)P(X < 57)

z=57−533=1.33z = \frac{57-53}{3} = 1.33

P(Z<1.33)=0.9082P(Z < 1.33) = 0.9082

(ii) P(X>64)P(X > 64)

z=64−533=3.67z = \frac{64-53}{3} = 3.67

P(Z>3.67)=1−0.9999≈0.0001P(Z > 3.67) = 1 - 0.9999 \approx 0.0001

(iii) P(50<X<56)P(50 < X < 56)

z1=50−533=−1,z2=56−533=1z_1 = \frac{50-53}{3} = -1,\qquad z_2 = \frac{56-53}{3} = 1

P(−1<Z<1)=0.8413−0.1587=0.6826P(-1 < Z < 1) = 0.8413 - 0.1587 = 0.6826

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

Define binomial distribution. During one stage in the manufacture of integrated circuit chips, a coating must be applied. If 70% of chips received a thick enough coating, find the probability that among 15 chips:
i) at least 12 will have thick enough coatings
ii) exactly 10 will have thick enough coatings

Answer

Binomial distribution: a discrete distribution for the number of successes XX in nn independent trials, each having only two outcomes (success/failure) with a constant probability of success pp. Its probability function is

P(X=x)=(nx)pxq n−x,x=0,1,…,n,q=1−pP(X = x) = \binom{n}{x}p^{x}q^{\,n-x},\quad x = 0,1,\dots,n,\quad q = 1-p

with mean npnp and variance npqnpq.

Here n=15n = 15, p=0.7p = 0.7, q=0.3q = 0.3.

(i) At least 12 thick coatings

P(X≥12)=P(12)+P(13)+P(14)+P(15)P(X\ge 12) = P(12)+P(13)+P(14)+P(15)

P(12)=(1512)(0.7)12(0.3)3=455(0.013841)(0.027)=0.1701P(12) = \binom{15}{12}(0.7)^{12}(0.3)^{3} = 455(0.013841)(0.027) = 0.1701

P(13)=(1513)(0.7)13(0.3)2=105(0.0096889)(0.09)=0.0916P(13) = \binom{15}{13}(0.7)^{13}(0.3)^{2} = 105(0.0096889)(0.09) = 0.0916

P(14)=(1514)(0.7)14(0.3)=15(0.0067823)(0.3)=0.0305P(14) = \binom{15}{14}(0.7)^{14}(0.3) = 15(0.0067823)(0.3) = 0.0305

P(15)=(0.7)15=0.0047P(15) = (0.7)^{15} = 0.0047

P(X≥12)=0.1701+0.0916+0.0305+0.0047=0.2969P(X\ge 12) = 0.1701+0.0916+0.0305+0.0047 = 0.2969

(ii) Exactly 10 thick coatings

P(10)=(1510)(0.7)10(0.3)5=3003(0.0282475)(0.00243)=0.2061P(10) = \binom{15}{10}(0.7)^{10}(0.3)^{5} = 3003(0.0282475)(0.00243) = 0.2061

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 5 marks

In measuring reaction time, a psychologist estimates that the standard deviation is 0.95 sec, how large a sample of measurements must be taken in order to be 95% confident that the error his estimate of mean will not exceed 0.01 second?

Answer

For estimating a mean with known σ\sigma, the maximum error at confidence level 1−α1-\alpha is E=zα/2σnE = z_{\alpha/2}\dfrac{\sigma}{\sqrt n}, so

n=(zα/2 σE)2n = \left(\frac{z_{\alpha/2}\,\sigma}{E}\right)^{2}

Given σ=0.95\sigma = 0.95, E=0.01E = 0.01, and for 95% confidence z0.025=1.96z_{0.025} = 1.96:

n=(1.96×0.950.01)2=(186.2)2=34670.44n = \left(\frac{1.96\times 0.95}{0.01}\right)^2 = (186.2)^2 = 34670.44

Rounding up, the psychologist must take a sample of at least n=34,671n = 34{,}671 measurements.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2023 · 10 marks

The length of human pregnancies from conception to birth approximates a normal distribution with a mean of 266 days and a standard deviation of 16 days.
(i) What probability of all pregnancies will last between 240 and 270 days?
(ii) What probability of all pregnancies will last more than 275 days?
(iii) What probability of all pregnancies will last less than 272 days?

Answer

Let X∼N(μ=266, σ=16)X \sim N(\mu = 266,\ \sigma = 16) and Z=X−26616Z = \dfrac{X-266}{16}.

(i) P(240<X<270)P(240 < X < 270)

z1=240−26616=−1.625,z2=270−26616=0.25z_1 = \frac{240-266}{16} = -1.625,\qquad z_2 = \frac{270-266}{16} = 0.25

P(−1.625<Z<0.25)=P(Z<0.25)−P(Z<−1.625)=0.5987−0.0521=0.5466P(-1.625 < Z < 0.25) = P(Z<0.25) - P(Z<-1.625) = 0.5987 - 0.0521 = 0.5466

(With table values rounded to z=−1.63z=-1.63, the area is 0.05160.0516, giving ≈0.547\approx 0.547.)

(ii) P(X>275)P(X > 275)

z=275−26616=0.5625≈0.56z = \frac{275-266}{16} = 0.5625 \approx 0.56

P(Z>0.56)=1−0.7123=0.2877≈0.287P(Z > 0.56) = 1 - 0.7123 = 0.2877 \approx 0.287

(iii) P(X<272)P(X < 272)

z=272−26616=0.375≈0.38z = \frac{272-266}{16} = 0.375 \approx 0.38

P(Z<0.38)=0.6480≈0.646P(Z < 0.38) = 0.6480 \approx 0.646

So about 54.7% of pregnancies last 240 to 270 days, about 28.7% last more than 275 days, and about 64.6% last less than 272 days (small differences are due to table rounding).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 5 marks

Define Poisson distribution. In certain factory timing out optical lenses, there is a small chance, 1/500 for any lens to be defective. The lenses are supplied in a packet of 10 each. What is the probability that a packet will contain:
(i) No defective lens,
(ii) At least one defective lenses,
(iii) At most two defective lenses.

Answer

Poisson distribution: a discrete distribution for the number of occurrences XX of a rare event in a fixed interval, obtained as a limit of the binomial when nn is large, pp is small and np=λnp = \lambda is finite:

P(X=x)=e−λλxx!,x=0,1,2,…P(X=x) = \frac{e^{-\lambda}\lambda^{x}}{x!},\qquad x = 0,1,2,\dots

Its mean and variance are both λ\lambda.

Here p=1/500p = 1/500 and n=10n = 10, so λ=np=10/500=0.02\lambda = np = 10/500 = 0.02 and e−0.02=0.9802e^{-0.02} = 0.9802.

(i) No defective lens

P(X=0)=e−0.02=0.9802P(X=0) = e^{-0.02} = 0.9802

(ii) At least one defective lens

P(X≥1)=1−P(X=0)=1−0.9802=0.0198P(X\ge 1) = 1 - P(X=0) = 1 - 0.9802 = 0.0198

(iii) At most two defective lenses

P(X≤2)=e−0.02(1+0.02+0.0222)=0.9802(1.0202)=0.99998≈1.0000P(X\le 2) = e^{-0.02}\left(1 + 0.02 + \frac{0.02^2}{2}\right) = 0.9802(1.0202) = 0.99998 \approx 1.0000

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2024 · 5 marks

A dean of a college wants to use the mean of a random sample to estimate the average amount of time students take to get from one class to the next, and she wants to be able to assert with 95% confidence that error is at most 0.25 minute. If it can be presumed from experience that σ = 1.40 minutes, how large a sample will she have to take?

Answer

The sample size needed to estimate a mean with maximum error EE at 95% confidence, when σ\sigma is known, is

n=(zα/2 σE)2n = \left(\frac{z_{\alpha/2}\,\sigma}{E}\right)^2

Given σ=1.40\sigma = 1.40, E=0.25E = 0.25, z0.025=1.96z_{0.025} = 1.96:

n=(1.96×1.400.25)2=(2.7440.25)2=(10.976)2=120.47n = \left(\frac{1.96\times 1.40}{0.25}\right)^2 = \left(\frac{2.744}{0.25}\right)^2 = (10.976)^2 = 120.47

Rounding up, the dean must take a sample of at least n=121n = 121 students.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2025 · 5 marks

Discuss the application of statistics in computer application.

Answer

Statistics is used wherever computer applications must collect, summarise or draw conclusions from data. Its main applications are:

  1. Machine learning and data mining: regression, classification, clustering, Bayesian methods and hypothesis testing underlie prediction and pattern discovery.
  2. Database management and big data analytics: descriptive measures (mean, variance, correlation) support reports, dashboards and decision making.
  3. Software engineering: defect and failure data are analysed with probability distributions to estimate reliability; sampling is used in testing; control charts monitor quality.
  4. Performance modelling and simulation: queuing models, Poisson arrivals and random number generation are used to study server load, response time and network traffic.
  5. Networks and security: anomaly and intrusion detection, spam filtering and error estimation are based on probabilistic models.
  6. Image and speech processing, AI and NLP: noise removal, pattern recognition, speech recognition, search ranking and recommendation use statistical models.
  7. Human-computer interaction and e-commerce: surveys, A/B tests and confidence intervals evaluate usability and user behaviour.
  8. Data compression and cryptography: the frequency distribution of symbols (entropy) is used in coding, and randomness tests are used to check keys.

Hence statistics is a foundation for designing, evaluating and improving computer systems and for handling uncertainty in data.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2025 · 5 marks

Define probability. The odds against of A solving a problem as 8 to 6 and the odds in favor of B solving the same problem are 14 to 10. What is the probability that (i) Both A and B will solve it and (ii) A solves it but B fails to solve it?

Answer

Probability: a numerical measure of the chance that an event occurs. For an experiment with equally likely outcomes,

P(E)=number of outcomes favourable to Etotal number of outcomes,0≤P(E)≤1P(E) = \frac{\text{number of outcomes favourable to } E}{\text{total number of outcomes}},\qquad 0\le P(E)\le 1

Probability of A solving. Odds against A are 8:68:6, so

P(A)=68+6=37,P(Aˉ)=47P(A) = \frac{6}{8+6} = \frac{3}{7},\qquad P(\bar A) = \frac{4}{7}

Probability of B solving. Odds in favour of B are 14:1014:10, so

P(B)=1414+10=712,P(Bˉ)=512P(B) = \frac{14}{14+10} = \frac{7}{12},\qquad P(\bar B) = \frac{5}{12}

A and B work independently.

(i) Both solve it

P(A∩B)=37×712=14=0.25P(A\cap B) = \frac{3}{7}\times\frac{7}{12} = \frac{1}{4} = 0.25

(ii) A solves it but B fails

P(A∩Bˉ)=37×512=528≈0.1786P(A\cap \bar B) = \frac{3}{7}\times\frac{5}{12} = \frac{5}{28} \approx 0.1786

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2025 · 5 marks

Write difference between parameter and statistic.

Answer

BasisParameterStatistic
MeaningA numerical measure describing a characteristic of the populationA numerical measure describing a characteristic of a sample
ValueFixed and usually unknownKnown from the sample; varies from sample to sample
Obtained fromComplete enumeration (census)Sampling
Symbolsμ\mu (mean), σ\sigma (standard deviation), σ2\sigma^2 (variance), NN, PPxˉ\bar x (mean), ss (standard deviation), s2s^2 (variance), nn, pp
UseThe quantity to be estimatedAn estimator used to estimate the parameter and to test hypotheses
NatureA constantA random variable with its own sampling distribution

Example: the average height of all 5000 students of a university is a parameter μ\mu; the average height xˉ\bar x of 100 students selected from them is a statistic used to estimate μ\mu.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2025 · 5 marks

What is sampling distribution? Construct frequency distribution table of sample mean in population 2, 4, 6, 8. (i) Write down all possible sample size of two without replacement. (ii) Show that sample mean is an unbiased estimate of population mean.

Answer

Sampling distribution: the probability distribution of a statistic (such as the sample mean xˉ\bar x) calculated from all possible samples of the same size nn drawn from a population. Its mean, standard deviation (called the standard error) and shape are used for estimation and testing.

Population: 2,4,6,82, 4, 6, 8, N=4N = 4, μ=2+4+6+84=5\mu = \dfrac{2+4+6+8}{4} = 5.

(i) All samples of size 2 without replacement ((42)=6\binom42 = 6) and their means:

Samplexˉ\bar x
(2, 4)3
(2, 6)4
(2, 8)5
(4, 6)5
(4, 8)6
(6, 8)7

Frequency distribution of the sample mean

xˉ\bar x34567Total
ff112116
P(xˉ)P(\bar x)1/61/62/61/61/61

(ii) Unbiasedness

E(xˉ)=∑fxˉ∑f=3+4+10+6+76=306=5E(\bar x) = \frac{\sum f\bar x}{\sum f} = \frac{3+4+10+6+7}{6} = \frac{30}{6} = 5

Since E(xˉ)=5=μE(\bar x) = 5 = \mu, the sample mean is an unbiased estimate of the population mean.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2025 · 10 marks

The mean weight of products is 68.22 grams with variance of 10.8 grams. How many products in a batch of 1000 would you expect (a) to be over 72 grams, (b) between 70 and 72 grams, and (c) below 65 grams?

Answer

Let X∼N(μ=68.22, σ2=10.8)X \sim N(\mu = 68.22,\ \sigma^2 = 10.8), so σ=10.8=3.286\sigma = \sqrt{10.8} = 3.286. Batch size =1000= 1000.

(a) Over 72 grams

z=72−68.223.286=1.15z = \frac{72-68.22}{3.286} = 1.15

P(X>72)=1−0.8749=0.1251P(X>72) = 1 - 0.8749 = 0.1251

Expected number =1000×0.1251≈= 1000\times 0.1251 \approx 125 products.

(b) Between 70 and 72 grams

z1=70−68.223.286=0.54,z2=1.15z_1 = \frac{70-68.22}{3.286} = 0.54,\qquad z_2 = 1.15

P(70<X<72)=0.8749−0.7054=0.1695P(70<X<72) = 0.8749 - 0.7054 = 0.1695

Expected number ≈\approx 169 products (about 170).

(c) Below 65 grams

z=65−68.223.286=−0.98z = \frac{65-68.22}{3.286} = -0.98

P(X<65)=0.1635P(X<65) = 0.1635

Expected number ≈\approx 164 products.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2025 · 10 marks

A part of the investigation of the collapse of the roof of a building, a testing laboratory is given all the available bolts that connected the steel structure at 3 different positions on the roof. The forces required to see each of these bolts are as follows:
Position 1908279988391
Position 2958375102959092
Position 383898094
Perform an analysis of variance to test at the 0.05 level of significance whether the differences among the sample means at the three positions are significant.

Answer

Hypotheses

H0: μ1=μ2=μ3H_0:\ \mu_1=\mu_2=\mu_3 (mean breaking force is the same at the three positions)

H1:H_1: at least one mean differs. Level of significance α=0.05\alpha = 0.05.

Data (taking the values as: Position 1: 90, 82, 79, 98, 83, 91; Position 2: 95, 83, 75, 102, 59, 90, 92; Position 3: 83, 89, 80, 94)

Positionnin_iTiT_iTi2/niT_i^2/n_i
1652345588.17
2759650745.14
3434629929.00

N=17N = 17, grand total T=523+596+346=1465T = 523+596+346 = 1465, ∑x2=127873\sum x^2 = 127873.

Sums of squares

CF=T2N=1465217=126248.53CF = \frac{T^2}{N} = \frac{1465^2}{17} = 126248.53

SST=127873−126248.53=1624.47SST = 127873 - 126248.53 = 1624.47

SSB=∑Ti2ni−CF=126262.31−126248.53=13.78SSB = \sum\frac{T_i^2}{n_i} - CF = 126262.31 - 126248.53 = 13.78

SSW=SST−SSB=1610.69SSW = SST - SSB = 1610.69

ANOVA table

SourceSSd.f.MSFF
Between positions13.7826.896.89/115.05=0.066.89/115.05 = 0.06
Within positions1610.6914115.05
Total1624.4716

Decision: the tabulated value is F0.05(2,14)=3.74F_{0.05}(2,14) = 3.74. Since the calculated F=0.06<3.74F = 0.06 < 3.74, H0H_0 is not rejected. The differences among the sample means at the three positions are not significant at the 0.05 level.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

Questions from TU BCA 2019 Third Semester Data Structures and Algorithms (TU board exam, 2019), TU BCA 2019 Third Semester Data Structures and Algorithms (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2020 Third Semester Data Structures and Algorithms (TU board exam, 2020), TU BCA 2021 Third Semester Data Structures and Algorithms (TU board exam, 2021), TU BCA 2022 Third Semester Data Structures and Algorithms (TU board exam, 2022), TU BCA 2023 Third Semester Data Structures and Algorithms (TU board exam, 2023), TU BCA 2024 Third Semester Data Structures and Algorithms (TU board exam, 2024), TU BCA 2025 Third Semester Data Structures and Algorithms (TU board exam, 2025), TU BCA 2019 Third Semester OOP in Java (TU board exam, 2019), TU BCA 2019 Third Semester OOP in Java (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2020 Third Semester OOP in Java (TU board exam, 2020), TU BCA 2021 Third Semester OOP in Java (TU board exam, 2021), TU BCA 2022 Third Semester OOP in Java (TU board exam, 2022), TU BCA 2023 Third Semester OOP in Java (TU board exam, 2023), TU BCA 2024 Third Semester OOP in Java (TU board exam, 2024), TU BCA 2025 Third Semester OOP in Java (TU board exam, 2025), TU BCA 2019 Third Semester Probability and Statistics (TU board exam, 2019), TU BCA 2019 Third Semester Probability and Statistics (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2020 Third Semester Probability and Statistics (TU board exam, 2020), TU BCA 2021 Third Semester Probability and Statistics (TU board exam, 2021), TU BCA 2022 Third Semester Probability and Statistics (TU board exam, 2022), TU BCA 2023 Third Semester Probability and Statistics (TU board exam, 2023), TU BCA 2024 Third Semester Probability and Statistics (TU board exam, 2024), TU BCA 2025 Third Semester Probability and Statistics (TU board exam, 2025), TU BCA 2019 Third Semester System Analysis and Design (TU board exam, 2019), TU BCA 2019 Third Semester System Analysis and Design (TU board exam, listed as 2019 (a second 2019 set in the compilation)), TU BCA 2019 Third Semester System Analysis and Design (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2020 Third Semester System Analysis and Design (TU board exam, 2020), TU BCA 2021 Third Semester System Analysis and Design (TU board exam, 2021), TU BCA 2022 Third Semester System Analysis and Design (TU board exam, 2022), TU BCA 2023 Third Semester System Analysis and Design (TU board exam, 2023), TU BCA 2024 Third Semester System Analysis and Design (TU board exam, 2024), TU BCA 2025 Third Semester System Analysis and Design (TU board exam, 2025), TU BCA 2019 Third Semester Web Technology (TU board exam, 2019), TU BCA 2019 Third Semester Web Technology (TU board exam, 2019 Group A objective questions (scanned paper compiled by Aadim College)), TU BCA 2020 Third Semester Web Technology (TU board exam, 2020), TU BCA 2021 Third Semester Web Technology (TU board exam, 2021), TU BCA 2022 Third Semester Web Technology (TU board exam, 2022), TU BCA 2023 Third Semester Web Technology (TU board exam, 2023), TU BCA 2024 Third Semester Web Technology (TU board exam, 2024) and TU BCA 2025 Third Semester Web Technology (TU board exam, 2025). Answers are written for this site; check them against your class notes.