BP703T · Semester 7 · B.Pharm

Unit V — Guided Supervised Learning Project — Pharmaceutical and Clinical Applications

AI in Clinical Applications

The complete notes for this unit, chapter by chapter. Download the PDF to study offline.

Topics in this unit

  • Relevant problem framing and publicly available dataset suitability
  • Predictor/outcome variables and preparation concepts
  • Linear/logistic-regression method choice and metric-based evaluation
  • Interpretation, limitations, bias, ethics, presentation, and a no-deployment boundary

Full notes for this unit

Read the notes here, or download the PDF below for offline study. For education and exam preparation; check current official references before relying on legal, clinical or dosage details.

Chapters in this unit

Chapter 11: Guided Supervised Learning Project — Pharmaceutical and Clinical Applications

  • Learning Objectives
  • After studying this chapter, you will be able to:
1List and explain the nine required steps of the guided supervised learning project.
2Define every project term (dataset, predictor, outcome, preprocessing, metric) in simple words.
3Work through a complete linear regression project (dissolution rate prediction) with all arithmetic shown.
4Work through a complete logistic regression project (ADR prediction) with all steps shown.
5Work through a third project (diabetes risk prediction) including data preprocessing calculations.
6Evaluate a model with the correct metric for the problem type.
7Discuss limitations, biases, and ethical issues of a student project honestly.
8 DefinitionsPlan and present project findings using the given outline and rubric.
•Project: A planned piece of work with a question, a method, results, and conclusions.
•Dataset: A table of data (rows = patients/batches, columns = measurements) used for the project.
•Publicly available dataset: A dataset anyone can download and use, usually shared for learning or research.
•Predictor variable: A column used to make the guess (e.g., age). Also called a feature or input.
•Outcome variable: The column we want to guess (e.g., ADR yes/no). Also called the target or label.
•Data preprocessing: Cleaning and preparing the dataset before modeling — handling missing values, fixing errors, scaling numbers.
•Missing value: An empty cell where a measurement was not recorded.
•Normalization (scaling): Converting numbers to a common scale (e.g., 0 to 1) so that large numbers do not dominate the model.
•Evaluation metric: A number that tells us how good the model is (e.g., accuracy, RMSE).
•Baseline: A very simple reference model (e.g., "always predict the average") used to check whether our model is actually useful.
•Presentation: Explaining the project clearly to teachers or classmates with slides or a poster.
  • Terminology Table
TermSimple MeaningExample
DatasetTable of rows and columns10 batches × (hardness, dissolution %)
Predictor (feature)Column used for guessingTablet hardness in kg/cm²
Outcome (label)Column to be guessedDissolution % at 30 min
Training setRows used to build the model7 of 10 batches
Testing setRows kept aside to check the model3 of 10 batches
PreprocessingCleaning before modelingFilling a missing hardness value
NormalizationRescaling numbers to 0–1Converting glucose 70–200 mg/dL to 0–1
RMSEAverage prediction error sizeRMSE 4% means predictions miss by ~4%
R2Fraction of variation explainedR2 0.94 = model explains 94%
AccuracyFraction of correct yes/no guesses8 correct out of 10
Confusion matrixTable of the four guess outcomesTP, FP, TN, FN
Bias (project)Unfairness from unrepresentative dataToy data from one lab only
EthicsDoing the work honestly and safelyNot presenting toy results as real findings
OverfittingMemorizing the small datasetPerfect on training, poor on new batches
ReproducibilityAnother person can repeat your stepsAll steps and numbers written down

The Nine Required Project Steps

  • Simple Explanation
  • Every project in this course follows the same nine steps, like a recipe. The steps turn a vague idea ("I want to predict something") into a finished, honest piece of work you can present.
  • The Nine Steps
StepWhat You DoOutput
1. Problem definitionWrite the exact question in one or two sentences"Can disintegrant % predict dissolution % at 30 min?"
2. Dataset selectionChoose a suitable publicly available dataset (or a teacher-approved toy dataset)Dataset name, source, size
3. Predictor/outcome identificationName which columns are predictors and which is the outcomePredictors: X1, X2; Outcome: Y
4. Data preprocessingClean: missing values, errors, scalingClean dataset ready for modeling
5. Model applicationApply linear regression (numbers) or logistic regression (yes/no)Model equation
6. Performance evaluationCalculate the right metricsRMSE/R2 or accuracy/sensitivity/specificity
7. InterpretationExplain what the results mean in pharmacy/clinical words"Each 1% more disintegrant adds ~8% dissolution"
8. Limitations, bias, ethicsHonestly list weaknessesSmall data, one lab, toy dataset
9. PresentationPresent findings to mentors/peersSlides or poster + short talk
Diagram
Flowchart: The Project Journey
    1. Define the problem (one clear question)
           |
           v
    2. Select dataset (public / teacher-approved toy)
           |
           v
    3. Identify predictors (X) and outcome (Y)
           |
           v
    4. Preprocess (clean, fill gaps, scale)
           |
           v
    5. Apply model: linear regression (number?) or
       logistic regression (yes/no?)
           |
           v
    6. Evaluate with correct metrics
           |
           v
    7. Interpret in pharmacy/clinical language
           |
           v
    8. Discuss limitations, bias, ethics honestly
           |
           v
    9. Present findings
  • Key Takeaway
  • Nine steps, in order: problem → dataset → predictors/outcome → preprocessing → model → metrics → interpretation → limitations/ethics → presentation. Write everything down so anyone can repeat your work.

Worked Project A — Dissolution Rate Prediction by Linear

  • Regression
  • Step 1 — Problem definition
  • "Can the percentage of disintegrant in a tablet formulation predict the percentage of drug dissolved at 30 minutes?" A higher dissolution rate usually means faster drug release.
  • Step 2 — Dataset selection
  • Illustrative toy dataset (invented for learning only; not real laboratory data). Six tablet batches:
BatchDisintegrant x (%)Dissolution y (% at 30 min)
1150
2259
3365
4475
5581
6690
  • Step 3 — Predictor and outcome
  • Predictor (X): disintegrant % — known before testing.
  • Outcome (Y): dissolution % at 30 min — the number we want to predict (regression problem, because it is a number).
  • Step 4 — Preprocessing
  • Check the table: no missing values, no impossible values (all between 0 and 100%), no duplicates. Data is clean; no changes needed. (In a real project, this is where you would fill gaps and fix errors.)
  • Step 5 — Apply linear regression (all arithmetic shown)
  • Mean of x = (1+2+3+4+5+6)/6 = 21/6 = 3.5. Mean of y = (50+59+65+75+81+90)/6 = 420/6 = 70.
xyx − 3.5y − 70(x−3.5)2(x−3.5)(y−70)
150−2.5−206.2550
259−1.5−112.2516.5
365−0.5−50.252.5
4750.550.252.5
5811.5112.2516.5
6902.5206.2550
Total17.5138
• Slope b = 138 / 17.5 = 7.89 (rounded to two decimals: 7.89).
• Intercept a = 70 − 7.89 × 3.5 = 70 − 27.61 = 42.39 ≈ 42.4.
  • Model: predicted dissolution % = 42.4 + 7.89 × (disintegrant %).
  • Prediction example: for 2.5% disintegrant → 42.4 + 7.89 × 2.5 = 42.4 + 19.73 = 62.13 ≈ 62%.
  • Step 6 — Evaluate performance
  • Predictions for x = 1..6: 50.29, 58.18, 66.07, 73.96, 81.85, 89.74.
