ITM 451

Business Data Analytics

TU BITM · Semester 8 · BITM curriculum and programme regulation

Requirement
required
Credits
3
Practice sets
5 sets

Practice sets and model questions

5 complete syllabus-aligned practice examinations with model-style questions and step-by-step solutions. Independently prepared by Paper Khoj, not issued by TU.

practice sets loaded.

Practice Set 1

Report problem

PAPER KHOJ

Practice Examination — Set 1

For BITM · Semester 8

Based on the prescribed TU Faculty of Management syllabus and examination structure

Independently prepared by Paper Khoj. This is not an official Tribhuvan University or Dean's Office question paper.

Course: ITM 451 · Business Data Analytics

Level: Bachelor of Information Technology Management (BITM) · Semester 8

Full Marks: 60

Time: 3 hrs.

Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.

Group 'A'

Brief Answer Questions. Attempt all questions.

[5 × 2 = 10]
  1. [2]

    Differentiate between Descriptive Analytics and Prescriptive Analytics.

    View model answerHide model answer

    Descriptive vs. Prescriptive Analytics:

    • Descriptive Analytics (“What happened?”): Summarizes historical raw data into understandable business reports, dashboards, and aggregations (e.g. monthly sales revenue, total website visitors).
    • Prescriptive Analytics (“What should we do?”): Leverages advanced optimization algorithms, simulation models, and business rules to recommend the single best actionable course of action to capitalize on future opportunities or mitigate risk (e.g. dynamic airline ticket pricing, automated supply chain route optimization).
  2. [2]

    Write the formulas for Min-Max Normalization and Z-Score Standardization.

    View model answerHide model answer

    Feature Scaling Formulas:

    • Min-Max Normalization (Rescaling to [0,1][0, 1]):
      xnorm=x−xmin⁡xmax⁡−xmin⁡x_{\text{norm}} = \frac{x - x_{\min}}{x_{\max} - x_{\min}}
    • Z-Score Standardization (Zero mean, unit variance):
      z=x−μσz = \frac{x - \mu}{\sigma}
      Where μ\mu is the feature mean and σ\sigma is the standard deviation.
  3. [2]

    Define Precision and Recall in binary classification.

    View model answerHide model answer

    Precision vs. Recall:

    • Precision: Proportion of positive identifications that were actually correct.
      Precision=TPTP+FP\text{Precision} = \frac{TP}{TP + FP}
    • Recall (Sensitivity): Proportion of actual positives that were identified correctly.
      Recall=TPTP+FN\text{Recall} = \frac{TP}{TP + FN}
      Where TP=True PositivesTP = \text{True Positives}, FP=False PositivesFP = \text{False Positives}, FN=False NegativesFN = \text{False Negatives}.
  4. [2]

    What does an Association Rule Lift value of Lift(A→B)=2.5\text{Lift}(A \rightarrow B) = 2.5 indicate?

    View model answerHide model answer

    Association Rule Lift:

    Lift(A→B)=P(A∩B)P(A)×P(B)=Confidence(A→B)Support(B)\text{Lift}(A \rightarrow B) = \frac{P(A \cap B)}{P(A) \times P(B)} = \frac{\text{Confidence}(A \rightarrow B)}{\text{Support}(B)}

    A Lift of 2.5 indicates that customers who purchase item AA are 2.5 times more likely to purchase item BB than a random customer, demonstrating a strong, positive associative relationship between items AA and BB.

  5. [2]

    Define the RFM model in customer segmentation.

    View model answerHide model answer

    RFM Model:

    A behavioral customer segmentation framework based on three quantitative transaction metrics:

    1. Recency (RR): How recently did the customer make a purchase?
    2. Frequency (FF): How often do they purchase over a specified period?
    3. Monetary Value (MM): How much total money have they spent? Used to identify high-value VIP customers, churning loyalists, and low-engagement shoppers.

Group 'B'

Short Answer Questions. Attempt any six questions.

