Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Data Science Python Part 2 2025 40 QA Machine Learning Sklearn Statistics Verified

Rating
-
Sold
-
Pages
26
Grade
A+
Uploaded on
23-03-2026
Written in
2025/2026

Data Science with Python Part 2 2025 — 40 Q&A Machine Learning and Statistics Verified

Content preview

Data Science with Python Part 2 2025 — 40 Q&A Machine
Learning and Statistics Verified

Series:
CrashCourses Professional Study Series

Author:
Dr Z. Moomba, MBChB, MRCPsych | BethelWellness Ltd

Exam Target:
Data Science Python Part 2

Year:
2025/2026

Format:
40 Questions with Verified Answers and Rationales


>
Author's Note:
This document is an original work produced for the CrashCourses Professional Study Series.
Clinical questions and professional scenarios were composed by Dr Z. Moomba based on current
exam objectives, published guidelines, and evidence-based sources (2024–2025). All patient
names, ages, and case details are fictional. Any resemblance to existing published Q&A banks is
coincidental. For personal study use only — not for reproduction or redistribution.


SECTION A — FOUNDATIONS

1. A data science team at a major metropolitan hospital is analyzing the wait times in the emergency
department (ED). The wait times are normally distributed with a mean of 45 minutes and a standard
deviation of 10 minutes. A new triage protocol is implemented, and the team wants to calculate the
95% confidence interval for a sample of 100 patients whose average wait time was 42 minutes.
Which statistical principle must they apply to determine if the new protocol significantly changed
wait times?
A) The standard error of the mean must be calculated as 10 divided by the square root of 100.
B) The margin of error will be exactly 1.96 multiplied by 10.
C) A Chi-square goodness-of-fit test should be used to establish the interval.




,D) The confidence interval is purely determined by the median wait time rather than the sample
mean.

Answer: A

Rationale:
a) To calculate a confidence interval for a sample mean, the standard error (SE) is required, which
is the population standard deviation divided by the square root of the sample size ($\sigma /
\sqrt{n}$).
b) The key discriminating feature is recognizing that the standard error accounts for sample size,
distinguishing it from population standard deviation. Here, $10 / \sqrt{100} = 1.0$.
c) Option B fails because the margin of error multiplies the critical z-score (1.96) by the standard
error (1.0), not the standard deviation (10).
d) In clinical statistics, narrowing a confidence interval requires increasing the sample size, as SE
is inversely proportional to the square root of $n$. [NHS Health Data Analytics Guidelines 2024]


2. A machine learning algorithm is developed to screen for early-stage pancreatic cancer based on
blood biomarkers. The model incorrectly classifies a healthy patient as having cancer. In the context
of hypothesis testing where the null hypothesis ($H_0$) is that the patient is healthy, what type of
statistical error has occurred?
A) Type II error (False Negative)
B) Type I error (False Positive)
C) Power error
D) Standard error of measurement

Answer: B

Rationale:
a) A Type I error occurs when the null hypothesis is true, but is incorrectly rejected (a false
positive).
b) The scenario explicitly describes classifying a healthy person ($H_0$ true) as diseased, which
is the defining characteristic of a false positive.
c) Option A fails because a Type II error would involve failing to reject $H_0$ when it is false (i.e.,
telling a patient with cancer that they are healthy).
d) In medical screening, the threshold for Type I vs. Type II errors is a critical clinical decision; high
sensitivity reduces Type II errors but increases Type I errors. [Statistical Foundations for Health
Data 2025]



, 3. A clinical researcher wants to compare the mean reduction in systolic blood pressure across three
different antihypertensive medications (Drug A, Drug B, and Drug C). The dependent variable is
continuous, and the independent variable is categorical with three levels. Which statistical test is
most appropriate?
A) Independent two-sample t-test
B) Chi-square test of independence
C) One-way ANOVA
D) Pearson correlation coefficient

Answer: C

Rationale:
a) One-way Analysis of Variance (ANOVA) is used to compare means across three or more
independent groups.
b) The presence of three distinct drug groups (categorical independent variable) and a continuous
outcome (blood pressure reduction) dictates the use of ANOVA.
c) Option A is incorrect because a t-test is limited to comparing exactly two groups.
d) If the ANOVA yields a significant p-value, post-hoc testing (like Tukey's HSD) is required to
determine exactly which drugs differ from one another. [Scikit-learn Statistics Primer 2025]


4. A health informatics team is building an automated diagnostic pipeline. They write the following
scikit-learn code to split their dataset containing 10,000 patient records, where only 2% of patients
have the target rare disease:
`X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)`

What is the critical flaw in this implementation for a highly imbalanced medical dataset?
A) `test_size=0.2` is too small for clinical data; it must be at least 0.3.
B) The code fails to include the `stratify=y` parameter, risking a test set with zero positive cases.
C) `random_state=42` introduces deterministic bias and should be set to `None`.
D) `train_test_split` cannot process categorical string labels in `y`.

Answer: B

Rationale:

Document information

Uploaded on
March 23, 2026
Number of pages
26
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
£12.32
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
CrashCourses (At Home Study)
View profile
Follow You need to be logged in order to follow users or courses
Sold
145
Member since
5 year
Number of followers
49
Documents
664
Last sold
3 months ago
University of the People MBA solutions

University of the People - 100% Correct Solutions

4.7

9 reviews

5
7
4
1
3
1
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions