Skip to content

Statistics and Probability

CSE · Final · Summer 25

Batch 64

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 Faculty of Science & Information Technology Department of Computer Science & Engineering Final Examination, Summer 2025 Course Code: STA101, Course Title: Statistics and Probability Level: 3 Term: 2 Batch: 64 Time: 02:00 Hours Marks: 40 Answer All the 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) Define the conditions under which you can apply the Positive correlation and the Negative Correlation. [2] 1. b) A group of computer science students is working on a project management tool. They want to help developers estimate how long a software module will take to build based on certain known factors. Where the independent variables are Lines of Code (LOC), Number of Functions, Developer Experience (in years). Explain the appropriate regression model from the above case in details. [3] CO1 2. The following data shows daily bandwidth usage (MB) and corresponding system latency (milliseconds) collected over 7 days: Daily Bandwidth Usage (MB) | 6.5 | 5 | 7 | 9.5 | 8 | 11 | 10.5 Processing Time (in milliseconds) | 25 | 20 | 28 | 36 | 31 | 41 | 38 2. a) Construct the strength and direction of the relationship between daily bandwidth usage and processing time. Interpret the result as well. [4] CO2 2. b) Build a regression model using the given dataset. Developed the estimated coefficients represent in the given context with proper interpretation. [3] 2. c) Identify the prediction error (residual) when the daily bandwidth usage is 11 GB. [1] 2. d) Construct the coefficient of determination and comment on its meaning in terms of the model's explanatory power. [2] 3. a) In a software company's code review system, 60 submissions are pending for review, with 40 correct and 20 containing errors. Two submissions are selected randomly one after another without replacement. Examine the probabilities of selecting: i) a second submission that contains errors, given the first submission also has errors. [5] CO3 ii) two consecutive submissions that contain errors. iii) two consecutive submissions that are correct. 3. b) During the DIU Job Fair, several digital systems operate simultaneously. The career portal receives approximately 20 user requests per minute during peak hours. The CSE online judge handles about 6 code submissions every 10 minutes. The placement office email receives around 10 job applications per hour. Simplify the probabilities of a. receiving exactly 25 user requests per minute. [5] b. no code submissions in the next 5 minutes c. receiving more than 7 job applications between 2 PM and 7 PM. 4. a) A company produces laptop batteries whose lifetimes are approximately normally distributed with a mean of 1000 hours and a standard deviation of 80 hours. i) Inspect the probability that a randomly selected battery lasts more than 1180 hours. [2] CO4 ii) Assume the probability that a randomly selected laptop battery lasts between 890 and 1180 hours. [3] iii) A quality control engineer tests a sample of 50 batteries with a sample mean lifetime of 970 hours. Assuming the population standard deviation is known to be 80 hours. Test for the 5% significance level to examine the validity of the company's claim that the average lifetime is at least 1000 hours. Conclude whether the test supports the claim. [6] 4. b) Investigate whether there is a significant relationship between data usage and response time (using data from Question 2) at the 5% significance level. Evaluate your findings and justify your conclusion using the provided tabulated values. [4] Useful Statistical Formulas Correlation Analysis: Correlation Coefficient: r = ∑((x - x_bar)(y - y_bar)) / sqrt(∑(x - x_bar)^2 * ∑(y - y_bar)^2) or r = (N∑xy - (∑x)(∑y)) / sqrt((N∑x^2 - (∑x)^2)(N∑y^2 - (∑y)^2)) Regression analysis: Regression Coefficients: b_0 = y_bar - b_1 * x_bar, and b_1 = (N∑xy - (∑x)(∑y)) / (N∑x^2 - (∑x)^2) or b_1 = ∑((x_i - x_bar)(y_i - y_bar)) / ∑(x_i - x_bar)^2 Hypothesis Testing: Z test statistic: Z = (x_bar - mu) / (sigma / sqrt(n)) t test statistic: t = (x_bar - mu) / (s / sqrt(n)) Testing the significance of the correlation coefficient: t = r * sqrt(n - 2) / sqrt(1 - r^2) Probability Distribution: Binomial Distribution: f(x; n, p) = (n choose x) * p^x * q^(n-x) for x = 0, 1, 2, ..., n; 0 otherwise Poison Distribution: f(x; lambda) = (e^(-lambda) * lambda^x) / x! for x = 0, 1, 2, ...; 0 otherwise Normal Distribution: f(x; mu, sigma^2) = (1 / (sigma * sqrt(2*pi))) * e^(-((x - mu)^2) / (2 * sigma^2)), -inf < x < inf Standard Normal Variable: Z = (x - mu) / sigma Tabulated value for Standard Normal Distribution: P(Z < 1.25) = 0.8944 P(Z < -1.25) = 0.1056 P(Z > -2.25) = 0.9878 P(Z > -1.375) = 0.9155 Z_0.025 = +-1.96 Z_0.05 = +-1.645 Z_0.01 = +-2.33 Z_0.005 = +-2.575 Tabulated value for t Distribution: 2.571 for 5 df, 2.447 for 6 df, 2.306 for 8 df Basic Concepts of Probability: General Rule of Addition: P(A or B) = P(A U B) = P(A) + P(B) - P(A n B) Special Rule of Addition: P(A or B) = P(A) + P(B) if P(A n B) Conditional Probability: P(B|A) = P(A and B) / P(A) = P(A n B) / P(A)