[6 × 5 = 30]
  1. [5]

    Explain the Interquartile Range (IQR) method for outlier detection. A dataset of e-commerce purchase amounts is: [50, 60, 70, 80, 90, 100, 110, 120, 130, 450]. Calculate Q1, Q3, IQR, lower bound, upper bound, and identify any outliers.

    View model answerHide model answer

    IQR Outlier Detection Method:

    The Interquartile Range measures the statistical spread of the middle 50% of sorted data:

    IQR=Q3−Q1\text{IQR} = Q_3 - Q_1

    • Lower Bound=Q1−1.5×IQR\text{Lower Bound} = Q_1 - 1.5 \times \text{IQR}
    • Upper Bound=Q3+1.5×IQR\text{Upper Bound} = Q_3 + 1.5 \times \text{IQR} Any data point falling outside [Lower Bound,Upper Bound][\text{Lower Bound}, \text{Upper Bound}] is flagged as an outlier.

    Numerical Calculation (n=10n = 10 sorted values):

    [50,60,70,80,90,100,110,120,130,450][50, 60, 70, 80, 90, 100, 110, 120, 130, 450]
    • Lower half: [50,60,70,80,90]  ⟹  Q1=70[50, 60, 70, 80, 90] \implies \mathbf{Q_1 = 70}
    • Upper half: [100,110,120,130,450]  ⟹  Q3=120[100, 110, 120, 130, 450] \implies \mathbf{Q_3 = 120}
    • IQR=120−70=50\mathbf{\text{IQR}} = 120 - 70 = \mathbf{50}

    Bounds:

    • Lower Bound=70−(1.5×50)=70−75=−5\text{Lower Bound} = 70 - (1.5 \times 50) = 70 - 75 = \mathbf{-5}
    • Upper Bound=120+(1.5×50)=120+75=195\text{Upper Bound} = 120 + (1.5 \times 50) = 120 + 75 = \mathbf{195}

    Identification:

    • The purchase value 450 exceeds the upper bound of 195 (450>195450 > 195).
    • Conclusion: 450 is a statistically verified extreme outlier.
  2. [5]

    A machine learning fraud detection model on a test set of 1,000 banking transactions produced the following confusion matrix:

    • True Positives (TP) = 80
    • False Positives (FP) = 20
    • True Negatives (TN) = 880
    • False Negatives (FN) = 20 Calculate: (a) Accuracy, (b) Precision, (c) Recall (Sensitivity), (d) Specificity, and (e) F1-Score.
    View model answerHide model answer

    Classification Metrics Calculation:

    (a) Accuracy:

    Accuracy=TP+TNTP+TN+FP+FN=80+8801,000=9601,000=96.0%\text{Accuracy} = \frac{TP + TN}{TP + TN + FP + FN} = \frac{80 + 880}{1,000} = \frac{960}{1,000} = \mathbf{96.0\%}

    (b) Precision:

    Precision=TPTP+FP=8080+20=80100=80.0%\text{Precision} = \frac{TP}{TP + FP} = \frac{80}{80 + 20} = \frac{80}{100} = \mathbf{80.0\%}

    (c) Recall (Sensitivity):

    Recall=TPTP+FN=8080+20=80100=80.0%\text{Recall} = \frac{TP}{TP + FN} = \frac{80}{80 + 20} = \frac{80}{100} = \mathbf{80.0\%}

    (d) Specificity:

    Specificity=TNTN+FP=880880+20=880900=97.78%\text{Specificity} = \frac{TN}{TN + FP} = \frac{880}{880 + 20} = \frac{880}{900} = \mathbf{97.78\%}

    (e) F1-Score:

    F1=2×Precision×RecallPrecision+Recall=2×0.80×0.800.80+0.80=1.281.60=0.80 (or 80.0%)\text{F1} = 2 \times \frac{\text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}} = 2 \times \frac{0.80 \times 0.80}{0.80 + 0.80} = \frac{1.28}{1.60} = \mathbf{0.80 \text{ (or 80.0\%)}}

  3. [5]

    Explain the K-Means clustering algorithm. How do the Elbow Method and Silhouette Score determine the optimal number of clusters (kk)?

    View model answerHide model answer

    K-Means Clustering Algorithm:

    An iterative, partition-based unsupervised learning algorithm that divides nn observations into kk distinct, non-overlapping clusters:

    1. Initialize kk random cluster centroids.
    2. Assignment Step: Assign each data point to its nearest centroid using Euclidean distance: d(x,c)=∑(xi−ci)2d(x, c) = \sqrt{\sum (x_i - c_i)^2}.
    3. Update Step: Recalculate each centroid as the arithmetic mean of all data points assigned to that cluster.
    4. Repeat steps 2 and 3 until centroids converge (no reassignments).

    Determining Optimal kk:

    • Elbow Method: Plots Within-Cluster Sum of Squares (WCSS / Inertia) against increasing values of kk. As kk increases, WCSS decreases. The optimal kk is located at the ‘elbow point’ where the rate of decrease abruptly flattens.
    • Silhouette Analysis: Measures how similar an object is to its own cluster compared to neighboring clusters (ranging from -1 to +1). The kk value with the highest average silhouette score represents optimal cluster cohesion and separation.
  4. [5]

    Discuss the components of a Time Series. Contrast an Additive Model with a Multiplicative Model in sales forecasting.

    View model answerHide model answer

    Four Components of a Time Series:

    1. Trend (TT): Long-term upward or downward movement in the series over several years (e.g. secular growth of smartphone transactions).
    2. Seasonality (SS): Repetitive, periodic fluctuations that recur at fixed calendar intervals (e.g. Dashain festival retail spikes every autumn).
    3. Cyclical Fluctuations (CC): Medium-to-long term swings corresponding to broader macroeconomic business cycles (expansion, recession).
    4. Irregular / Noise (II): Unpredictable, random shocks caused by natural disasters, strikes, or political events.

    Additive vs. Multiplicative Decomposition:

    • Additive Model: Yt=Tt+St+Ct+ItY_t = T_t + S_t + C_t + I_t. Used when the magnitude of seasonal variations remains constant regardless of the baseline level of the trend.
    • Multiplicative Model: Yt=Tt×St×Ct×ItY_t = T_t \times S_t \times C_t \times I_t. Used when seasonal swings increase proportionally in magnitude as the underlying trend grows.
  5. [5]

    Explain the role of Apache Spark in modern Big Data analytics. How does its Resilient Distributed Dataset (RDD) and in-memory processing outperform traditional MapReduce?

    View model answerHide model answer

    Role of Apache Spark in Big Data Analytics:

    Apache Spark is an open-source, distributed multi-language engine for executing data engineering, machine learning pipelines, and SQL queries on large-scale datasets.

    Advantages over Traditional Hadoop MapReduce:

    1. In-Memory Processing: Spark holds intermediate processing states and iterations in distributed RAM across cluster nodes, whereas MapReduce strictly writes intermediate results to physical disk (HDFS) after every map/reduce phase. Spark executes up to 100x faster for iterative machine learning algorithms.
    2. Resilient Distributed Datasets (RDDs): Fault-tolerant collections of operational elements partitioned across cluster nodes. If a worker node crashes, Spark reconstructs lost partitions using the RDD lineage graph (DAG) without needing full data checkpoint reloads.
    3. Unified API Stack: Integrates Spark SQL, Spark Streaming, MLlib (machine learning), and GraphX within a single cohesive programming model.
  6. [5]

    Discuss data privacy, GDPR, and ethical considerations in business data analytics. How should analytics teams handle user tracking and algorithmic bias?

    View model answerHide model answer

    Ethical Principles & GDPR Compliance:

    1. Consent & Purpose Limitation: Explicit, opt-in user consent must be obtained before tracking consumer behaviors. Collected data must strictly be used for the declared legitimate business purpose.
    2. Data Minimization & Anonymization: Only store attributes essential for the analytical model. Strip Personally Identifiable Information (PII) using hashing or k-anonymity before training machine learning models.
    3. Mitigating Algorithmic Bias: Training data frequently mirrors historical human prejudices (e.g. loan approval models rejecting marginalized zip codes). Data science teams must conduct fairness audits, disparate impact assessments, and remove proxy variables that reinforce discrimination.