ActualPredictedErrorError2
5050.29−0.290.08
5958.180.820.67
6566.07−1.071.14
7573.961.041.08
8181.85−0.850.72
9089.740.26 Total0.07 3.76
• MSE = 3.76 / 6 = 0.63 → RMSE = √0.63 ≈ 0.79% (predictions miss by less than 1 percentage point on
  • average).
  • Total y-variation = (−20)² + (−11)² + (−5)² + 5² + 11² + 20² = 400+121+25+25+121+400 = 1092.
  • R² = 138² / (17.5 × 1092) = 19044 / 19110 ≈ 0.997 — the model explains 99.7% of the variation.
  • Step 7 — Interpretation (pharmacy language)
  • Each additional 1% of disintegrant raises predicted dissolution by about 7.9 percentage points. The fit is excellent on this toy data (R2 ≈ 0.997, RMSE ≈ 0.8%). A formulator could use this relationship to target a desired dissolution rate — but must confirm with real experiments, because toy data cannot replace laboratory work.
  • Step 8 — Limitations, bias, ethics
  • Tiny dataset: only 6 batches — real models need many more.
  • One factor only: real dissolution also depends on compression force, particle size, and coating; ignoring them is a limitation.
  • Toy data: these numbers were invented for learning; they prove the method, not the formulation.
  • Ethics: presenting toy results as real lab findings would be dishonest — always label toy data clearly.
  • Step 9 — Presentation notes
  • Show the scatter plot with the best-fit line, the equation, RMSE/R2, the plain-language interpretation, and one slide honestly listing limitations.
  • Key Takeaway
  • Project A shows the full regression path: clean toy data → line y = 42.4 + 7.89x → RMSE ≈ 0.8%, R2 ≈ 0.997 → interpretation in formulation language → honest limitations.

Worked Project B — ADR Prediction by Logistic Regression

  • Step 1 — Problem definition
  • "Can patient age group (above 60 or not) predict whether a patient will experience an adverse drug reaction (ADR)?" This is a yes/no question → classification.
  • Step 2 — Dataset selection
  • Illustrative toy dataset (invented for learning only; not real patient data). Eight patients on the same medicine:
PatientAge > 60? (X)ADR? (Y)
1No (0)No
2No (0)No
3No (0)No
4No (0)Yes
5Yes (1)Yes
6Yes (1)Yes
7Yes (1)Yes
8Yes (1)No
  • Step 3 — Predictor and outcome
  • Predictor (X): age above 60 (0 = no, 1 = yes).
  • Outcome (Y): ADR occurred (0 = no, 1 = yes).
  • Step 4 — Preprocessing
  • No missing values. Both columns are already 0/1 coded — no scaling needed for a single binary predictor.
  • In a real project, age would be kept as a number and checked for missing entries.
  • Step 5 — Apply logistic regression (all arithmetic shown)
  • Logistic regression works with odds and log-odds:

• Odds = P(ADR) / P(no ADR). Log-odds = ln(odds). Probability = odds / (1 + odds).

  • Group 1 — age ≤ 60 (X = 0): 1 ADR out of 4 → P = 1/4 = 0.25; odds = 0.25/0.75 = 0.333; log-odds = ln(0.333) = −1.10.
  • Group 2 — age > 60 (X = 1): 3 ADR out of 4 → P = 3/4 = 0.75; odds = 0.75/0.25 = 3; log-odds = ln(3) = 1.10.
  • Model (log-odds form): log-odds of ADR = −1.10 + 2.20 × (age>60).
  • Check: for X = 0 → −1.10 → odds = e^(−1.10) = 0.333 → P = 0.333/1.333 = 0.25 ✓. For X = 1 → 1.10 → odds = 3 → P = 3/4 = 0.75 ✓.
  • Prediction rule: predict "ADR likely" if P ≥ 0.5, i.e., for age > 60 group.
  • Odds ratio: 3 / 0.333 = 9 — patients above 60 have 9 times the odds of ADR in this toy data.
  • Step 6 — Evaluate performance
  • Confusion matrix (predicted "ADR likely" for the 4 older patients):
  • True ADR: Yes True ADR: No
Predicted: ADR likelyTP = 3 (patients 5, 6, 7)FP = 1 (patient 8)
Predicted: ADR unlikelyFN = 1 (patient 4)TN = 3 (patients 1, 2, 3)
• Accuracy = 6/8 = 0.75 (75%)
• Sensitivity = 3/4 = 0.75 — catches 75% of true ADR cases
• Specificity = 3/4 = 0.75 — correctly clears 75% of non-ADR patients
• Precision = 3/4 = 0.75 — 75% of "ADR likely" flags are correct Step 7 — Interpretation (clinical language)
  • In this toy data, being above 60 multiplies the odds of ADR by 9. The model correctly classifies 75% of patients. The one false negative (patient 4, younger but had an ADR) reminds us that age alone cannot explain all ADRs — medicines, dose, kidney function, and genetics also matter.
  • Step 8 — Limitations, bias, ethics
  • Tiny, invented data: 8 patients cannot support real conclusions.
  • Single predictor: real ADR risk needs many factors; this model is deliberately oversimplified.
  • Ethics: a real ADR model that misses cases (false negatives) could harm patients — toy results must never guide real prescribing.
  • Bias risk: if training data under-represents women or the elderly, the model will fail them (see Chapter 10).
  • Step 9 — Presentation notes
  • Present the 2×2 table, the odds ratio (9×), the confusion matrix with all four metrics, and emphasize: "toy demonstration of the method, not a clinical tool."
  • Key Takeaway
  • Project B shows the full classification path: binary toy data → log-odds model → odds ratio 9 → confusion matrix (accuracy/sensitivity/specificity/precision all 75%) → clinical interpretation → honest ethics warning.

Worked Project C — Diabetes Risk Prediction from Health

  • Markers
  • Step 1 — Problem definition
  • "Can fasting blood glucose and BMI together predict whether a person has diabetes (yes/no)?"
  • Step 2 — Dataset selection
  • Illustrative toy dataset (invented for learning only; not real patient data). Six persons:
PersonFasting glucose (mg/dL)BMI (kg/m²)Diabetes?
19022No
210024No
311026No
412629Yes
514031Yes
615533Yes
  • Step 3 — Predictor and outcome
  • Predictors: fasting glucose (X1), BMI (X2).
  • Outcome: diabetes yes/no (Y) — classification.
  • Step 4 — Preprocessing (with calculations)
  • Suppose person 3's BMI was missing. Mean imputation: mean of the other BMIs = (22+24+29+31+33)/5 = 139/5 = 27.8 → fill 27.8. (Our toy table is complete, so this is shown as the method you would use.)
  • Normalization (min-max to 0–1): formula = (value − min) / (max − min).
  • Glucose min = 90, max = 155. Person 4: (126 − 90)/(155 − 90) = 36/65 = 0.554.
  • BMI min = 22, max = 33. Person 4: (29 − 22)/(33 − 22) = 7/11 = 0.636.
  • Normalized table (glucose, BMI):
PersonGlucose (0–1)BMI (0–1)Diabetes?
10.0000.000No
20.1540.182No
30.3080.364No
40.5540.636Yes
50.7690.818Yes
61.0001.000Yes
  • Step 5 — Apply logistic regression (simplified hand-worked scoring)
  • For teaching, we use the trained toy model: log-odds = −4.0 + 5.0 × glucose_norm + 3.0 × BMI_norm. (In a real project, software finds these numbers from the training data; here they are given so you can practice the scoring steps by hand.)
  • Person 4: log-odds = −4.0 + 5.0(0.554) + 3.0(0.636) = −4.0 + 2.77 + 1.91 = 0.68 → odds = e^0.68 = 1.97 → P = 1.97/2.97 = 0.66 ≥ 0.5 → predict Yes ✓ (correct).
  • Person 3: log-odds = −4.0 + 5.0(0.308) + 3.0(0.364) = −4.0 + 1.54 + 1.09 = −1.37 → odds = e^(−1.37) = 0.254 → P = 0.254/1.254 = 0.20 < 0.5 → predict No ✓ (correct).
  • Person 2: log-odds = −4.0 + 5.0(0.154) + 3.0(0.182) = −4.0 + 0.77 + 0.55 = −2.68 → P = 0.064 → predict No ✓.
  • Person 5: log-odds = −4.0 + 5.0(0.769) + 3.0(0.818) = −4.0 + 3.85 + 2.45 = 2.30 → P = 0.91 → predict Yes ✓.
  • Person 1: log-odds = −4.0 → P = 0.018 → No ✓. Person 6: log-odds = −4.0 + 5.0 + 3.0 = 4.0 → P = 0.982 → Yes ✓.
  • Step 6 — Evaluate performance
  • All 6 predictions correct: accuracy = 6/6 = 1.00 (100%); sensitivity = 3/3 = 1.00; specificity = 3/3 = 1.00.
  • (Perfect scores here only because the toy data is cleanly separated — real data is never this tidy.)
  • Step 7 — Interpretation
  • Higher glucose and higher BMI both push the log-odds up (positive coefficients 5.0 and 3.0), matching medical knowledge. The model separates the toy groups perfectly, but this reflects the toy's simplicity, not real-world performance.
  • Step 8 — Limitations, bias, ethics
  • Only 6 persons; real diabetes models use thousands.
  • Ignores family history, age, blood pressure, and other key factors.
  • Ethics: a diabetes label affects insurance, employment, and mental health — a student model must never be used to label real people.
  • Toy data labeled clearly; no real patient data was used.
  • Step 9 — Presentation notes
  • Show the preprocessing steps (imputation, normalization with one worked calculation), the scoring arithmetic for two persons, the perfect toy metrics with the warning that real data will score lower.
  • Key Takeaway
  • Project C adds preprocessing (missing-value filling, normalization) to the classification workflow and shows how two predictors combine in a log-odds equation — with all arithmetic visible.

Choosing Between Regression and Classification

Question typeExampleModelMain metrics
"How much / how many?" (number)Dissolution %, ICU stay days, tablet hardnessLinear regressionRMSE, R2
"Yes or no / which group?" (category)ADR yes/no, diabetes yes/no, batch pass/failLogistic regressionAccuracy, sensitivity, specificity, precision
  • Rule of thumb: look at your outcome column. Numbers → regression. Categories → classification.

Suggested Project Topics Mapped to the Syllabus

#Suggested Topic (from syllabus)Problem TypeSuggested Predictors → Outcome
1Dissolution rate predictionRegressionDisintegrant %, compression force → dissolution %
2Tablet hardness predictionRegressionCompression force, binder % → hardness
3Stability degradation modellingRegressionTemperature, humidity, time → % drug remaining
4QC batch failure predictionClassificationProcess parameters → pass/fail
5Assay variability modellingRegressionAnalyst, instrument, day → assay %
6Impurity predictionRegressionStorage conditions → impurity %
7Moisture impact on formulation stabilityRegressionMoisture %, time → stability measure
8Coating thickness predictionRegressionSpray rate, pan speed → thickness
9Solubility enhancement modellingRegressionCarrier ratio, method → solubility
10Tablet defect classificationClassificationProcess readings → defect/no defect
11ADR predictionClassificationAge, dose, kidney function → ADR yes/no
12Therapeutic response predictionClassificationPatient markers → responder/non-responder
13Hospital readmission risk predictionClassificationAge, medicines, prior admissions → readmitted yes/no
14Dose requirement prediction (PK data)RegressionWeight, age, kidney function → dose
15Diabetes risk predictionClassificationGlucose, BMI, age → diabetes yes/no
16Antibiotic treatment success predictionClassificationPatient factors → success/failure
17ICU stay duration predictionRegressionSeverity scores, age → days
18Medication adherence analysis ClassificationDemographics, regimen complexity → adherent yes/no
19Disease severity classificationClassificationSymptoms, labs → mild/moderate/severe

Presentation Tips

1One question per slide — start with the problem in a single sentence.
2Show the data first — a small table or plot before any equations.
3Show one worked calculation — walk the audience through one prediction by hand.
4Metrics with meaning — never say just "accuracy 75%"; add "so 3 of 4 true cases were caught."
5Limitations slide is mandatory — honest weaknesses earn more marks than hidden ones.
6Label toy data every time — say "illustrative toy dataset" on each data slide.
7End with the pharmacy message — one sentence on why a pharmacist should care.
8Keep it short — 8–10 slides for a 10-minute talk; rehearse once.

Sample Project Report Outline and Rubric

  • Report Outline (use these headings)
1Title and student/group name
2Problem definition (1–2 sentences)
3Dataset description (source, size, rows × columns)
4Predictors and outcome (named and justified)
5Preprocessing steps (what was cleaned and how)
6Model applied (regression or classification, with equation)
7Worked calculations (at least one prediction by hand)
8Performance metrics (correct metrics for the problem type)
9Interpretation in pharmaceutical/clinical context
  • 10 Limitations, potential biases, ethical considerations
  • 11 Conclusion and presentation summary
  • 12 References
  • Sample Marking Rubric (100 marks)
ComponentMarksWhat earns full marks
Problem definition10Clear, relevant, answerable question
Dataset selection & description10Suitable dataset, fully described, toy data labeled
Predictor/outcome identification10Correct variables, justified choice
Preprocessing10Missing values/errors handled, steps shown
Model application with workings20Correct model type, all arithmetic visible
Metrics & evaluation15Correct metrics, correctly calculated
Interpretation10Results explained in pharmacy/clinical language
Limitations, bias, ethics10Honest, specific, complete
Presentation & report quality5Clear, well-organized, correctly labeled

Pharmacy Relevance

  • Formulation development: Regression projects (dissolution, hardness, stability) mirror real industrial R&D problems.
  • Clinical pharmacy: Classification projects (ADR, readmission, adherence) mirror hospital decision-support problems.
  • Skill building: The project teaches the full data-to-decision pipeline employers expect from modern pharmacists.
  • No coding needed: Every step in this chapter is done with hand arithmetic, so any student can complete it.

India Context

•Students can use publicly shared teaching datasets or teacher-approved toy datasets; real hospital data needs ethics approval and patient consent, which is beyond a classroom project.
•Project topics like ADR prediction and adherence analysis connect directly to India's pharmacovigilance programme and public-health needs.
• Key PointsPresenting in simple English with hand-worked steps makes the project accessible to students from diverse schooling backgrounds across India.
1The project has nine steps: problem → dataset → predictors/outcome → preprocessing → model → metrics → interpretation → limitations/ethics → presentation.
2Regression = number outcomes (RMSE, R2); classification = category outcomes (accuracy, sensitivity, specificity, precision).
3Project A (dissolution): y = 42.4 + 7.89x, RMSE ≈ 0.8%, R2 ≈ 0.997 on toy data.
4Project B (ADR): log-odds model, odds ratio 9 for age > 60, all metrics 75% on toy data.
5Project C (diabetes): preprocessing (imputation, normalization) + two-predictor log-odds scoring, all hand-calculated.
6Always label toy datasets as illustrative; never present toy results as real findings.
7The limitations/ethics discussion is a scored, mandatory part of the project.
8Present with 8–10 slides: data, one worked calculation, metrics with meaning, limitations, pharmacy message.
  • Common Confusions
ConfusionClarification
"I must write computer code for this project"No — this course's project is concepts plus hand-worked arithmetic; no programming is required.
"Toy data results prove the medicine works"No — toy data demonstrates the method only. Real conclusions need real data and ethics approval.
"More predictors always make a better model"No — too many predictors on tiny data cause overfitting.
"I should hide my model's mistakes"No — limitations and errors are scored sections; honesty earns marks.
"Regression and classification metrics are interchangeable"No — RMSE/R2 for numbers; accuracy/sensitivity/specificity/precision for categories.
  • Common Mistakes
1Choosing the wrong model type (regression for a yes/no outcome).
2Evaluating on the same data used for training without saying so.
3Forgetting to label the dataset as toy/illustrative.
4Skipping preprocessing documentation ("the data was already clean" with no check shown).
5Presenting metrics without interpretation in pharmacy language.
6 MnemonicsOmitting the limitations, bias, and ethics section.
•Nine steps — "Please Do Pick Pretty Models, Measure, Interpret, Limit, Present": Problem, Dataset, Pick (predictors/outcome), Preprocess, Model, Metrics, Interpret, Limitations, Present.
•Regression vs classification — "Numbers Need Regression, Groups Get Classification."
•Metrics — "All Sick People Should Take medicine": Accuracy, Sensitivity, Precision, Specificity.
  • Exam Summary
  • Chapter 11 is the complete guide to the guided supervised learning project. The nine steps are: define the problem, select a dataset, identify predictors and outcome, preprocess, apply linear regression (number outcomes) or logistic regression (yes/no outcomes), evaluate with the correct metrics, interpret in pharmacy/clinical language, discuss limitations/bias/ethics, and present findings. Three fully worked toy projects are given: (A) dissolution rate prediction — line y = 42.4 + 7.89x, RMSE ≈ 0.8%, R2 ≈ 0.997; (B) ADR prediction — log-odds model with odds ratio 9 for age above 60, accuracy/sensitivity/specificity/precision all 75%; (C) diabetes risk prediction — mean imputation, min-max normalization, and two-predictor log-odds scoring, all by hand. Nineteen syllabus-suggested topics are mapped to problem types, with presentation tips and a 100-mark rubric. Every toy dataset is labeled illustrative; toy results demonstrate method, never real findings.
  • One-Minute Revision
  • Nine steps: problem, dataset, predictors/outcome, preprocessing, model, metrics, interpretation, limitations/ethics, presentation; numbers → linear regression (RMSE, R2); yes/no → logistic regression (confusion matrix metrics); three worked toy projects (dissolution, ADR, diabetes) with all arithmetic shown; label toy data always; limitations slide mandatory; no coding required.
  • Short-Answer Questions
