Skip to content

Statistics and Probability

CSE · Final · Spring 23

Batch All

This browser can’t show the PDF here

Open it, and your phone’s PDF viewer takes it, or download it.

Read the questions as text

Read off the PDF by AI, so it may have mistakes. The PDF is the original.

Daffodil International University Department of Computer Science and Engineering Faculty of Science & Information Technology Semester Final Examination, Spring 2023 Course Code: STA 221, Course Title: Statistics and Probability Level: 2 Term: 2 Batch: All Time: 02:00 Hrs Marks: 40 Answer ALL Questions [The figures in the right margin indicate the full marks and corresponding course outcomes. All portions of each question must be answered sequentially.] 1. a) If you want to calculate the test scores on a final exam to better understand whether most students score close to the average or if there is a wide spread in test scores. Find the suitable measure of dispersion for the analysis and explain. [1] CO1 b) Show the difference mutually exclusive and independent events? Illustrate with a hypothetical example. [2] CO1 c) Meditation can produce a deep state of relaxation and a tranquil mind. During meditation, you focus your attention and eliminate the stream of jumbled thoughts that may be crowding your mind and causing stress. Choose the appropriate correlation is existing in this example. Explain Software firm collected data for a sample of 9 programmer's firm's management wanted to predict salary using years of experience. The data are given below: [2] CO2 Salary(K) | 24 | 43 | 47 | 51 | 35 | 38 | 42 | 40 | 49 No. of experience (years) | 4 | 7 | 6 | 7 | 5 | 5 | 6 | 5 | 6 2. i) Construct a scatter diagram. [2] CO2 ii) Develop coefficient of determination using the above table. [4] CO2 iii) Test the hypothesis that there is a significant relationship between salary and No. of experience (years) used at the 0.05 significance level, interpret your findings. [Tabulated Value: 1.86] [5] CO2 3. a) By using the data 2 [5] CO3 i) Build a regression model and interpret the results [5] CO3 ii) Build salary if number of experiences is 10 years [1] CO3 b) If two dice are thrown solve the probabilities that the both would be odd, same number? [3] CO3 4. a) The number of hits on a certain website follows poison distribution with a mean rate of 4 per minutes. Discover [5] CO4 i) the probability that at least 2 hits are received in 1 minutes [2.5] CO4 ii) the probability that between 2 to 3 hits are received in 2 minutes [2.5] CO4 b) A package filling process at a cement fills a bag of cement to an average weight of 12 pounds, the standard deviation is 3 pounds. A sample of 15 bags have been taken and the mean was found to be 100 pounds. Assume that the weights of the bag follow normal distribution, and test the above process at 5% level of significance. [Z cal.-1.96] [5] c) It is observed that 50% of mails are spam. There is a software that filters spam mail before reaching the inbox. Its accuracy for detecting a spam mail is 99% and chances of tagging a non-spam mail as spam mail is 5%. If a certain mail is tagged as spam discover the probability that it is not a spam mail. [5] Formulas Measure of Dispersion Range= Xmax - Xmin Mean Deviation, M.D = ∑(|xi - μ|)/n Population variance σ^2 = ∑((xi - μ)^2)/N Sample variance s^2 = ∑((xi - x_bar)^2)/(n - 1) Coefficient of variation for population, C.V = (σ/μ) * 100 Coefficient of variation for sample, C.V = (s/x_bar) * 100 Basic Concepts of Probability General Rule of Addition P(A or B) = P(A U B) = P(A) + P(B) - P(A ∩ B) Special Rule of Addition P(A or B) = P(A U B) = P(A) + P(B) Conditional Probability P(B|A) = P(A and B) / P(A) = P(A ∩ B) / P(A) Bayes theorem: P(Bi | A) = (P(Bi)P(A | Bi)) / (∑(P(Bj)P(A | Bj)) from j=1 to n; i = 1, 2, ....., n Hypothesis testing Z test statistics: Z = (x_bar - μ) / (σ / sqrt(n)) t test statistics: t = (X_bar - μ) / (s / sqrt(n)) Testing the significance of the correlation coefficient: t = (r * sqrt(n - 2)) / sqrt(1 - r^2) Correlation and Regression analysis Regression Coefficient: beta_1 = (∑(xi - x_bar)(yi - y_bar)) / (∑(xi - x_bar)^2) beta_0 = y_bar - beta_1 * x_bar Correlation Coefficient: r = (N∑xy - (∑x)(∑y)) / sqrt([N∑x^2 - (∑x)^2][N∑y^2 - (∑y)^2]) r = ∑((xi - x_bar)(yi - y_bar)) / sqrt(∑((xi - x_bar)^2) ∑((yi - y_bar)^2)) Binomial Distribution f(x; n, p) = (n choose x) * p^x * q^(n-x) for x = 0, 1, 2, ..., n; 0 otherwise Poisson Distribution f(x; λ) = (e^(-λ) * λ^x) / x! for x = 0, 1, 2, ...; 0 otherwise Normal Distribution f(x; μ, σ^2) = (1 / (σ * sqrt(2*pi))) * e^(-((x - μ)^2) / (2σ^2)); -∞ < x < ∞ Shape of the distribution Coefficient of Skewness, Sk = (3 * (Mean - Median)) / Standard deviation Kurtosis β_2 = μ_4 / μ_2^2