Group 'C'

Comprehensive Answer Questions. Attempt all questions.

[2 × 10 = 20]
  1. [10]

    A telecom provider in Nepal experiences an annual customer churn rate of 25%. The company wants to build a predictive churn analytics pipeline. (a) Design the end-to-end data analytics workflow (ingestion, cleaning, feature engineering, modeling, and evaluation). (b) Specify five relevant predictive features extracted from call detail records and app usage. (c) Compare Logistic Regression vs. Random Forest for churn prediction. (d) How should the marketing team translate model probabilities into targeted retention campaigns?

    View model answerHide model answer

    (a) End-to-End Analytics Workflow:

    1. Data Ingestion: Ingest raw logs from CDR servers, billing databases, customer service CRM tickets, and digital recharge portals into a cloud data lake.
    2. Data Cleaning & Wrangling: Handle missing values (e.g. median imputation for monthly recharge), drop duplicate records, and remove test accounts.
    3. Feature Engineering: Aggregate transactional behaviors over 30/60/90-day rolling windows; encode categorical data via One-Hot encoding; scale continuous features via standardization.
    4. Model Training & Cross-Validation: Split data into 70% Train, 15% Validation, and 15% Test. Handle class imbalance (25% churn vs 75% non-churn) using SMOTE or class-weight penalization.
    5. Model Evaluation: Evaluate using Precision-Recall Area Under Curve (PR-AUC) and F1-Score rather than raw accuracy.

    (b) Five Predictive Features:

    1. Recharge Frequency Drop (FΔF_{\Delta}): Ratio of recharges in the last 30 days compared to the trailing 90-day average.
    2. Customer Service Grievance Volume: Number of unresolved network complaints lodged in the past 14 days.
    3. Data Consumption Trend: Percentage decline in daily 4G data volume (MB) over the last month.
    4. Tenure (Months): Duration since SIM card registration.
    5. Competitor Cross-Calling Percentage: Proportion of outbound calls made to competing mobile networks.

    (c) Logistic Regression vs. Random Forest:

    • Logistic Regression: Linear, highly interpretable; produces well-calibrated probabilities and explicit feature odds ratios (eβe^\beta). Struggles to capture complex non-linear feature interactions.
    • Random Forest: Ensemble of decision trees; naturally captures non-linear relationships and feature interactions without requiring manual polynomial transformations. Less prone to overfitting than single trees. Provides explicit Gini feature importance.

    (d) Translating Churn Probabilities to Business Action:

    • Set classification threshold based on cost-benefit matrix: cost of retention offer (e.g. free data pack worth NPR 100) vs loss of customer lifetime value (CLV=NPR 3,500CLV = \text{NPR } 3,500).
    • Segment high-risk churners (P(churn)>0.70P(\text{churn}) > 0.70) into automated CRM workflows: send personalized SMS bonus offers, automated discount vouchers on digital recharge apps, and prioritize VIP customer care outreach.
  2. [10]

    Market Basket Analysis is vital for supermarket retail layout and e-commerce cross-selling. A database contains 5 transactions:

    • T1: {Milk, Bread, Butter}
    • T2: {Bread, Butter}
    • T3: {Milk, Bread}
    • T4: {Milk, Butter, Eggs}
    • T5: {Milk, Bread, Butter, Eggs}

    (a) Given Minimum Support = 40% (2 transactions) and Minimum Confidence = 60%, find all frequent itemsets using the Apriori algorithm. (b) Generate strong association rules involving {Bread, Butter} and {Milk}. (c) Calculate Support, Confidence, and Lift for the rule: Bread, Butter→Milk\text{Bread, Butter} \rightarrow \text{Milk}. Interpret whether supermarket managers should display them together.

    View model answerHide model answer

    Step 1: Minimum Support Threshold

    Total transactions N=5N = 5.

    Min Support Count=5×40%=2 transactions\text{Min Support Count} = 5 \times 40\% = 2 \text{ transactions}


    Step 2: Apriori Frequent Itemset Generation

    Candidate 1-Itemsets (C1C_1):

    • {Milk}: 4 (80%) ≥2\ge 2 (Frequent L1L_1)
    • {Bread}: 4 (80%) ≥2\ge 2 (Frequent L1L_1)
    • {Butter}: 4 (80%) ≥2\ge 2 (Frequent L1L_1)
    • {Eggs}: 2 (40%) ≥2\ge 2 (Frequent L1L_1)

    Candidate 2-Itemsets (C2C_2):

    • {Milk, Bread}: T1, T3, T5   ⟹  Count 3≥2\implies \text{Count } 3 \ge 2 (Frequent L2L_2)
    • {Milk, Butter}: T1, T4, T5   ⟹  Count 3≥2\implies \text{Count } 3 \ge 2 (Frequent L2L_2)
    • {Milk, Eggs}: T4, T5   ⟹  Count 2≥2\implies \text{Count } 2 \ge 2 (Frequent L2L_2)
    • {Bread, Butter}: T1, T2, T5   ⟹  Count 3≥2\implies \text{Count } 3 \ge 2 (Frequent L2L_2)
    • {Bread, Eggs}: T5   ⟹  Count 1<2\implies \text{Count } 1 < 2 (Pruned)
    • {Butter, Eggs}: T4, T5   ⟹  Count 2≥2\implies \text{Count } 2 \ge 2 (Frequent L2L_2)

    Candidate 3-Itemsets (C3C_3):

    • {Milk, Bread, Butter}: T1, T5   ⟹  Count 2≥2\implies \text{Count } 2 \ge 2 (Frequent L3L_3)
    • {Milk, Butter, Eggs}: T4, T5   ⟹  Count 2≥2\implies \text{Count } 2 \ge 2 (Frequent L3L_3)

    Step 3: Analysis of Rule Bread, Butter→Milk\text{Bread, Butter} \rightarrow \text{Milk}

    • Support count of {Bread, Butter, Milk} = 2
    • Support count of {Bread, Butter} = 3
    • Support count of {Milk} = 4

    Metrics:

    Support=Count(Bread, Butter, Milk)N=25=40%\text{Support} = \frac{\text{Count}(\text{Bread, Butter, Milk})}{N} = \frac{2}{5} = \mathbf{40\%}

    Confidence=Count(Bread, Butter, Milk)Count(Bread, Butter)=23=66.67%\text{Confidence} = \frac{\text{Count}(\text{Bread, Butter, Milk})}{\text{Count}(\text{Bread, Butter})} = \frac{2}{3} = \mathbf{66.67\%}

    Since Confidence (66.67%66.67\%) exceeds Minimum Confidence (60%60\%), this is a valid strong association rule.

    Lift=ConfidenceSupport(Milk)=2/34/5=0.66670.80=0.833\text{Lift} = \frac{\text{Confidence}}{\text{Support}(\text{Milk})} = \frac{2/3}{4/5} = \frac{0.6667}{0.80} = \mathbf{0.833}

    Step 4: Managerial Interpretation & Retail Merchandising Decision:

    • Lift Analysis: The Lift value is 0.833<1.00.833 < 1.0.
    • A Lift less than 1 indicates that purchasing Bread and Butter actually has a negative associative correlation with Milk compared to the baseline purchase rate of Milk (Milk is bought by 80% of all shoppers, but only by 66.7% of Bread+Butter buyers).
    • Retail Decision: Supermarket managers should NOT place Milk immediately next to Bread and Butter. Since Milk is a universal destination staple, it should be placed at the far back of the supermarket so that shoppers walk through aisles of high-margin impulse items to reach it.