1List the nine steps of the guided supervised learning project in order.
2How do you decide between linear regression and logistic regression for a project?
3What is data preprocessing? Name two preprocessing tasks with examples.
4Show how to normalize the value 126 when min = 90 and max = 155.
5In Project A, what does the slope 7.89 mean in pharmacy words?
6In Project B, what does an odds ratio of 9 mean?
7Why must toy datasets be labeled as illustrative?
8Name three metrics for classification and three for regression.
9What is mean imputation?
  • 10 List any four headings of the sample project report outline.
  • Long-Answer Questions
1Describe the nine steps of the guided supervised learning project, explaining what is produced at each step.
2Work through Project A (dissolution rate prediction): build the regression line from the toy dataset, calculate RMSE and R2, and interpret the results in formulation language.
3Work through Project B (ADR prediction): derive the log-odds model, compute the odds ratio, build the confusion matrix, calculate all four metrics, and interpret each.
4Explain data preprocessing with the examples from Project C: missing-value imputation and min-max normalization, showing all calculations.
5 MCQsDiscuss limitations, potential biases, and ethical considerations that must appear in a student project report, using examples from the three worked projects.
1The first step of the guided project is:
  • a) Applying the model b) Defining the problem c) Calculating metrics d) Presenting findings

1 Predicting tablet hardness (a number) from compression force needs:

  • a) Logistic regression b) Linear regression c) A confusion matrix d) Normalization only

1 In Project A, RMSE ≈ 0.8% means:

  • a) The model explains 0.8% of variation b) Predictions miss by about 0.8 percentage points on average c) Accuracy is 0.8% d) 0.8% of batches failed

1 Mean imputation means:

  • a) Deleting the whole dataset b) Filling a missing value with the column mean c) Taking the average of all metrics d) Normalizing to 0–1

1 Which section is mandatory in the project report?

  • a) Only the metrics b) Limitations, bias, and ethical considerations c) Only the prediction equation d) None of these
  • Answer Key: 1-b, 2-b, 3-b, 4-b, 5-b
  • Viva Questions
1What are the nine project steps?
2When do you use linear regression vs logistic regression?
3What does R2 tell you?
4How do you handle a missing value in your dataset?
5What is an odds ratio?
6Why is the limitations section important?
7How would you present your project in 10 minutes?
  • Application-Based Questions
1You want to predict whether a tablet batch will pass QC (pass/fail) from hardness and friability readings. Identify the problem type, model, predictors, outcome, and suitable metrics.
2Given a toy dataset of 5 patients (age vs drug clearance), build a linear regression model by hand and predict clearance for a 45-year-old.
3 ReferencesYour diabetes toy model scores 100% accuracy. Your teacher asks: "Is this model ready for a real clinic?" Write a five-point answer covering limitations, bias, and ethics.
•Aggarwal & Reddy, Healthcare Data Analytics
•Bonate, Pharmacokinetic–Pharmacodynamic Modeling and Simulation
•Campbell, Machin & Walters, Medical Statistics: A Textbook for the Health Sciences
•Schmidt & Derendorf, Applied Pharmacometrics
•Steyerberg, Clinical Prediction Models: A Practical Approach to Development, Validation, and Updating
•Strom, Kimmel & Hennessy, Pharmacoepidemiology

Download notes

Save the PDF to study offline. If it opens in your browser instead, use the viewer’s download button.

For education and exam preparation only, not medical advice or current regulatory guidance.

Other units in this subject

Back to BP703T notes