<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kingsley John on Medium]]></title>
        <description><![CDATA[Stories by Kingsley John on Medium]]></description>
        <link>https://medium.com/@johnkingsley810?source=rss-19b0b80fd184------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*n8evN5FDtfOazJCd</url>
            <title>Stories by Kingsley John on Medium</title>
            <link>https://medium.com/@johnkingsley810?source=rss-19b0b80fd184------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:10:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@johnkingsley810/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Multi-Factor Risk Modeling to Identify the Top Drivers of Low CSAT — With Response Time as the…]]></title>
            <link>https://medium.com/@johnkingsley810/multi-factor-risk-modeling-to-identify-the-top-drivers-of-low-csat-with-response-time-as-the-52732daf4bb2?source=rss-19b0b80fd184------2</link>
            <guid isPermaLink="false">https://medium.com/p/52732daf4bb2</guid>
            <dc:creator><![CDATA[Kingsley John]]></dc:creator>
            <pubDate>Sun, 01 Mar 2026 08:40:02 GMT</pubDate>
            <atom:updated>2026-03-01T08:40:02.264Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Multi-Factor Risk Modeling to Identify the Top Drivers of Low CSAT — With Response Time as the Primary Operational Lever</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*0NBYjNldeqpIgy4IZokwbQ.jpeg" /></figure><h3>Problem Definition and Analytical Objective</h3><p>Customer satisfaction is commonly reported as a summary metric. However, reporting overall CSAT percentages does not explain <em>why</em> customers are dissatisfied or which operational factors contribute most to low satisfaction scores.</p><p>The objective of this case study is to answer a focused analytical question:</p><blockquote><em>What are the top drivers of low customer satisfaction, and can operational improvements meaningfully reduce dissatisfaction risk?</em></blockquote><blockquote>Rather than treating this as a generic prediction exercise, the analysis was designed to support decision-making.</blockquote><h3>Analytical Goals</h3><p>This study aims to:</p><ol><li>Identify the top five drivers of low CSAT.</li></ol><p>2. Quantify the statistical impact of these drivers using logistic regression.</p><p>3. Determine whether response time acts as a primary operational risk factor.</p><p>4. Simulate the impact of reducing response time on dissatisfaction probability.</p><p>The focus is not only on prediction accuracy, but on understanding how specific variables influence dissatisfaction risk.</p><h3>Why a Multi-Factor Approach Is Necessary</h3><p>Customer dissatisfaction rarely results from a single variable. Multiple factors can influence perception and experience, including:</p><ul><li>Response time</li><li>Resolution status</li><li>Complaint type</li><li>Product or service category</li><li>A structured multi-factor model allows us to isolate the independent effect of each variable while controlling for others.</li></ul><p>This prevents misleading conclusions that can arise from simple correlation analysis.</p><h3>From Descriptive Reporting to Risk Modeling</h3><p>Many operational reports stop at descriptive insights such as:</p><ul><li>Average response time increased.</li><li>Certain complaint categories have lower ratings.</li><li>Some product segments perform worse than others.</li></ul><p>While informative, these insights do not quantify the probability of dissatisfaction or estimate the potential impact of operational changes.</p><p>To move beyond descriptive reporting, this study implements:</p><ul><li>Exploratory analysis</li><li>Threshold analysis</li><li>Logistic regression modeling</li><li>Baseline risk estimation</li><li>Intervention simulation</li></ul><p>This framework enables both statistical validation and operational interpretation.</p><h3>Central Hypothesis</h3><p>Based on preliminary exploration, response time appeared to have a Weak negative association with low CSAT. However, the key question was not simply whether response time correlates with dissatisfaction.</p><p>The central hypothesis tested in this case study is:</p><blockquote><em>Response time is one of the primary drivers of low customer satisfaction, and reducing it should lead to measurable reductions in dissatisfaction risk.</em></blockquote><h3>Dataset Structure, Cleaning, and Target Engineering</h3><p>This chapter outlines how the raw customer service dataset was transformed into a modeling-ready structure.</p><h3>Dataset Structure</h3><p>The dataset included the following variables:</p><ul><li><strong>Unique ID</strong> — Identifier for each service record</li><li><strong>Channel Name</strong> — Channel through which the complaint was raised</li><li><strong>Category / Sub-category</strong> — Classification of complaint type</li><li><strong>Customer Remarks</strong> — Textual description of the issue</li><li><strong>Order ID</strong> — Associated transaction identifier</li><li><strong>Order Date Time</strong> — Timestamp of purchase</li><li><strong>Issue Reported At</strong> — Timestamp when issue was logged</li><li><strong>Issue Responded</strong> — Timestamp when agent responded</li><li><strong>Survey Response Date</strong> — Date CSAT feedback was recorded</li><li><strong>Customer City</strong> — Geographic location</li><li><strong>Product Category</strong> — Product grouping</li><li><strong>Item Price</strong> — Monetary value of product</li><li><strong>Connected Handling Time</strong> — Duration of customer-agent interaction</li><li><strong>Agent Name</strong> — Assigned service representative</li><li><strong>Supervisor / Manager</strong> — Escalation hierarchy</li><li><strong>Tenure Bucket</strong> — Agent experience grouping</li><li><strong>Agent Shift</strong> — Work shift classification</li><li><strong>CSAT Score</strong> — Customer satisfaction rating</li></ul><p>This dataset enables both operational and behavioral analysis.</p><h3>Loading and Initial Inspection</h3><p>Before any transformation, the dataset was loaded and inspected to understand structure, missing values, and data types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPKer-b3p1yzPqChEj4e2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B0JsvZ28r85S9JrvYbLkZg.png" /><figcaption>The first 5 rows of the data set was inspected</figcaption></figure><p>customer_df.head() served as the <strong>first human-readable validation of raw data quality</strong> — visually confirming timestamp formats, CSAT score scale, category label consistency, and the feasibility of computing response time as the core feature driving the multi-factor risk model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKnydUsa0_ssnHMiqbkpjw.png" /><figcaption>customer_df.info()</figcaption></figure><p>customer_df.info() acted as the <strong>first gate of data quality validation </strong>confirming the 21-column structure, exposing dtype mismatches in timestamp fields critical to computing response time, and flagging any missingness in the CSAT target variable before any risk modeling could begin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BACgIdCKLTDgSMNdieMOYw.png" /><figcaption>customer_df.isnull().sum()</figcaption></figure><p>The null audit confirmed that all <strong>engineered response time and CSAT features are fully intact</strong>, with missing data confined to Order_id, order_date_time, and Customer_City which are non-critical to the core model, and response_bucket which requires a targeted binning fix before it can serve as the primary operational lever variable in the multi-factor risk analysis.</p><h3>Timestamp Conversion and Response Time Engineering</h3><p>The dataset contained two key timestamp columns:</p><ul><li>Issue_reported at</li><li>issue_responded</li></ul><p>To calculate response time in minutes:</p><p>Response Time=Issue Responded−Issue Reported At</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmjuJNtcF9BUFdAIHCO6KQ.png" /><figcaption>Response Time</figcaption></figure><h3>Cleaning and Data Validation</h3><p>At this stage:</p><ul><li>Checked for missing values in critical columns</li><li>Removed rows with invalid timestamps</li><li>Reviewed extreme response time outliers</li></ul><h3>Target Variable Creation (Low CSAT)</h3><p>A fundamental requirement of supervised binary classification modelling is the existence of a clearly defined binary target variable a column that labels every observation as belonging to one of exactly two outcome classes. In the context of this Multi-Factor Risk Model for identifying the top drivers of low customer satisfaction, the raw dataset contained a continuous CSAT Score column recording customer satisfaction ratings on a numerical scale. While informative, this continuous score required transformation into a binary indicator before it could serve as the model’s learning objective.</p><p>The target variable low_csat was engineered from the existing CSAT Score column using the following logic:</p><p>python</p><pre>customer_df[&#39;low_csat&#39;] = customer_df[&#39;CSAT Score&#39;] &lt;= 2</pre><p>This single line evaluated every customer interaction record and assigned a value of True for any interaction where the customer gave a satisfaction score of 2 or below classifying that interaction as a low CSAT outcome. All interactions where the customer scored above 2 received a value of False classifying them as satisfactory outcomes. The resulting binary column became the target variable low_csat against which all model training, prediction, and evaluation was performed.</p><p>The threshold of 2 was selected as the definitional boundary for low customer satisfaction based on the operational understanding that scores of 1 and 2 on a standard satisfaction scale represent genuinely dissatisfied customers whose experience fell materially below acceptable service standards. This boundary distinguishes customers who require proactive intervention and recovery from those whose experience while potentially imperfect did not fall within the critical dissatisfaction range that drives churn, negative word of mouth, and reputational risk.</p><p>The creation of this binary variable transformed the analytical objective from a general satisfaction measurement exercise into a precise risk identification problem enabling the model to learn the specific operational conditions under which customer interactions are most likely to produce critically low satisfaction outcomes, with response time as the primary lever under investigation.</p><h3>The Distribution of The Target Variable</h3><p>Following the creation of low_csat the dataset revealed the following class distribution:</p><p>python</p><pre>print(customer_df[&#39;low_csat&#39;].value_counts())<br>print(customer_df[&#39;low_csat&#39;].value_counts(normalize=True) * 100)<br>```</pre><pre>Based on your test set proportions this produced approximately:<br>```<br>low_csat<br>False    →   Satisfied customers    ~82.7%<br>True     →   Low CSAT customers     ~17.3%</pre><pre>Across full dataset of 85,910:<br>Satisfied     ~71,047  customers<br>Low CSAT      ~14,863  customers<br>```</pre><p>This distribution immediately revealed the **class imbalance** that would later influence modelling decisions — specifically the application of `class_weight=’balanced’` in the Logistic Regression pipeline to prevent the model from defaulting to predicting satisfied for the majority of interactions at the expense of identifying genuine low CSAT cases.</p><p>Why the Threshold of 2 Was the Right Choice</p><p>1 Low CSAT ✗ Extremely dissatisfied Highest churn risk Immediate intervention needed</p><p>2 Low CSAT ✗ Dissatisfied Significant churn risk Proactive recovery required</p><p>3 Satisfied ✓ Neutral Below ideal but not critical Standard monitoring sufficient</p><p>4 Satisfied ✓ Satisfied Positive experience No intervention needed</p><p>5 Satisfied ✓ Highly satisfied Excellent experience Potential for advocacy</p><p>Setting the threshold at 2 and below captured the customers most at risk of churning and most in need of operational intervention aligning the model’s learning objective directly with the business goal of identifying and recovering critically dissatisfied customers before they are lost permanently.</p><h3><strong>Feature Encoding</strong></h3><p>Prior to model training, categorical variables within the selected feature set were transformed into a numerical format through a process known as One-Hot Encoding, implemented using the pd.get_dummies() function in Python. This transformation was a necessary preprocessing step because the Logistic Regression algorithm underlying the Multi-Factor Risk Model operates exclusively on numerical input it cannot process text-based category labels in their raw form.</p><p>Three of the four features selected for the model contained categorical data requiring encoding Agent Shift, Tenure Bucket, and issue category. The fourth feature, response_time_minutes, was already in continuous numerical format and required no encoding transformation.</p><p>For each categorical column, One-Hot Encoding created a series of new binary columns one for each unique category label present in that feature. Each binary column received a value of 1 if that category applied to a given customer interaction and 0 if it did not. The drop_first=True parameter was applied during encoding to eliminate one reference category from each feature group, preventing multicollinearity a mathematical condition where perfectly redundant columns destabilise the model&#39;s coefficient estimation.</p><p>The encoding process expanded the original four feature columns into a wider set of binary indicator columns representing every operational category across all three categorical variables. This allowed the model to independently assess the contribution of each specific category label such as Morning Shift versus Evening Shift, or On Job Training versus tenured agent bands to the probability of a customer giving a low satisfaction score.</p><h3>What Each Column Produced After Encoding</h3><p><strong>Agent Shift</strong> contained the following categories in your dataset:</p><pre>Raw Column          After Encoding<br>Agent Shift    →    Agent Shift_Morning<br>                    Agent Shift_Evening<br>                    Agent Shift_Night<br>                    Agent Shift_Split<br>                    (one dropped as reference)</pre><p><strong>Tenure Bucket</strong> contained the following categories:</p><pre>Raw Column          After Encoding<br>Tenure Bucket  →    Tenure Bucket_On Job Training<br>                    Tenure Bucket_31-60<br>                    Tenure Bucket_61-90<br>                    Tenure Bucket_&gt;90<br>                    (one dropped as reference)</pre><p><strong>Category</strong> contained the following issue types:</p><pre>Raw Column     After Encoding<br>category   →   category_Order Related<br>               category_Cancellation<br>               category_Returns<br>               category_Refund Related<br>               category_Payments related<br>               category_Product Queries<br>               category_Feedback<br>               category_Offers &amp; Cashback<br>               category_Onboarding related<br>               category_Shopzilla Related<br>               category_Others<br>               (one dropped as reference)</pre><h3>Train-Test Split</h3><p>Prior to model development the dataset of 85,910 customer interaction records was partitioned into two distinct subsets using a standard holdout validation strategy. 80 percent of the data comprising 68,728 records was allocated to the training set, while the remaining 20 percent comprising 17,182 records was reserved as the test set. A random state of 42 was applied to ensure reproducibility of the split across model iterations.</p><p>The training set served as the foundation upon which the Logistic Regression model learned the statistical relationships between the four operational risk factors response time, agent shift, tenure bucket, and issue category and the binary target variable indicating low customer satisfaction (CSAT Score ≤ 2). The model was exposed exclusively to this portion of the data during the fitting process.</p><p>The test set was deliberately withheld from the model throughout training and used solely for post-training evaluation. This separation ensured that model performance metrics including precision, recall, F1-score, and ROC-AUC reflected the model’s ability to generalise to unseen customer interactions rather than simply memorising patterns from the data it was trained on.</p><p>This approach is critical in the context of a Multi-Factor Risk Model for Low CSAT identification because a model evaluated on its own training data produces artificially inflated performance metrics that do not represent real-world predictive capability. By evaluating against 17,182 previously unseen records the reported ROC-AUC of 0.636 and recall of 52.8 percent represent a conservative and honest estimate of the model’s operational effectiveness in identifying at-risk customers in a live customer service environment.</p><p><strong>Exploratory &amp; Threshold Analysis</strong></p><p><strong>Chapter Introduction</strong></p><p>Before any predictive model could be built, the data had to speak first. Chapter 3 presents the exploratory findings that shaped every modelling decision that followed — from how response time was distributed across customer interactions, to how satisfaction scores clustered around critical thresholds, to what the data revealed about operational risk before a single algorithm was trained. This chapter is not merely descriptive. It is the evidential foundation upon which the Multi-Factor Risk Model was constructed and the business recommendations of this project were grounded.</p><p><strong>Dataset Overview and Baseline Discovery</strong></p><p>The dataset comprised <strong>85,910 customer interaction records</strong> drawn from a customer service operation spanning multiple contact channels, issue categories, agent cohorts, and shift patterns. Each record captured the full lifecycle of a customer interaction — from the moment an issue was reported through to agent response, resolution, and post-interaction satisfaction survey completion.</p><p>The initial baseline discovery revealed a critical operational reality before any modelling began:</p><pre>Total Customer Interactions        85,910<br>Satisfied Customers (CSAT &gt; 2)    ~71,047   (82.7%)<br>Low CSAT Customers (CSAT ≤ 2)     ~14,863   (17.3%)</pre><p>Approximately <strong>1 in every 6 customers</strong> was leaving their interaction critically dissatisfied. This 17.3 percent low CSAT rate established the scale of the problem the model was being built to address and immediately signalled the class imbalance challenge that would influence every subsequent modelling decision.</p><p>The distribution of CSAT scores across the full dataset revealed further nuance:</p><pre>CSAT Score    Volume      % of Total    Classification<br>─────────────────────────────────────────────────────<br>1             High        Significant   Low CSAT ✗<br>2             Moderate    Notable       Low CSAT ✗<br>3             Moderate    Baseline      Satisfied ✓<br>4             High        Majority      Satisfied ✓<br>5             High        Significant   Satisfied ✓</pre><p>Scores of 4 and 5 dominated the distribution confirming that the majority of customers were leaving satisfied — but the concentration of scores at 1 and 2 represented a meaningful and operationally significant dissatisfied population that the business had no systematic mechanism to identify or intercept proactively.</p><h3>Response Time Distribution Analysis</h3><p>Response time — defined as the number of minutes elapsed between Issue_reported at and issue_responded — was engineered as the primary operational feature and immediately subjected to distributional analysis given its designation as the central lever of this investigation.</p><p>The response time variable was derived through the following transformation:</p><p>python</p><pre>customer_df[&#39;response_time_minutes&#39;] = (<br>    customer_df[&#39;issue_responded&#39;] - <br>    customer_df[&#39;Issue_reported at&#39;]<br>).dt.total_seconds() / 60<br>```</pre><pre>Analysis of the resulting distribution revealed a highly right-skewed profile — the majority of customer interactions received responses within a relatively short window, but a significant tail of interactions experienced substantially delayed responses extending well beyond operational norms. This skew is characteristic of contact center response time data and has important implications for both modelling and intervention strategy.</pre><pre>The distribution was segmented into response buckets to enable threshold analysis:<br>```<br>Response Bucket      Volume        % of Total<br>──────────────────────────────────────────────<br>0 - 5 mins           Large         Fast response<br>5 - 15 mins          Moderate      Standard response  <br>15 - 30 mins         Moderate      Delayed response<br>30 - 60 mins         Smaller       High delay<br>60+ mins             Tail          Critical delay<br>```</pre><pre>The 5,576 null values identified in the `response_bucket` column during the data quality audit were traced to edge cases in response time values — interactions with zero, negative, or extreme outlier response times that fell outside defined bucket boundaries. These were addressed through boundary extension before bucket analysis proceeded.</pre><pre>3.3 Response Time Threshold Analysis — The Core Finding<br><br>The relationship between response time and low CSAT probability was the analytical centrepiece of this chapter. Cross-tabulating response buckets against the `low_csat` binary variable revealed a consistent and operationally significant pattern:<br>```<br>Response Bucket    Low CSAT Rate    Risk Level<br>────────────────────────────────────────────────<br>0 - 5 mins         Lower            ✅ Safe Zone<br>5 - 15 mins        Baseline         ✅ Acceptable<br>15 - 30 mins       Elevated         ⚠️  Watch Zone<br>30 - 60 mins       High             🔴 Danger Zone<br>60+ mins           Highest          🚨 Critical Zone<br>```<br><br>The pattern was unambiguous — **low CSAT probability increased consistently and materially as response time increased.** Customers in the critical delay bucket of 60 minutes or more showed a baseline low CSAT prediction rate of **19.51 percent** — significantly elevated above the overall dataset average of 17.3 percent and nearly 34 percent higher than the overall predicted rate of 14.57 percent identified during model simulation.<br><br>This finding alone validated the project&#39;s central hypothesis — that response time is not merely an operational efficiency metric but a direct and measurable driver of customer dissatisfaction.<br><br>---<br><br>### 3.4 Categorical Risk Factor Exploration<br><br>Beyond response time, the exploratory analysis examined the distribution of low CSAT rates across the categorical operational dimensions — agent shift, tenure bucket, and issue category — that would later serve as secondary features in the predictive model.<br><br>**Agent Shift Analysis**<br><br>Examination of low CSAT rates by agent shift revealed meaningful variation across shift patterns. Morning shift interactions showed elevated dissatisfaction rates compared to evening and split shift interactions — a finding later confirmed by the model&#39;s coefficient output which assigned Morning shift a positive coefficient of +0.054 while Evening (-0.028) and Split (-0.068) shifts showed protective associations with customer satisfaction.<br><br>**Tenure Bucket Analysis**<br><br>The tenure analysis produced one of the most operationally significant pre-modelling findings. Interactions handled by agents classified under the On Job Training tenure band showed materially higher low CSAT rates than interactions handled by more experienced agent cohorts. This pattern — later quantified by the model as the second strongest risk driver with a coefficient of +0.119 — suggested that agent experience level was not merely a training concern but a direct customer satisfaction risk factor requiring operational management.<br>```<br>Tenure Band          Low CSAT Risk     Model Coefficient<br>────────────────────────────────────────────────────────<br>On Job Training      Highest           +0.119  🔴<br>31 - 60 Days         Elevated          +0.010  ⚠️<br>61 - 90 Days         Moderate          -0.010  ✅<br>&gt; 90 Days            Lower             +0.044  ⚠️<br>```<br><br>The unexpected positive coefficient for agents with more than 90 days tenure — despite their experience — suggested a potential complacency effect worth investigating in subsequent operational reviews.<br><br>**Issue Category Analysis**<br><br>Cross-tabulation of issue categories against the low CSAT binary variable revealed significant variation in dissatisfaction rates across complaint types:<br>```<br>Issue Category          Low CSAT Rate    Model Coefficient<br>──────────────────────────────────────────────────────────<br>Order Related           Highest          +0.101  🔴<br>Cancellation            High             +0.062  🔴<br>Product Queries         Elevated         +0.042  ⚠️<br>Feedback                Moderate         +0.023  ⚠️<br>Refund Related          Near Neutral     +0.000  ➡️<br>Payments Related        Lower            -0.047  ✅<br>Shopzilla Related       Lower            -0.017  ✅<br>Returns                 Lowest           -0.107  ✅</pre><p>Order Related and Cancellation contacts consistently produced the highest dissatisfaction rates reflecting the elevated emotional stakes of interactions where customers are already experiencing problems with their orders or are considering leaving the platform entirely. Returns contacts, by contrast, showed the lowest low CSAT association suggesting that the returns process represented a relative operational strength within the customer service function.</p><p><strong>Counterfactual Simulation — Quantifying the Response Time Lever</strong></p><p>To translate the exploratory findings into actionable business intelligence, a counterfactual simulation was conducted to quantify the precise impact of response time reduction on predicted low CSAT probability. The simulation operated on the 17,182 test set records and modelled the effect of a 20 percent reduction in response time across all interactions:</p><p>python</p><pre>X_test_simulated = X_test.copy()<br>X_test_simulated[&#39;response_time_minutes&#39;] *= 0.8<br>simulated_probs = model.predict_proba(X_test_simulated)[:, 1]<br>```<br><br>**Overall Simulation Results**<br>```<br>Scenario                    Predicted Low CSAT Rate<br>────────────────────────────────────────────────────<br>Baseline (Current)          14.57%<br>After 20% Faster Response   14.30%<br>Overall Reduction           0.28 percentage points<br>```<br><br>The modest overall reduction reflected the fact that many interactions already fell within acceptable response time windows — applying a uniform speed improvement across all tickets produced limited aggregate impact because the marginal benefit of speeding up already-fast interactions is negligible.<br><br>**High Delay Segment Simulation Results**<br><br>The more operationally significant finding emerged when the simulation was isolated to interactions with response times exceeding 60 minutes:<br>```<br>Scenario                    Predicted Low CSAT Rate<br>────────────────────────────────────────────────────<br>Baseline (60+ mins)         19.51%<br>After 20% Faster Response   18.08%<br>Reduction                   1.43 percentage points<br>```<br><br>For high delay interactions the impact of a 20 percent speed improvement was **1.43 percentage points** — approximately **five times more impactful** than the blanket improvement across all tickets. This finding produced the project&#39;s most operationally actionable insight:<br><br>&gt; *Response time intervention delivers maximum CSAT impact when targeted precisely at interactions approaching or exceeding the 60-minute delay threshold — rather than applied uniformly across all customer contacts.*<br><br>---<br><br>### 3.6 Escalation Volume Analysis<br><br>The exploratory and threshold analysis concluded with a quantification of the operational escalation implications arising from the model&#39;s predictive behaviour. Understanding not just which customers were at risk but how many required intervention was essential for translating analytical findings into a deployable operational framework.<br><br>Based on the model&#39;s predictions across the 17,182 test customers:<br>```<br>ESCALATION BREAKDOWN<br>─────────────────────────────────────────────────────────<br>Total customers assessed              17,182<br>Total flagged for escalation           6,374   (37.1%)<br><br>Of those flagged:<br>✅ Genuinely unhappy — correctly caught   1,568  (24.6%)<br>✗  False alarms — satisfied customers     4,806  (75.4%)<br><br>Of those not flagged:<br>✅ Correctly identified as satisfied       9,402<br>✗  Genuinely unhappy — missed             1,402<br>─────────────────────────────────────────────────────────</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUzxA4VOk3tyMxt5QkTuBw.png" /></figure><p>The 37.1 percent escalation rate driven by a precision of 24.6 percent was identified as operationally unsustainable for full supervisor intervention deployment. This finding motivated the threshold optimisation analysis which demonstrated that raising the prediction probability cutoff above the default 0.50 could materially reduce escalation volume while preserving the majority of genuine low CSAT catches enabling a tiered intervention framework that balanced operational capacity with customer recovery effectiveness.</p><p><strong>Key Exploratory Findings</strong></p><p>The exploratory and threshold analysis produced five findings that directly shaped the modelling strategy and business recommendations of this project:</p><p><strong>Finding 1 — Scale of the Problem</strong> Approximately 14,863 customers per operational cycle 17.3 percent of all interactions left critically dissatisfied with no systematic mechanism for proactive identification or intervention prior to this project.</p><p><strong>Finding 2 — Response Time as the Dominant Lever</strong> Low CSAT probability increased consistently with response time across all customer segments, with interactions exceeding 60 minutes showing a 34 percent higher dissatisfaction rate than the overall average confirming response time as the primary operational lever.</p><p><strong>Finding 3 — Targeted Intervention Outperforms Blanket Speed Improvement</strong> A 20 percent response time reduction applied specifically to high delay tickets produced five times more CSAT impact than the same reduction applied uniformly establishing the case for precision-targeted operational intervention over broad efficiency programmed.</p><p><strong>Finding 4 — Agent Experience as a Structural Risk Factor</strong> On Job Training agents produced materially higher low CSAT rates than experienced cohorts identifying agent readiness as a systemic risk factor requiring structural operational management rather than reactive individual coaching.</p><p><strong>Finding 5 — Issue Category as a Risk Stratification Tool</strong> Significant variation in low CSAT rates across issue categories from Order Related at highest risk to Returns at lowest established that routing and prioritisation by issue type represents a meaningful secondary lever for CSAT improvement alongside response time reduction.</p><p><strong>Closing Statement</strong></p><blockquote><em>The exploratory and threshold analysis transformed raw operational data into a structured risk intelligence framework. Response time emerged not merely as an efficiency metric but as the quantifiable heartbeat of customer satisfaction its relationship with dissatisfaction consistent, measurable, and actionable. The findings presented in this chapter did not simply describe what happened in the data. They prescribed where the business must intervene, how urgently, and with what degree of precision providing the evidential foundation upon which the predictive model of Chapter 4 was built and the operational recommendations of Chapter 5 were derived.</em></blockquote><h3>Predictive Model Development, Evaluation &amp; Interpretation</h3><h3>Chapter Introduction</h3><p>The exploratory and threshold analysis presented in Chapter 3 established the evidential foundation for this investigation confirming response time as the dominant operational lever, identifying agent experience and issue category as structural risk factors, and quantifying the scale of undetected customer dissatisfaction across the operation. Chapter 4 builds directly on those findings by translating the exploratory intelligence into a deployable predictive framework. This chapter documents the full model development journey from feature selection and pipeline construction through iterative model refinement, performance evaluation, and coefficient interpretation producing a validated Multi-Factor Risk Model capable of identifying at-risk customers and ranking the operational drivers of low customer satisfaction with statistical credibility.</p><p><strong>Feature Selection</strong></p><p>Feature selection was guided directly by the exploratory findings of Chapter 3. Four operational variables were selected as model inputs based on their demonstrated association with low CSAT outcomes during the threshold analysis and their practical relevance to the operational levers available to the business:</p><pre>Feature                  Type          Justification<br>──────────────────────────────────────────────────────────────<br>response_time_minutes    Continuous    Primary operational lever<br>                                       Strongest explored association<br>                                       with low CSAT outcomes</pre><pre>Agent Shift              Categorical   Shift pattern variation in<br>                                       dissatisfaction rates identified<br>                                       during exploratory analysis</pre><pre>Tenure Bucket            Categorical   OJT agents showed materially<br>                                       elevated low CSAT rates —<br>                                       second strongest risk signal</pre><pre>category                 Categorical   Significant variation across<br>                                       issue types — Order Related<br>                                       and Cancellation highest risk</pre><p>The selection of these four features reflected a deliberate balance between predictive signal strength and operational interpretability. A model whose inputs map directly to actionable business levers response speed, staffing decisions, agent readiness, and contact routing produces recommendations that operations teams can act on immediately rather than findings that are statistically interesting but operationally opaque.</p><p><strong>Target Variable</strong></p><p>As documented in Chapter 2, the binary target variable low_csat was derived from the continuous CSAT Score column using the following threshold definition:</p><p>python</p><pre>customer_df[&#39;low_csat&#39;] = customer_df[&#39;CSAT Score&#39;] &lt;= 2</pre><p>Every interaction where the customer gave a satisfaction score of 2 or below was classified as a low CSAT outcome and labelled True. All interactions scoring above 2 were classified as satisfactory and labelled False. This binary framing converted the customer satisfaction measurement problem into a precise binary classification task enabling the model to learn the specific operational conditions under which critically dissatisfied outcomes are most likely to occur.</p><p><strong>Data Preprocessing Pipeline</strong></p><p>Prior to model training all features passed through a two-stage preprocessing pipeline:</p><p><strong>Stage 1 — Feature Encoding</strong></p><p>Categorical features Agent Shift, Tenure Bucket, and category were transformed into binary numerical indicator columns using One-Hot Encoding:</p><p>python</p><pre>features = pd.get_dummies(features, drop_first=True)</pre><p>The drop_first=True parameter eliminated one reference category per feature group to prevent multicollinearity. The original four feature columns expanded into twenty binary indicator columns representing every operational category across all three categorical variables enabling the model to independently assess the contribution of each specific category label to low CSAT probability.</p><p><strong>Stage 2 — Feature Scaling</strong></p><p>The continuous response_time_minutes feature operated on a substantially different numerical scale than the binary encoded categorical columns. StandardScaler was applied within the model pipeline to normalise all features to a comparable scale — preventing the model from overweighting response time simply due to the magnitude of its raw values:</p><p>python</p><pre>model = make_pipeline(<br>    StandardScaler(),<br>    LogisticRegression(max_iter=2000, class_weight=&#39;balanced&#39;)<br>)</pre><p>Both preprocessing steps were embedded within the Scikit-Learn pipeline to ensure identical transformations were applied consistently across training and test data eliminating the risk of data leakage through inconsistent preprocessing.</p><p><strong>Train-Test Split</strong></p><p>The full dataset of 85,910 customer interaction records was partitioned into training and test subsets using an 80/20 holdout split:</p><p>python</p><pre>X_train, X_test, y_train, y_test = train_test_split(<br>    features,<br>    customer_df[&#39;low_csat&#39;],<br>    test_size=0.2,<br>    random_state=42<br>)<br>```<br>```<br>Training Set    68,728 records   Model learning<br>Test Set        17,182 records   Model evaluation<br>Random State    42               Reproducibility</pre><p>The test set was withheld entirely from the model during training and used exclusively for post-training performance evaluation ensuring that all reported metrics reflected genuine generalisation capability on unseen customer interactions rather than memorisation of training patterns.</p><p><strong>Model Selection — The Iterative Development Journey</strong></p><p>The final model was not produced in a single iteration. Three distinct modelling attempts were made, each informed by the diagnostic findings of the previous attempt. This iterative process is documented transparently as it produced important methodological insights that strengthened the final model’s credibility.</p><p><strong>Iteration 1 — Baseline Logistic Regression</strong></p><p>The first model was a standard Logistic Regression without class balancing:</p><p>python</p><pre>model = make_pipeline(<br>    StandardScaler(),<br>    LogisticRegression(max_iter=2000)<br>)<br>```<br>```<br>ITERATION 1 RESULTS<br>────────────────────────────────<br>Accuracy      0.856<br>Precision     0.486<br>Recall        0.022<br>F1-Score      0.042<br>ROC-AUC       0.639<br>CV Mean AUC   0.624 ± 0.018</pre><p>The 86 percent accuracy initially appeared strong but masked a critical failure a recall of 0.022 meant the model was detecting only 2 percent of genuinely dissatisfied customers. The model had defaulted to predicting satisfied for virtually every interaction because satisfied customers constituted 82.7 percent of the dataset. Predicting the majority class almost universally produced high accuracy while rendering the model operationally useless for its intended purpose of identifying at-risk customers.</p><p><strong>Diagnosis — Class Imbalance.</strong> The 82.7 percent to 17.3 percent ratio between satisfied and low CSAT customers caused the model to optimise for majority class accuracy at the complete expense of minority class detection. Addressing this imbalance became the primary objective of Iteration 2.</p><p><strong>Iteration 2 — Random Forest with Expanded Features</strong></p><p>The second iteration attempted two simultaneous changes — upgrading the algorithm to Random Forest and expanding the feature set to include additional variables:</p><p>python</p><pre>features = customer_df[[<br>    &#39;response_time_minutes&#39;,<br>    &#39;Agent Shift&#39;,<br>    &#39;Tenure Bucket&#39;,<br>    &#39;category&#39;,<br>    &#39;Sub-category&#39;,<br>    &#39;Item_price&#39;,<br>    &#39;connected_handling_time&#39;,<br>    &#39;day_of_week&#39;,<br>    &#39;reported_hour&#39;<br>]]</pre><pre>model = make_pipeline(<br>    StandardScaler(),<br>    RandomForestClassifier(<br>        n_estimators=100,<br>        class_weight=&#39;balanced&#39;,<br>        random_state=42<br>    )<br>)<br>```<br>```<br>ITERATION 2 RESULTS<br>────────────────────────────────<br>Accuracy      0.712<br>Precision     0.241<br>Recall        0.310<br>F1-Score      0.271<br>ROC-AUC       0.530<br>CV Mean AUC   0.524 ± 0.007</pre><p>The ROC-AUC collapsed to 0.530 — barely above random guessing at 0.500. While recall improved from 0.022 to 0.310, the model’s overall discriminative ability had been severely compromised.</p><p><strong>Diagnosis — Missing Values in Expanded Features.</strong> The null audit conducted in Chapter 2 had identified significant missing values in Item_price and Sub-category. Introducing these unresolved null columns into the Random Forest model corrupted the feature input producing the characteristic AUC collapse associated with missing value contamination. The simultaneous introduction of multiple changes also prevented clean isolation of the algorithm upgrade effect from the feature expansion effect a methodological lesson that informed the more controlled approach of Iteration 3.</p><p><strong>Iteration 3 — Balanced Logistic Regression (Final Model)</strong></p><p>Informed by the diagnostic findings of Iterations 1 and 2, the third iteration returned to the original clean four-feature set and applied the targeted fix for class imbalance — adding class_weight=&#39;balanced&#39; to the Logistic Regression:</p><p>python</p><pre>model = make_pipeline(<br>    StandardScaler(),<br>    LogisticRegression(max_iter=2000, class_weight=&#39;balanced&#39;)<br>)<br>```<br>```<br>ITERATION 3 RESULTS — FINAL MODEL<br>────────────────────────────────────<br>Accuracy      0.639<br>Precision     0.246<br>Recall        0.528<br>F1-Score      0.336<br>ROC-AUC       0.636<br>CV Mean AUC   0.621 ± 0.017<br>```</pre><pre>The balanced model produced the strongest performance profile across the metrics most critical to the project&#39;s operational objective. Recall jumped from 0.022 to 0.528 — a 24-fold improvement representing the difference between detecting 2 percent and 53 percent of genuinely dissatisfied customers. The ROC-AUC recovered to 0.636 — nearly matching the original model&#39;s 0.639 while now delivering dramatically superior minority class detection. The F1-score improved from 0.042 to 0.336 — the highest across all three iterations and the most balanced performance profile for the low CSAT target class.</pre><pre>---</pre><pre>### 4.6 Model Evaluation</pre><pre>The final model was subjected to a comprehensive four-component evaluation framework to assess performance across multiple dimensions of predictive quality.</pre><pre>---</pre><pre>**4.6.1 Classification Report**<br>```<br>              precision    recall  f1-score   support</pre><pre>   Satisfied       0.87      0.66      0.75     14,211<br>    Low CSAT       0.25      0.53      0.34      2,971</pre><pre>    accuracy                           0.64     17,182<br>   macro avg       0.56      0.60      0.54     17,182<br>weighted avg       0.76      0.64      0.68     17,182<br>```</pre><pre>The classification report confirmed the model&#39;s fundamental operational utility — a recall of 0.528 for the low CSAT class meaning the model successfully identified over half of all genuinely dissatisfied customers in the test set. The precision of 0.246 indicated a false alarm rate that, while elevated, represented an acceptable operational tradeoff given the significantly higher business cost of missing a genuinely dissatisfied customer compared to the cost of an unnecessary escalation.</pre><pre>---</pre><pre>**4.6.2 Confusion Matrix**<br>```<br>                    PREDICTED<br>              Satisfied    Low CSAT<br>           ┌────────────┬────────────┐<br>Satisfied  │    9,379   │   4,832    │<br>           ├────────────┼────────────┤<br>Low CSAT   │    1,402   │   1,569    │<br>           └────────────┴────────────┘</pre><pre>True Negatives   9,379   Correctly identified as satisfied<br>False Positives  4,832   Satisfied customers wrongly flagged<br>False Negatives  1,402   Unhappy customers dangerously missed<br>True Positives   1,569   Unhappy customers correctly caught<br>```</pre><pre>The confusion matrix breakdown revealed that of the 2,971 genuinely dissatisfied customers in the test set, 1,569 were correctly identified and flagged for escalation while 1,402 were missed. The 1,402 False Negatives represent the residual undetected dissatisfied customer population — addressed through the complementary rule-based safety net framework presented in Chapter 5.</pre><pre>---</pre><pre>**4.6.3 ROC-AUC Score**<br>```<br>ROC-AUC Score     0.636<br>Interpretation    Fair discriminative ability<br>                  Better than random (0.500)<br>                  Approaching acceptable threshold (0.700)<br>```</pre><pre>An AUC of 0.636 confirmed that the model possessed genuine discriminative capability — meaningfully distinguishing between satisfied and dissatisfied customers beyond what random classification would produce. While falling short of the 0.700 threshold conventionally associated with good model performance, the AUC was considered sufficient for operational deployment in conjunction with the rule-based escalation safety net — particularly given the model&#39;s strong recall performance on the target class.</pre><pre>---</pre><pre>**4.6.4 Cross-Validation**<br>```<br>5-FOLD CROSS VALIDATION<br>────────────────────────────────<br>Fold 1    AUC = 0.625<br>Fold 2    AUC = 0.641<br>Fold 3    AUC = 0.637<br>Fold 4    AUC = 0.603<br>Fold 5    AUC = 0.599<br>────────────────────────────────<br>Mean AUC       0.621<br>Std Dev        0.017<br>Verdict        STABLE AND CONSISTENT ✓<br>```</pre><pre>The five-fold cross-validation confirmed that the model&#39;s performance was stable and generalisable across different subsets of the data. A standard deviation of 0.017 indicated minimal variance between folds — the model was not overfitting to any particular data split and its findings could be trusted to reflect genuine learned patterns rather than sampling artefacts.</pre><pre>---</pre><pre>### 4.7 Model Comparison Summary<br>```<br>                  Iteration 1    Iteration 2    Iteration 3<br>                  Baseline LR    Random Forest  Balanced LR<br>                                                FINAL MODEL<br>──────────────────────────────────────────────────────────────<br>Accuracy          0.856          0.712          0.639<br>Precision         0.486          0.241          0.246<br>Recall            0.022          0.310          0.528  ✓ Best<br>F1-Score          0.042          0.271          0.336  ✓ Best<br>ROC-AUC           0.639          0.530          0.636  ✓ Best<br>CV Mean AUC       0.624          0.524          0.621  ✓ Best<br>CV Std Dev        0.018          0.007          0.017<br>Low CSAT Caught   ~65            ~921           ~1,569 ✓ Best<br>Low CSAT Missed   ~2,906         ~2,050         ~1,402 ✓ Best<br>──────────────────────────────────────────────────────────────</pre><p>The final balanced Logistic Regression model outperformed both previous iterations across every metric relevant to the project’s operational objective — delivering the highest recall, F1-score, ROC-AUC, and cross-validation stability while catching 24 times more genuinely dissatisfied customers than the baseline model.</p><p><strong>Coefficient Analysis — Risk Driver Interpretation</strong></p><p>The Logistic Regression models&#39; coefficient output provided the direct answer to the project’s central research question which operational factors most strongly drive low customer satisfaction, and in what order of magnitude?</p><p>python</p><pre>log_reg = model.named_steps[&#39;logisticregression&#39;]<br>importance = pd.Series(<br>    log_reg.coef_[0],<br>    index=features.columns<br>)<br>importance = importance.sort_values(ascending=False)<br>```</pre><pre>**Full Coefficient Rankings**<br>```<br>RISK DRIVERS — RANKED BY COEFFICIENT<br>──────────────────────────────────────────────────────────<br>POSITIVE DRIVERS (Increase Low CSAT Risk)<br>response_time_minutes              +0.296  🔴 Primary Lever<br>Tenure Bucket_On Job Training      +0.119  🔴 High Risk<br>category_Order Related             +0.101  🔴 High Risk<br>category_Cancellation              +0.063  ⚠️  Elevated Risk<br>Agent Shift_Morning                +0.054  ⚠️  Elevated Risk<br>Tenure Bucket_&gt;90                  +0.044  ⚠️  Moderate Risk<br>category_Product Queries           +0.042  ⚠️  Moderate Risk<br>category_Others                    +0.030  ⚠️  Moderate Risk<br>category_Feedback                  +0.023  ⚠️  Moderate Risk<br>Agent Shift_Night                  +0.013  ➡️  Marginal Risk<br>Tenure Bucket_31-60                +0.010  ➡️  Marginal Risk<br>category_Onboarding related        +0.008  ➡️  Marginal Risk<br>category_Refund Related            +0.000  ➡️  Neutral</pre><pre>PROTECTIVE FACTORS (Reduce Low CSAT Risk)<br>Tenure Bucket_61-90               -0.010  ✅  Marginal Protection<br>category_Offers &amp; Cashback        -0.010  ✅  Marginal Protection<br>category_Shopzilla Related        -0.017  ✅  Marginal Protection<br>Agent Shift_Evening               -0.028  ✅  Moderate Protection<br>category_Payments related         -0.047  ✅  Moderate Protection<br>Agent Shift_Split                 -0.068  ✅  Strong Protection<br>category_Returns                  -0.107  ✅  Strongest Protection<br>──────────────────────────────────────────────────────────<br>```</pre><pre>---</pre><pre>**Interpreting the Top Five Risk Drivers**</pre><pre>**1. Response Time — Coefficient +0.296**<br>Response time emerged as the single most powerful driver of low CSAT — with a coefficient nearly three times larger than the next strongest factor. Every additional minute of response delay meaningfully increased the probability of a critically dissatisfied outcome. This finding confirmed the project&#39;s central hypothesis and validated response time as the primary operational lever for CSAT improvement.</pre><pre>**2. On Job Training Agents — Coefficient +0.119**<br>Interactions handled by agents still in their initial training period carried the second highest risk of producing low CSAT outcomes. This structural finding suggests that agent readiness at the point of customer contact is a systemic risk factor — not merely an individual performance issue — requiring operational management through deployment policy, supervision intensity, and ticket routing strategy.</pre><pre>**3. Order Related Category — Coefficient +0.101**<br>Order related complaints represented the highest risk issue category. These interactions combine elevated customer emotional stakes — the customer is already experiencing a problem with their purchase — with the operational complexity of order investigation and resolution, creating conditions where response time delays compound an already fragile customer relationship.</pre><pre>**4. Cancellation Category — Coefficient +0.063**<br>Cancellation contacts carried the fourth highest risk coefficient. Customers initiating cancellation contacts are frequently already dissatisfied with their experience — making the quality and speed of the cancellation interaction a critical determinant of whether their satisfaction score reflects a single negative episode or the culmination of a deteriorating relationship.</pre><pre>**5. Morning Shift — Coefficient +0.054**<br>Morning shift interactions showed elevated low CSAT risk compared to the reference shift — potentially reflecting higher contact volumes during morning hours creating response time pressure, or a morning shift team composition skewed toward less experienced agents. This finding warrants operational investigation into morning shift staffing and volume management practices.</pre><pre>---</pre><pre>**Interpreting the Top Protective Factors**</pre><pre>**Returns Category — Coefficient -0.107**<br>The returns process emerged as the strongest protective factor across the entire model — associated with materially lower low CSAT probability than any other issue category. This represents a relative operational strength — the returns handling process appears well designed and consistently executed, producing satisfied outcomes even among customers who might otherwise be predisposed to dissatisfaction.</pre><pre>**Split Shift — Coefficient -0.068**<br>Split shift agents showed the strongest protective association among shift patterns — potentially reflecting the deployment of more experienced agents in split shift arrangements or the lower contact volumes during split shift hours enabling more attentive individual customer handling.</pre><pre>**Payments Related — Coefficient -0.047**<br>Despite the inherently sensitive nature of payment-related contacts, the payments category showed a protective association with customer satisfaction — suggesting that payment issue resolution processes are relatively effective and consistently applied.</pre><pre>---</pre><pre>### 4.9 Escalation Volume Quantification</pre><pre>Translating the model&#39;s predictive output into operational terms required quantification of the escalation volume the model would generate in deployment:<br>```<br>ESCALATION REALITY — PER 17,182 CUSTOMERS ASSESSED<br>─────────────────────────────────────────────────────────<br>Total flagged for escalation          6,374   (37.1%)<br>├── Genuinely unhappy — correct       1,569   (24.6% precision)<br>└── False alarms — satisfied          4,805   (75.4%)</pre><pre>Total not flagged                    10,808   (62.9%)<br>├── Correctly satisfied               9,406<br>└── Unhappy — missed                  1,402<br>─────────────────────────────────────────────────────────</pre><p>The 37.1 percent escalation rate — while reflecting the model’s strong recall performance — was identified as operationally unsustainable for full supervisor intervention deployment. Threshold optimisation analysis demonstrated that raising the prediction probability cutoff above the default 0.50 could reduce escalation volume to an operationally manageable 10 to 20 percent range — forming the basis of the tiered intervention framework presented in Chapter 5.</p><p>4.10 Chapter Summary — Model Development Findings</p><p>Chapter 4 documented the complete development, evaluation, and interpretation of the Multi-Factor Risk Model for low CSAT identification. Five findings emerged from this process:</p><p><strong>Finding 1 — Class Imbalance Was the Primary Modelling Challenge</strong> The 82.7 to 17.3 percent class ratio caused the baseline model to miss 98 percent of dissatisfied customers. Addressing this through class reweighting produced a 24-fold improvement in minority class detection — from a recall of 0.022 to 0.528.</p><p><strong>Finding 2 — The Model Is Directionally Reliable and Operationally Stable</strong> A ROC-AUC of 0.636 and cross-validation standard deviation of 0.017 confirmed that the model’s risk driver rankings reflect genuine learned patterns that generalise consistently across unseen customer interaction data.</p><p><strong>Finding 3 — Response Time Is the Dominant Risk Driver</strong> With a coefficient of +0.296 — nearly three times larger than the next factor — response time was confirmed as the single most powerful operational lever for low CSAT reduction across all customer segments, issue types, and shift patterns.</p><p><strong>Finding 4 — Agent Readiness and Issue Routing Are Material Secondary Levers</strong> On Job Training agents (+0.119) and Order Related contacts (+0.101) represented the second and third strongest risk drivers — establishing that response time reduction alone, while primary, must be complemented by targeted agent readiness programmes and intelligent issue routing to maximise CSAT improvement.</p><p><strong>Finding 5 — The Operation Has Demonstrable Strengths to Build On</strong> The returns process (-0.107) and split shift arrangements (-0.068) emerged as genuine operational strengths — providing positive benchmarks against which higher-risk processes can be evaluated and redesigned.</p><p><strong>Operational Recommendations &amp; Intervention Framework</strong></p><p><strong>5.0 Chapter Introduction</strong></p><p>The predictive model developed in Chapter 4 did not exist to produce statistics. It existed to produce decisions. Chapter 5 converts the analytical findings of this project into a structured, actionable operational framework — translating coefficient rankings, simulation results, escalation volume analysis, and threshold findings into concrete recommendations that a customer service operation can implement, measure, and iterate on. Every recommendation presented in this chapter is grounded directly in the data, the model outputs, and the business realities established across the preceding chapters. This is not a generic customer service improvement guide. It is a data-driven intervention blueprint built specifically from the operational patterns of this dataset and the risk drivers this model identified.</p><p><strong>5.1 Primary Recommendation — Targeted Response Time Intervention</strong></p><p><strong>The Finding</strong> Response time emerged as the single dominant driver of low customer satisfaction with a model coefficient of +0.296 — nearly three times stronger than any other factor. The counterfactual simulation demonstrated that a 20 percent reduction in response time for interactions exceeding 60 minutes reduced predicted low CSAT probability by 1.43 percentage points for that segment — five times more impactful than a blanket speed improvement applied uniformly across all contacts.</p><p><strong>The Recommendation</strong> Response time intervention must be precision-targeted rather than broadly applied. The operational priority is not to make every interaction faster — it is to prevent interactions from crossing the 60-minute delay threshold in the first place.</p><p><strong>The Implementation Framework</strong></p><pre>RESPONSE TIME INTERVENTION TIERS<br>─────────────────────────────────────────────────────────────<br>Tier 1 — Early Warning Flag (45 Minutes)<br>Any unresolved interaction approaching 45 minutes<br>triggers an automatic supervisor notification<br>Purpose — Intervention before the critical threshold<br>          is breached rather than after<br>Action  — Supervisor reviews ticket status<br>          Reassigns if agent is overwhelmed<br>          Prioritises resolution before 60-minute mark</pre><pre>Tier 2 — Critical Threshold Alert (60 Minutes)<br>Any interaction exceeding 60 minutes without<br>resolution triggers immediate escalation flag<br>Purpose — Capture the highest risk segment<br>          identified in the simulation analysis<br>Action  — Supervisor direct intervention<br>          Customer proactive outreach initiated<br>          Resolution timeline communicated to customer</pre><pre>Tier 3 — Post-Breach Recovery (90+ Minutes)<br>Any interaction exceeding 90 minutes triggers<br>a mandatory customer recovery protocol<br>Purpose — Damage limitation for severely delayed<br>          interactions where CSAT risk is highest<br>Action  — Senior agent or supervisor takes ownership<br>          Compensation or goodwill gesture authorised<br>          Post-resolution satisfaction check scheduled</pre><p><strong>The Expected Impact</strong></p><p>Based on the simulation findings, consistent prevention of interactions crossing the 60-minute threshold is projected to reduce low CSAT probability in the high-delay segment from 19.51 percent to approximately 18.08 percent per operational cycle — representing hundreds of recovered customer relationships per month at scale across the full 85,910-record operational volume.</p><p><strong>5.2 Secondary Recommendation — Agent Readiness Framework</strong></p><p><strong>The Finding</strong> On Job Training agents produced the second highest risk coefficient in the model at +0.119 — meaning interactions handled by agents still in their initial training period were significantly more likely to generate critically dissatisfied outcomes than interactions handled by experienced agents. This was not an isolated finding — it was a consistent structural pattern across the dataset.</p><p><strong>The Recommendation</strong> Agent readiness must be treated as a customer satisfaction risk management issue — not merely a training and development concern. Three operational changes are recommended:</p><p><strong>Recommendation 2a — Ticket Complexity Routing by Tenure</strong></p><pre>TENURE-BASED TICKET ROUTING POLICY<br>─────────────────────────────────────────────────────────────<br>OJT Agents (On Job Training)<br>└── Route to    → Simple queries, low-risk categories<br>                   Standard information requests<br>                   Low item value interactions<br>                   Onboarding related contacts<br>└── Avoid       → Order Related complaints<br>                   Cancellation contacts<br>                   High item value interactions<br>                   Any contact with prior escalation history</pre><pre>Experienced Agents (61-90 Days, &gt;90 Days)<br>└── Route to    → Order Related complaints (+0.101)<br>                   Cancellation contacts (+0.063)<br>                   High value item interactions<br>                   Repeat contact customers</pre><p>This routing policy directly addresses the compounding risk identified in the model — where OJT agents handling high-risk issue categories creates a double risk exposure that the coefficient analysis confirmed is disproportionately associated with low CSAT outcomes.</p><p><strong>Recommendation 2b — Supervised Shadow Period Extension</strong></p><p>Given the unexpected positive coefficient for agents with more than 90 days tenure (+0.044) — suggesting a potential complacency effect among longer-serving agents — the recommended framework extends structured supervision beyond the standard OJT period:</p><pre>SUPERVISION INTENSITY FRAMEWORK<br>─────────────────────────────────────────────────────────────<br>0 - 30 Days      Full supervision<br>                 All interactions reviewed<br>                 Daily coaching sessions</pre><pre>30 - 60 Days     Active monitoring<br>                 Random interaction audits<br>                 Weekly performance reviews</pre><pre>61 - 90 Days     Targeted monitoring<br>                 Focus on high-risk categories<br>                 Fortnightly coaching</pre><pre>90+ Days         Periodic quality audits<br>                 Quarterly refresher training<br>                 CSAT performance tracking<br>                 Flag for intervention if<br>                 individual CSAT score rises</pre><p><strong>Recommendation 2c — OJT Agent CSAT Tracking</strong></p><p>Individual CSAT score tracking by agent — segmented by tenure band — should be implemented as a standing operational dashboard. Agents whose interaction-level low CSAT rate exceeds the operational average by more than 5 percentage points trigger a mandatory coaching intervention regardless of their tenure band.</p><p><strong>5.3 Tertiary Recommendation — Issue Category Routing Strategy</strong></p><p><strong>The Finding</strong> Significant variation in low CSAT rates across issue categories was confirmed by the model — with Order Related contacts (+0.101) and Cancellation contacts (+0.063) carrying the highest risk and Returns contacts (-0.107) demonstrating the strongest protective association with customer satisfaction.</p><p><strong>The Recommendation</strong> Issue category should be used as an active routing and prioritisation signal — not merely a reporting label.</p><pre>ISSUE CATEGORY RISK MATRIX &amp; ROUTING POLICY<br>─────────────────────────────────────────────────────────────<br>CRITICAL RISK CATEGORIES<br>Order Related        +0.101    → Senior agent assignment<br>                               → Response time SLA: 15 mins<br>                               → Supervisor notification at 30 mins</pre><pre>Cancellation         +0.063    → Retention-trained agent assignment<br>                               → Response time SLA: 10 mins<br>                               → Escalation authority pre-approved</pre><pre>HIGH RISK CATEGORIES<br>Product Queries      +0.042    → Experienced agent preferred<br>                               → Response time SLA: 20 mins</pre><pre>Feedback             +0.023    → Standard routing<br>                               → Response time SLA: 30 mins</pre><pre>STANDARD CATEGORIES<br>Refund Related       +0.000    → Standard routing<br>                               → Response time SLA: 30 mins</pre><pre>Onboarding           +0.008    → OJT agent suitable<br>                               → Response time SLA: 30 mins</pre><pre>PROTECTIVE CATEGORIES<br>Payments Related     -0.047    → Maintain current process<br>                               → Document best practices<br>                               → Use as training benchmark</pre><pre>Returns              -0.107    → Maintain current process<br>                               → Use as gold standard benchmark<br>                               → Extract and replicate success factors</pre><p>The Returns and Payments categories represent <strong>operational benchmarks</strong> — processes that are working well and should be studied, documented, and used as templates for redesigning higher-risk category handling processes.</p><p><strong>5.4 Tiered Escalation Framework</strong></p><p><strong>The Finding</strong> The model flagged approximately 6,374 customers per 17,182 assessed for escalation — a 37.1 percent escalation rate driven by a precision of 24.6 percent. This rate was identified as operationally unsustainable for full supervisor intervention deployment. Threshold optimisation analysis demonstrated that raising the prediction probability cutoff above the default 0.50 could reduce escalation volume to an operationally manageable range while preserving the majority of genuine low CSAT catches.</p><p><strong>The Recommendation</strong> Replace the binary escalate or do not escalate decision with a three-tier intervention framework based on predicted probability scores:</p><pre>TIERED ESCALATION FRAMEWORK<br>─────────────────────────────────────────────────────────────<br>TIER 1 — IMMEDIATE ESCALATION<br>Predicted Probability    ≥ 0.65<br>Estimated Volume         ~15% of contacts<br>Intervention             Supervisor direct callback<br>                         Within 2 hours of interaction close<br>                         Senior agent reassignment if open<br>Why                      Highest confidence flags<br>                         Genuine low CSAT most likely<br>                         Maximum intervention justified</pre><pre>TIER 2 — PROACTIVE FOLLOW UP<br>Predicted Probability    0.40 - 0.65<br>Estimated Volume         ~20% of contacts<br>Intervention             Automated satisfaction SMS or email<br>                         &quot;How did we do?&quot; outreach<br>                         Agent self-review triggered<br>Why                      Medium confidence flags<br>                         Low cost intervention<br>                         Catches near-miss customers<br>                         Minimal disruption to satisfied customers</pre><pre>TIER 3 — STANDARD MONITORING<br>Predicted Probability    &lt; 0.40<br>Estimated Volume         ~65% of contacts<br>Intervention             Post-interaction survey only<br>                         Standard CSAT tracking<br>                         No proactive outreach<br>Why                      Low risk customers<br>                         Intervention not justified<br>                         Resources preserved for Tier 1 and 2<br>─────────────────────────────────────────────────────────────</pre><p><strong>The Business Impact of Tiered Escalation</strong></p><pre>BINARY vs TIERED ESCALATION COMPARISON<br>─────────────────────────────────────────────────────────────<br>                    Binary          Tiered<br>                    (Current)       (Recommended)<br>─────────────────────────────────────────────────────────────<br>Escalation Rate     37.1%           ~15% (Tier 1 only)<br>Full Interventions  6,374           ~2,577<br>False Alarms        4,805           Significantly reduced<br>Supervisor Load     Unsustainable   Manageable<br>Cost Per Recovery   High            Optimised<br>Genuine Catches     1,569           ~1,100 (Tier 1)<br>                                    ~400   (Tier 2 follow up)<br>Total Recovered     1,569           ~1,500<br>─────────────────────────────────────────────────────────────</pre><p>The tiered framework recovers approximately the same number of genuinely dissatisfied customers as the binary approach — but at significantly lower operational cost and supervisor workload by concentrating full intervention resources on the highest confidence flags while using low-cost automated outreach for the medium confidence segment.</p><p><strong>5.5 Safety Net Framework for Missed Customers</strong></p><p><strong>The Finding</strong> The model’s recall of 52.8 percent — while representing a 24-fold improvement over the baseline model — still means that approximately 1,402 genuinely dissatisfied customers per 17,182 assessed were not flagged for escalation. These False Negatives represent customers at risk of churning with no proactive intervention triggered.</p><p><strong>The Recommendation</strong> A five-layer safety net framework operating independently of the predictive model ensures that the highest-risk missed customers are captured through complementary mechanisms:</p><pre>FIVE LAYER SAFETY NET<br>─────────────────────────────────────────────────────────────<br>LAYER 1 — PREDICTIVE MODEL<br>Primary escalation trigger<br>Catches ~1,569 genuinely unhappy customers<br>Per 17,182 assessed</pre><pre>LAYER 2 — RULE BASED ESCALATION OVERRIDE<br>Triggers escalation regardless of model prediction<br>Rules:<br>├── Response time &gt; 60 minutes         → Auto flag<br>├── OJT agent + Order Related category → Auto flag<br>├── Cancellation category              → Auto flag<br>├── Item price &gt; threshold value       → Auto flag<br>└── Repeat contact within 48 hours     → Auto flag<br>Estimated additional catches — 300 to 500 per cycle</pre><pre>LAYER 3 — POST INTERACTION SURVEY<br>All customers receive automated satisfaction survey<br>Score of 1 or 2 triggers retrospective escalation<br>Catches self-identified dissatisfied customers<br>who slipped through Layers 1 and 2<br>Estimated additional catches — 200 to 400 per cycle</pre><pre>LAYER 4 — SUPERVISOR PROACTIVE MONITORING<br>Daily supervisor checklist targeting highest risk cohorts<br>├── Review all OJT agent interactions from prior day<br>├── Audit 3 to 5 random Morning shift interactions<br>├── Check all interactions with response time 45 to 60 mins<br>└── Review all Cancellation category closures<br>Estimated additional catches — 100 to 200 per cycle</pre><pre>LAYER 5 — MODEL RETRAINING CYCLE<br>Missed customers who self-identify through surveys<br>feed back into model training data quarterly<br>Model gradually learns patterns it initially missed<br>False Negative rate projected to decrease<br>by 10 to 15 percent per retraining cycle<br>─────────────────────────────────────────────────────────────</pre><p><strong>Combined Safety Net Impact</strong></p><pre>Without Safety Net<br>Missed customers per cycle        1,402<br>Intervention triggered            None<br>Churn risk                        High</pre><pre>With Five Layer Safety Net<br>Estimated additional catches      600 to 1,100<br>Residual missed customers         300 to 800<br>Reduction in missed customers     43 to 57 percent</pre><p>The five-layer framework does not eliminate False Negatives — no operational system achieves perfect customer recovery. It materially reduces the undetected dissatisfied customer population while distributing intervention effort across mechanisms that vary in cost, intrusiveness, and targeting precision.</p><p><strong>5.6 Model Deployment Roadmap</strong></p><p>Translating the model from an analytical exercise into a live operational tool requires a structured deployment roadmap:</p><pre>DEPLOYMENT ROADMAP<br>─────────────────────────────────────────────────────────────<br>PHASE 1 — THRESHOLD OPTIMISATION (Month 1)<br>Run threshold analysis across probability cutoffs<br>Select operational threshold targeting 10-15%<br>escalation rate<br>Validate precision and recall at selected threshold<br>Document threshold decision rationale</pre><pre>PHASE 2 — PILOT DEPLOYMENT (Month 2-3)<br>Deploy model on subset of daily interactions<br>Run alongside existing manual escalation process<br>Compare model-flagged vs manually-flagged escalations<br>Measure intervention success rate<br>Collect feedback from supervisors and agents</pre><pre>PHASE 3 — RULE BASED LAYER INTEGRATION (Month 3-4)<br>Implement rule based escalation override triggers<br>Integrate with ticketing system for automatic flagging<br>Train supervisors on tiered intervention framework<br>Establish daily monitoring dashboard</pre><pre>PHASE 4 — FULL DEPLOYMENT (Month 4-6)<br>Roll out across full interaction volume<br>Activate all five safety net layers<br>Establish monthly CSAT tracking against baseline<br>Begin collecting retraining data</pre><pre>PHASE 5 — MODEL RETRAINING (Month 6 onwards)<br>Quarterly model retraining with accumulated data<br>Performance benchmarking against deployment baseline<br>Feature expansion assessment — add clean null-free<br>columns to improve AUC above 0.700<br>Document performance trajectory<br>─────────────────────────────────────────────────────────────</pre><p><strong>5.7 Summary of All Recommendations</strong></p><pre>RECOMMENDATION SUMMARY<br>─────────────────────────────────────────────────────────────<br>Priority    Recommendation              Expected Impact<br>─────────────────────────────────────────────────────────────<br>PRIMARY     Targeted response time      1.43pp CSAT reduction<br>            intervention at 60-min      in high delay segment<br>            threshold                   5x more effective than<br>                                        blanket speed improvement</pre><pre>SECONDARY   Agent readiness framework   Reduce OJT-driven<br>            Tenure-based routing        low CSAT risk<br>            Supervision intensity       Structural rather than<br>            Individual CSAT tracking    reactive intervention</pre><pre>TERTIARY    Issue category routing      Prioritise Order Related<br>            Risk matrix implementation  and Cancellation contacts<br>            Benchmark Returns process   Replicate Returns success<br>            across high-risk categories</pre><pre>ESCALATION  Tiered intervention         Reduce escalation rate<br>            framework replacing         from 37.1% to ~15%<br>            binary escalation           Preserve ~1,500 genuine<br>                                        customer recoveries</pre><pre>SAFETY NET  Five-layer missed           Reduce undetected<br>            customer framework          unhappy customers by<br>                                        43 to 57 percent</pre><pre>DEPLOYMENT  Phased model rollout        Live operational tool<br>            Five phase roadmap          within 6 months<br>            Quarterly retraining        Continuously improving<br>─────────────────────────────────────────────────────────────</pre><h3>Chapter 6: Conclusions, Limitations &amp; Future Directions</h3><h3>6.0 Chapter Introduction</h3><p>Every data science project worth presenting must do two things with equal honesty — celebrate what it proved and acknowledge what it could not. Chapter 6 closes the Multi-Factor Risk Model for Low Customer Satisfaction with intellectual integrity. It summarises the conclusions that the data, the model, and the analysis earned the right to make. It acknowledges the limitations that qualified those conclusions. And it charts the future directions that this project opened up but did not have the scope to pursue. A model that understands its own boundaries is more trustworthy than one that claims perfection — and this chapter is where that trustworthiness is established.</p><p><strong>6.1 Project Conclusions</strong></p><p>This project set out to answer one central question:</p><blockquote>“What are the top drivers of low customer satisfaction in a customer service operation — and how can response time be leveraged as the primary operational intervention?”</blockquote><blockquote>The answer was found. The following conclusions were earned through data, not assumed through intuition.</blockquote><p><strong>Conclusion 1 — Response Time Is the Dominant and Quantifiable Driver of Low CSAT</strong></p><p>The analysis produced unambiguous confirmation that response time is the single most powerful driver of customer dissatisfaction across this operation. With a logistic regression coefficient of +0.296 — nearly three times larger than the next strongest factor — response time was not merely one driver among many. It was the primary lever through which the operation can most directly and immediately influence customer satisfaction outcomes.</p><p>The counterfactual simulation reinforced this conclusion with operational precision. A 20 percent reduction in response time for interactions exceeding 60 minutes reduced predicted low CSAT probability by 1.43 percentage points for that segment — five times more impactful than the same speed improvement applied uniformly across all contacts. This finding transformed response time from a general operational efficiency concern into a precisely targeted intervention opportunity.</p><p><strong>Conclusion 2 — Low CSAT Risk Is Concentrated, Not Evenly Distributed</strong></p><p>One of the most operationally significant conclusions of this project is that customer dissatisfaction risk is not spread equally across all interactions. It clusters around specific, identifiable operational conditions:</p><pre>Interactions most at risk of Low CSAT:<br>├── Response time exceeding 60 minutes<br>├── Handled by On Job Training agents<br>├── Categorised as Order Related<br>├── Categorised as Cancellation<br>└── Occurring during Morning shift</pre><p>This concentration means that targeted intervention — directed at the specific conditions where risk is highest — is significantly more efficient than broad operational improvement programmes. The business does not need to fix everything. It needs to fix the right things.</p><p><strong>Conclusion 3 — The Operation Has Genuine Strengths That Can Be Replicated</strong></p><p>The coefficient analysis revealed not only where the operation is failing but where it is succeeding. The Returns category (-0.107) and Split Shift arrangements (-0.068) demonstrated consistent protective associations with customer satisfaction — representing operational processes and staffing models that are working well. These strengths are not incidental. They are replicable templates that can inform the redesign of higher-risk processes.</p><p><strong>Conclusion 4 — Class Imbalance Is the Central Modelling Challenge in CSAT Prediction</strong></p><p>The iterative model development process produced a methodological conclusion of broader relevance beyond this specific project. In any customer satisfaction dataset where satisfied customers substantially outnumber dissatisfied ones — as is typical in most commercial operations — standard classification models will default to majority class prediction and fail to detect the minority dissatisfied population that constitutes the entire purpose of the modelling exercise.</p><p>Addressing class imbalance through class_weight=&#39;balanced&#39; produced a 24-fold improvement in minority class detection — from a recall of 0.022 to 0.528 — without sacrificing model stability. This finding has direct implications for any subsequent CSAT modelling effort in this or similar operations.</p><p><strong>Conclusion 5 — Predictive Modelling Transforms Reactive Into Proactive Customer Service</strong></p><p>Perhaps the most important conclusion of this project is not statistical but operational. Before this model existed the operation had no systematic mechanism for identifying dissatisfied customers before they submitted a low CSAT score. Every intervention was reactive — triggered after the dissatisfaction had already been recorded. This model enables proactive identification — flagging at-risk customers while recovery is still possible, before the score is given and before the relationship deteriorates beyond retrieval. The shift from reactive to proactive customer service is the project’s most significant organisational contribution.</p><p><strong>6.2 Limitations of the Current Model</strong></p><p>Intellectual honesty requires that the boundaries of this project’s conclusions be clearly stated. The following limitations qualified the findings and must be considered by anyone acting on the recommendations of Chapter 5.</p><p><strong>Limitation 1 — Precision of 0.246 Produces an Elevated False Alarm Rate</strong></p><p>The final model’s precision of 24.6 percent means that approximately three out of every four customers flagged for escalation are genuinely satisfied customers incorrectly identified as at-risk. While the tiered escalation framework of Chapter 5 mitigates the operational impact of this false alarm rate, it remains a meaningful limitation — particularly for resource-constrained operations where unnecessary escalations carry significant cost. Improving precision without sacrificing recall is the primary performance improvement objective for subsequent model iterations.</p><p><strong>Limitation 2 — ROC-AUC of 0.636 Falls Below the 0.700 Good Performance Threshold</strong></p><p>The model’s discriminative ability — its capacity to distinguish between satisfied and dissatisfied customers — was confirmed as fair rather than good by the ROC-AUC score of 0.636. While the cross-validation standard deviation of 0.017 confirmed stability and the recall of 0.528 confirmed operational utility, the AUC falling below 0.700 means the model’s probability estimates carry meaningful uncertainty. Escalation decisions based on predicted probabilities should be treated as informed risk signals rather than definitive predictions.</p><p><strong>Limitation 3 — Geographic Analysis Was Impossible Due to Missing City Data</strong></p><p>The Customer_City column — which could have enabled geographic segmentation of CSAT risk contained 68,828 missing values representing the majority of the dataset. As a result geographic analysis was excluded entirely from the model and the recommendations of this project carry no geographic dimension. It is entirely possible that response time patterns, agent performance, and CSAT outcomes vary materially by customer location a dimension this project was unable to investigate.</p><p><strong>Limitation 4 — Only Four Features Were Used in the Final Model</strong></p><p>The final model incorporated four operational features — response time, agent shift, tenure bucket, and issue category. While these four variables were selected based on their demonstrated relevance and data completeness, the customer service operation generates substantially richer interaction data that the model did not consume. Variables including connected handling time, item price, sub-category, day of week, and reported hour were available but excluded from the final model due to either missing value contamination or the staged development decision to prioritise a clean stable baseline over a feature-rich but potentially unstable model. A richer feature set may unlock additional predictive signal and push AUC above the 0.700 threshold.</p><p><strong>Limitation 5 — Logistic Regression Assumes Linear Relationships</strong></p><p>The Logistic Regression algorithm assumes that each feature’s relationship with the low CSAT outcome is linear and independent. Real customer behaviour is considerably more complex — the impact of response time on satisfaction may vary depending on issue category, agent experience may interact with shift timing, and high item prices may amplify the effect of delays in ways a linear model cannot capture. Non-linear algorithms such as Random Forest or Gradient Boosting — once missing value contamination is resolved — may better capture these interaction effects and produce stronger predictive performance.</p><p><strong>Limitation 6 — The Model Is a Snapshot, Not a Living System</strong></p><p>The model was trained on a static historical dataset. Customer expectations, operational processes, staffing structures, and product categories evolve over time — and a model that does not evolve with them will gradually lose predictive relevance. Without a structured retraining programme the model’s performance will degrade as the operational reality it was trained on diverges from the operational reality it is being asked to predict.</p><p><strong>Limitation 7 — Customer Remarks Were Not Analysed</strong></p><p>The Customer Remarks column — containing direct voice-of-customer text — was present in the dataset but not incorporated into the modelling framework. Text-based sentiment signals from customer remarks may carry significant predictive power for low CSAT identification that the structured operational features alone cannot capture. The absence of a natural language processing layer represents a meaningful untapped signal in the current model.</p><p><strong>6.3 Data Limitations</strong></p><p>Beyond the model-specific limitations, several data quality constraints qualified the scope of this project’s conclusions:</p><pre>DATA LIMITATION SUMMARY<br>─────────────────────────────────────────────────────────────<br>Customer_City        68,828 nulls    Geographic analysis<br>                                     impossible</pre><pre>order_date_time      68,693 nulls    Order timing analysis<br>                                     excluded</pre><pre>Order_id             18,232 nulls    Order-level CSAT<br>                                     linkage incomplete</pre><pre>response_bucket       5,576 nulls    Boundary edge cases<br>                                     required remediation</pre><pre>Item_price            Nulls present  High value order<br>                                     analysis excluded</pre><pre>Sub-category          Nulls present  Granular issue<br>                                     taxonomy incomplete<br>─────────────────────────────────────────────────────────────</pre><p>These data gaps did not invalidate the project’s core findings — the four features used in the final model were fully complete and the response time analysis was conducted on clean engineered data. However they limited the breadth of the analysis and represent data quality improvement opportunities that would expand the scope of future modelling work.</p><p><strong>6.4 Future Model Improvements</strong></p><p>The iterative development journey of this project — and the limitations identified above — point clearly toward the following model improvement priorities for subsequent research:</p><p><strong>Improvement 1 — Stage 2 Feature Expansion</strong></p><p>The immediate next modelling step is to add the three null-free features identified during the staged development analysis:</p><p>python</p><pre>features = customer_df[[<br>    &#39;response_time_minutes&#39;,<br>    &#39;connected_handling_time&#39;,<br>    &#39;day_of_week&#39;,<br>    &#39;reported_hour&#39;,<br>    &#39;Agent Shift&#39;,<br>    &#39;Tenure Bucket&#39;,<br>    &#39;category&#39;<br>]]</pre><p>These variables showed zero missing values in the data audit and carry logical relevance to CSAT outcomes — connected handling time reflecting interaction quality, day of week capturing weekly demand patterns, and reported hour capturing time-of-day effects. Their addition is projected to improve AUC toward and potentially above the 0.700 good performance threshold.</p><p><strong>Improvement 2 — SMOTE Oversampling</strong></p><p>Synthetic Minority Oversampling Technique (SMOTE) generates synthetic low CSAT examples during training to further address class imbalance beyond what class_weight=&#39;balanced&#39; achieves alone. Applied in combination with the balanced class weight the dual approach may produce meaningful improvements in both recall and precision simultaneously:</p><p>python</p><pre>from imblearn.over_sampling import SMOTE<br>from imblearn.pipeline import make_pipeline as imb_pipeline</pre><pre>model = imb_pipeline(<br>    (&#39;scaler&#39;, StandardScaler()),<br>    (&#39;smote&#39;, SMOTE(random_state=42)),<br>    (&#39;classifier&#39;, LogisticRegression(<br>        max_iter=2000,<br>        class_weight=&#39;balanced&#39;<br>    ))<br>)<br>```</pre><pre>---</pre><pre>**Improvement 3 — Random Forest After Null Remediation**</pre><pre>The Random Forest attempt in Iteration 2 collapsed due to missing value contamination in the expanded feature set. Following proper null remediation — median imputation for numeric columns and mode imputation for categorical columns — a Random Forest model with balanced class weights should be retried. Random Forest&#39;s ability to capture nonlinear feature interactions and complex relationship patterns may produce materially stronger performance than the linear Logistic Regression baseline.</pre><pre>---</pre><pre>**Improvement 4 — Threshold Optimisation**</pre><pre>The default prediction threshold of 0.50 produced a 37.1 percent escalation rate identified as operationally unsustainable. A structured threshold optimisation exercise — testing probability cutoffs between 0.30 and 0.80 and measuring the resulting precision, recall, F1-score, and escalation rate at each level — should be conducted to identify the operationally optimal threshold that balances customer recovery effectiveness with escalation resource efficiency.</pre><pre>---</pre><pre>**Improvement 5 — Sentiment Analysis Integration**</pre><pre>The `Customer Remarks` column represents an untapped source of predictive signal. Natural Language Processing techniques — including sentiment scoring, keyword extraction, and topic modelling — applied to customer remarks could identify linguistic patterns associated with low CSAT outcomes that structured operational features alone cannot detect. Integration of a sentiment score as an additional model feature is projected to meaningfully improve minority class detection.</pre><pre>---</pre><pre>**Improvement 6 — Quarterly Model Retraining Programme**</pre><pre>A structured quarterly retraining programme should be established to ensure the model evolves with the operational reality it is predicting. Each retraining cycle incorporates:<br>```<br>Quarterly Retraining Cycle<br>─────────────────────────────────────────────────────────────<br>New interaction data from prior quarter added to training set<br>False Negatives from prior cycle included as corrective signal<br>Model performance benchmarked against deployment baseline<br>Feature set reviewed for new variable opportunities<br>Threshold re-optimised based on current operational capacity<br>Performance report distributed to operations leadership<br>─────────────────────────────────────────────────────────────<br>```</pre><pre>---</pre><pre>### 6.5 Broader Research Directions</pre><pre>Beyond the immediate model improvement priorities, this project opened several broader research questions worthy of future investigation:</pre><pre>**Research Direction 1 — Channel-Level CSAT Analysis**<br>This project modelled CSAT risk at the aggregate interaction level. A channel-level analysis — examining whether response time effects on CSAT differ between inbound calls, chat, and email contacts — may reveal channel-specific intervention priorities that a single aggregate model cannot surface.</pre><pre>**Research Direction 2 — Customer Lifetime Value Integration**<br>Not all low CSAT customers carry equal business risk. A high-value customer giving a score of 1 represents a materially greater churn risk than a low-value customer giving the same score. Integrating customer lifetime value or purchase history into the escalation prioritisation framework would enable the business to concentrate its most intensive recovery efforts on the customers whose retention matters most commercially.</pre><pre>**Research Direction 3 — Longitudinal CSAT Trajectory Analysis**<br>This project modelled each interaction as an independent event. A longitudinal analysis tracking individual customers across multiple interactions over time — examining whether CSAT scores deteriorate progressively or recover after successful interventions — would provide a richer understanding of the customer satisfaction lifecycle and inform more targeted retention strategies.</pre><pre>**Research Direction 4 — Agent Performance Network Analysis**<br>The coefficient analysis identified individual operational factors associated with low CSAT risk. A network analysis examining how supervisor-agent relationships, team compositions, and peer learning dynamics influence CSAT outcomes could surface systemic team-level patterns invisible to individual-level modelling.</pre><pre>**Research Direction 5 — Real Time Prediction Integration**<br>This project operated on historical batch data. The ultimate evolution of this framework is real-time prediction — scoring each interaction for low CSAT risk as it unfolds rather than after it closes — enabling supervisors to intervene while the customer is still on the line rather than through post-interaction recovery. This requires integration with live ticketing and telephony systems but represents the highest-impact deployment architecture for this model&#39;s findings.</pre><pre>---</pre><pre>### 6.6 Final Project Statement</pre><pre>---</pre><pre>This project began with a question that every customer service operation faces but few answer with data:</pre><pre>*Why are our customers dissatisfied — and what can we actually do about it?*</pre><pre>The answer, built across six chapters and grounded in 85,910 customer interactions, was both specific and actionable. Response time is not a background operational metric. It is the heartbeat of customer satisfaction — the single most powerful predictor of whether a customer leaves an interaction feeling heard or feeling failed. Every minute beyond sixty is a minute in which a recoverable relationship moves closer to a lost one.</pre><pre>The model built in this project is not perfect. Its precision of 0.246 means it raises false alarms. Its AUC of 0.636 means its probability estimates carry uncertainty. Its recall of 0.528 means it misses nearly half of all genuinely dissatisfied customers. These limitations were documented honestly — because a model presented without its limitations is not a scientific finding. It is a sales pitch.</pre><pre>But imperfect does not mean insufficient. Before this model existed the operation was catching approximately zero percent of at-risk customers proactively. After this model the operation can catch over fifty percent — with a structured safety net designed to recover a significant portion of the remainder. The journey from 2 percent recall to 52.8 percent recall — achieved through three iterative development cycles, honest diagnostic work, and methodologically rigorous evaluation — represents the difference between operating blind and operating informed.</pre><pre>The recommendations of this project do not require the business to reinvent its customer service operation. They require it to intervene more precisely, deploy its resources more intelligently, and treat the data it already generates as the strategic asset it has always been.</pre><pre>Customer satisfaction is not a mystery. It is a measurement. And measurements, when understood correctly, become decisions. This project was built on that belief — and everything the data revealed confirmed it.</pre><pre>---</pre><pre>&gt; *&quot;The customers your operation loses are not lost because you did not care. They are lost because you did not know. This project was built to change that.&quot;*</pre><pre>---</pre><pre>### Chapter 6 Summary Table<br>```<br>CHAPTER 6 AT A GLANCE<br>─────────────────────────────────────────────────────────────<br>CONCLUSIONS<br>1. Response time confirmed as dominant driver (+0.296)<br>2. Low CSAT risk is concentrated not distributed<br>3. Operation has replicable strengths in Returns<br>4. Class imbalance is the central modelling challenge<br>5. Predictive modelling enables proactive intervention</pre><pre>LIMITATIONS<br>1. Precision 0.246 — elevated false alarm rate<br>2. AUC 0.636 — below 0.700 good performance threshold<br>3. Geographic analysis impossible — 68,828 city nulls<br>4. Only 4 features in final model<br>5. Linear model assumption — complex interactions missed<br>6. Static model — requires retraining programme<br>7. Customer Remarks not analysed — NLP opportunity</pre><pre>FUTURE IMPROVEMENTS<br>1. Stage 2 feature expansion — clean null-free columns<br>2. SMOTE oversampling — dual imbalance correction<br>3. Random Forest retry — after null remediation<br>4. Threshold optimisation — target 10-15% escalation<br>5. Sentiment analysis — Customer Remarks NLP layer<br>6. Quarterly retraining — continuously improving model</pre><pre>BROADER RESEARCH DIRECTIONS<br>1. Channel level CSAT analysis<br>2. Customer lifetime value integration<br>3. Longitudinal CSAT trajectory analysis<br>4. Agent performance network analysis<br>5. Real time prediction integration<br>─────────────────────────────────────────────────────────────</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52732daf4bb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Impact of Screen Time on Mental Wellbeing]]></title>
            <link>https://medium.com/@johnkingsley810/the-impact-of-screen-time-on-mental-wellbeing-80c5f1837960?source=rss-19b0b80fd184------2</link>
            <guid isPermaLink="false">https://medium.com/p/80c5f1837960</guid>
            <dc:creator><![CDATA[Kingsley John]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 20:01:48 GMT</pubDate>
            <atom:updated>2025-11-08T20:01:48.192Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Data-Driven Insight from 400 Surveys</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZvN4v6pTwX5NdYYGNGEZQ.avif" /></figure><p>In our today’s digital world, many of us are deeply engrossed in our screens whether it’s our phones, laptops, gaming consoles, televisions, or any other digital device that captures our attention.</p><p>Sometimes, our screen time is work-related, helping us complete daily professional tasks that would otherwise be impossible without technology. Other times, it’s purely for entertainment which watching movies, streaming music, scrolling through social media, or enjoying comedy skits.</p><p>Regardless of the reason, the time we spend on screens can have both positive and negative effects on our mental wellbeing.</p><p>This project explores how daily screen time both for work and leisure relates to our overall mental wellbeing, using <strong>data collected from 400 survey participants</strong> and analyzed with <strong>Power BI and Excel for statistical analysis</strong>.</p><h4><strong>Why This Analysis Is Important</strong></h4><p>In today’s hyper connected society, understanding the impact of screen time on mental well being is more than just an academic exercise it’s a growing public health concern. As technology continues to integrate into every aspect of our lives, people are spending unprecedented hours in front of screens.</p><p>Prolonged screen exposure has been linked to issues such as stress, anxiety, sleep disruption, and reduced social interaction. However, not all screen time is harmful the key lies in understanding the balance between <em>productive</em> and <em>recreational</em> screen use.</p><p>By analyzing data from 400 survey responses using <strong>Excel for statistical analysis</strong> and <strong>Power BI for visualization</strong>, this study provides actionable insights that can help individuals, organizations, and policymakers make informed decisions about healthy digital habits.</p><h3>The Dataset</h3><p>In the quest to understand the <strong>impact of screen time on our mental wellbeing</strong>, the dataset used in this analysis consists of <strong>400 survey responses</strong> and <strong>15 key columns</strong>, each providing valuable insights into participants’ lifestyles, habits, and psychological health.</p><p>Below is a breakdown of the dataset columns:</p><ol><li><strong>User ID</strong> — Provides a unique identifier for each participant in the survey</li><li><strong>Age</strong> — Represents the age of each participant.</li><li><strong>Gender</strong> — Indicates whether a participant is male or female.</li><li><strong>Occupation</strong> — Describes whether participants are employed, unemployed, students, or self-employed.</li><li><strong>Work Mode</strong> — Identifies the participant’s mode of work: <em>Hybrid</em>, <em>Remote</em>, or <em>In-person</em>.</li><li><strong>Screen Time (hours/day)</strong> — Shows the total number of hours participants spend on screens daily.</li><li><strong>Work Screen Time (hours/day)</strong> — Indicates how many hours participants spend on screens for work-related activities.</li><li><strong>Leisure Screen Time (hours/day)</strong> — Captures how much time participants spend on screens for entertainment or leisure purposes.</li><li><strong>Sleep Hours (hours/day)</strong> — Reflects the number of hours participants sleep each day.</li><li><strong>Sleep Quality (1–5)</strong> — Rates the perceived quality of sleep, with <em>1</em> being poor and <em>5</em> being excellent.</li><li><strong>Stress Level (1–10)</strong> — Measures the degree of stress experienced by participants.</li><li><strong>Productivity (1–100)</strong> — Assesses the level of productivity at work or during daily tasks.</li><li><strong>Exercise Hours per Week</strong> — Indicates how many hours participants dedicate to physical exercise weekly.</li><li><strong>Social Hours per Week</strong> — Represents the number of hours participants spend socializing each week.</li><li><strong>Mental Wellbeing (1–100)</strong> — Reflects the overall mental wellness score of each participant.</li></ol><p>In addition to these columns, <strong>categorical features</strong> were created for <em>Sleep Quality group</em>, <em>Mental Wellness Index group</em>, and <em>Age Groups</em> to support deeper statistical and visual analysis.</p><h3>Data Cleaning and Analysis (Power Query &amp; Excel Approach)</h3><p>The data preparation process was carried out using <strong>Power Query</strong>, while statistical analysis was performed in <strong>Excel</strong>. This combination allowed for an efficient workflow — Power Query handled the data transformation, and Excel provided the flexibility for deep statistical exploration.</p><h4>1. Data Cleaning with Power Query</h4><p>Power Query was used to ensure the dataset was properly structured and ready for analysis. The following steps were performed:</p><ul><li><strong>Data Import:</strong> The raw survey data was imported into Power Query for cleaning and transformation.</li><li><strong>Handling Missing Values:</strong> Power Query’s <em>Remove Errors</em> and <em>Replace Values</em> tools were used to handle missing or invalid data, ensuring data consistency.</li><li><strong>Data Type Correction:</strong> Each column was assigned the correct data type numerical, decimal, or text to prevent calculation errors in Excel.</li><li><strong>Removing Duplicates:</strong> Duplicate entries were identified and removed using Power Query’s <em>Remove Duplicates</em> feature.</li><li><strong>Categorization:</strong> New categorical columns were created to group participants into <em>Age Groups</em>, <em>Sleep Quality Levels</em>, and <em>Mental Wellbeing Categories</em> using conditional column rules.</li><li><strong>Renaming Columns:</strong> Column headers were standardized for clarity and consistency before loading the data back into Excel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzm0p2vd421G9M_o4HkBrg.png" /><figcaption>A Clean Data set on Power query</figcaption></figure><p><strong>Data Analysis</strong></p><p>Insight on the 400 surveys that was collected</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3R9m3kREv36NuJs754_WcA.png" /><figcaption>A Dashboard on the impact of screen time on mental wellness</figcaption></figure><h3>Data Analysis and Insights</h3><p>From the <strong>400 surveys collected</strong>, the analysis revealed several patterns that highlight how screen time affects our mental wellbeing.</p><h4>1. Overall Mental Wellness</h4><p>The <strong>average mental wellness score</strong> among participants was <strong>20.3</strong> on a scale of 1 to 100.<br> This implies that a majority of participants reported <strong>low levels of mental wellbeing</strong>, which is a serious concern and may be linked to prolonged screen exposure, stress, or poor sleep quality.</p><h4>2. Average Screen Time</h4><p>Participants spent an <strong>average of 9 hours per day</strong> on screens. Out of this total, <strong>75.8%</strong> of screen time was for <strong>leisure purposes</strong> (watching videos, gaming, social media, etc.). <strong>24.2%</strong> of screen time was for <strong>work-related activities</strong>.This imbalance suggests that most individuals are more engaged in recreational screen use, which could contribute to mental fatigue and reduced focus over time.</p><h4>3. Stress Level</h4><p>The <strong>average stress level</strong> across participants was <strong>8.2 out of 10</strong>, indicating a <strong>high-stress rate</strong> among respondents. High stress, combined with extended screen exposure, may negatively influence both sleep quality and mental wellbeing.</p><h4>4. Sleep Duration and Quality</h4><p>Participants reported an <strong>average of 7.01 hours of sleep per day</strong>, which meets the general sleep recommendation for adults. However, <strong>sleep quality</strong> tells a different story.</p><h4>5. Sleep Quality by Work Mode</h4><p>When analyzing <strong>sleep quality</strong> (rated 1 to 5) across different <strong>work modes </strong><em>In-person</em>, <em>Remote</em>, and <em>Hybrid</em> — the findings showed:</p><p><strong>. In-person workers:</strong> Average sleep quality of <strong>1.44</strong></p><ul><li><strong>Hybrid workers:</strong> Average sleep quality of <strong>1.44</strong></li><li><strong>Remote workers:</strong> Slightly lower sleep quality overall</li></ul><p>From the dashboard, we can see that <strong>sleep quality remains poor across all work modes</strong>, suggesting that work flexibility alone doesn’t guarantee better rest. Other lifestyle factors, such as screen exposure before bedtime and stress, might play a bigger role.</p><p><strong>Average screen time by age group</strong></p><p>From the dashboard, the <strong>average screen time</strong> was analyzed across different <strong>age groups</strong> <em>Teenagers, Young Adults, Early Career, Mid Career, Mature Adults,</em> and <em>Pre-retirement</em>.</p><p>The analysis revealed that the <strong>Pre-retirement group</strong> recorded the <strong>highest average screen time of 13 hours per day</strong>, which is significantly above the overall average. The other groups <em>Early Career, Mid Career, Young Adults,</em> and <em>Mature Adults</em> all reported an average of <strong>9 hours per day</strong>, while <strong>Teenagers</strong> had the <strong>lowest average screen time of 8 hours per day</strong>.</p><p>This pattern suggests that <strong>screen usage tends to increase with age</strong>, possibly due to work-related commitments or increased time spent on digital entertainment among older adults. On the other hand, teenagers may have relatively lower screen exposure, perhaps due to school schedules or parental restrictions.</p><p><strong>Stress level by Age group</strong></p><p>From the dashboard, the <strong>average stress level</strong> was analyzed across different <strong>age groups </strong><em>Teenagers, Young Adults, Early Career, Mid Career, Mature Adults,</em> and <em>Pre-retirement</em>.</p><p>The results revealed that the <strong>Pre-retirement group</strong> had the <strong>highest average stress level</strong>, reaching <strong>10 on a scale of 1–10</strong>. This may reflect the <strong>accumulated stress from years of work and life responsibilities</strong>.</p><p>All other age groups <em>Young Adults, Early Career, Mid Career,</em> and <em>Mature Adults</em> maintained an average stress level of around <strong>8 points</strong>, indicating a generally high-stress experience among the working-age population. <strong>Teenagers</strong> recorded the <strong>lowest average stress level</strong>, which could be due to the protective environment of parental guidance and a primary focus on academics rather than work-related pressure.</p><p>Overall, the analysis suggests that <strong>stress levels tend to increase with age</strong>, possibly influenced by professional demands, financial pressures, or extended exposure to screen time.</p><p><strong>Mental wellness by work mode</strong></p><p>The dashboard also explored <strong>mental wellbeing</strong> across different <strong>work modes </strong><em>In-person, Hybrid,</em> and <em>Remote</em>.</p><p>The results revealed that:</p><ul><li><strong>In-person workers</strong> reported an average mental wellbeing score of <strong>24</strong></li><li><strong>Hybrid workers</strong> recorded <strong>22</strong></li><li><strong>Remote workers</strong> had the lowest score of <strong>16</strong>.</li></ul><p>Although <strong>in-person employees</strong> appear to have slightly better mental wellness than the other groups, the findings show that <strong>mental wellbeing remains generally low across all work modes</strong>.</p><p>This indicates that regardless of where people work whether physically present, in a hybrid setup, or remotely <strong>many individuals still experience low levels of mental wellness</strong>. Contributing factors could include prolonged screen exposure, work stress, isolation, or poor sleep quality.</p><p>Overall, while work mode plays a role, the data suggests that <strong>the broader issue of screen time and stress</strong> might have a stronger influence on mental wellbeing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6E1iZ9lrRGqlfC4QTr2eSw.png" /></figure><p><strong>Sleep quality by mental wellness</strong></p><p>From the dashboard, the relationship between <strong>sleep quality</strong> and <strong>mental wellbeing</strong> was examined, revealing a clear and positive connection between the two variables.</p><p>Participants who reported <strong>good sleep quality</strong> had an <strong>average mental wellbeing score of 85 out of 100</strong>, showing the strong positive effect of quality sleep on mental health. This was followed by those who had <strong>fair sleep quality</strong>, with an average mental wellbeing score of <strong>58</strong>.</p><p>In contrast, participants with <strong>poor sleep quality</strong> recorded an average mental wellbeing score of <strong>34</strong>, while those with <strong>very poor sleep quality</strong> had the lowest score of <strong>11</strong>.</p><p>This analysis suggests that <strong>individuals with poor or very poor sleep quality tend to experience lower mental wellbeing</strong>. It reinforces the understanding that <strong>adequate and restful sleep plays a vital role in maintaining good mental health</strong>, reducing stress, and enhancing productivity.</p><p><strong>Mental Wellness Distribution Among Respondents</strong></p><p>From the dashboard analysis, mental wellness was categorized into three groups: <strong>Low</strong>, <strong>Medium</strong>, and <strong>High</strong>.</p><p>It was observed that <strong>335 (84%) individuals</strong> reported <em>low</em> mental wellness, indicating a significant concern that highlights the urgent need for increased mental health awareness and support initiatives within society.</p><p>Meanwhile, <strong>53 (13%) respondents</strong> reported <em>medium</em> mental wellness suggesting they are in a moderately balanced state but still require attention to maintain or improve their well-being.</p><p>Only <strong>12 (3%) respondents</strong> reported <em>high</em> mental wellness, showing that very few individuals experience optimal mental health.</p><p>This analysis emphasizes the importance of continuous education, awareness campaigns, and proactive mental wellness programs to help individuals better manage stress, improve emotional health, and enhance overall well-being.</p><p><strong>Exercise per Week by Work Mode</strong></p><p>From the dashboard, the average exercise time per week differs slightly across work modes. Individuals who work <strong>in person</strong> exercise the most, averaging <strong>115 minutes per week</strong>. This is followed by <strong>remote workers</strong> with <strong>109 minutes</strong>, and <strong>hybrid workers</strong> with <strong>107 minutes</strong>.</p><p>Although the differences are minimal, the analysis suggests that those who work fully in person may engage in slightly more physical activity compared to remote or hybrid workers. This could be due to factors such as commuting, structured routines, or access to on-site fitness facilities.</p><p><strong>Social Hours per Week by Work Mode</strong></p><p>From the dashboard, employees who work <strong>in person</strong> reported the highest average social hours per week at <strong>8.2 hours</strong>, followed closely by <strong>hybrid workers</strong> at <strong>8.1 hours</strong>, while <strong>remote workers</strong> recorded the lowest at <strong>7.5 hours</strong>.</p><p>This finding suggests that <strong>in-person and hybrid work modes encourage more social interaction</strong>, likely due to face-to-face communication and workplace engagement. On the other hand, <strong>remote workers tend to have fewer social interactions</strong>, which could impact their sense of connection and overall mental wellness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PalGC7ULyOEMC62AuNVTRA.png" /></figure><p><strong>Average Exercise per Week by Mental Wellness</strong></p><p>From the dashboard, individuals with <strong>high mental wellness</strong> reported the highest average exercise time of <strong>145 minutes per week</strong>, followed by those with <strong>medium mental wellness</strong> at <strong>133 minutes</strong>, and those with <strong>low mental wellness</strong> at <strong>103 minutes</strong>.</p><p>This clearly indicates a <strong>positive relationship between exercise and mental wellness</strong> individuals who engage in more physical activity tend to have better mental wellbeing. Regular exercise appears to play an important role in improving mood, reducing stress, and supporting overall mental health.</p><p><strong>Average Screen Time by Sleep Quality</strong></p><p>From the dashboard, individuals who reported <strong>very poor sleep quality</strong> had the <strong>highest average screen time of 9.5 hours per day</strong>, followed by those with <strong>poor sleep quality</strong> at <strong>8.2 hours</strong>, <strong>fair sleep quality</strong> at <strong>7.6 hours</strong>, and <strong>good sleep quality</strong> at <strong>6.7 hours</strong>.</p><p>This analysis suggests an <strong>inverse relationship between screen time and sleep quality</strong> as screen time increases, sleep quality tends to decrease. Excessive screen exposure, especially before bedtime, may negatively impact rest and contribute to poor mental and physical wellbeing.</p><p><strong>Average Mental Wellbeing by Age Group</strong></p><p>From the dashboard, the <strong>average mental wellbeing</strong> was highest among <strong>teenagers (60 points)</strong>, followed by <strong>mid-career adults (56)</strong>, <strong>young adults (55)</strong>, <strong>early career individuals (53)</strong>, <strong>mature adults (50)</strong>, and the <strong>pre-retirement group (37)</strong>.</p><p>This trend suggests that <strong>mental wellbeing tends to decline with age</strong>, possibly due to increasing responsibilities, work-related stress, financial pressures, and reduced social engagement. Teenagers, who often experience fewer life pressures and more leisure time, appear to have relatively better mental wellbeing compared to older groups.</p><p><strong>Average Sleep Hours by Mental Wellness Group</strong></p><p>From the dashboard, individuals with <strong>high mental wellness</strong> recorded an average of <strong>8.3 hours of sleep per day</strong>, those with <strong>medium mental wellness</strong> averaged <strong>7.8 hours</strong>, while those with <strong>low mental wellness</strong> slept an average of <strong>6.8 hours</strong>.</p><p>This indicates a <strong>positive relationship between sleep duration and mental wellbeing</strong> individuals who sleep longer tend to report better mental health. Adequate rest appears to play a crucial role in supporting emotional stability, productivity, and overall psychological balance.</p><p><strong>Stress Level by Mental Wellness</strong></p><p>From the dashboard, individuals with <strong>low mental wellness</strong> reported the <strong>highest average stress level of 8.8</strong> (on a scale of 1–10), those with <strong>medium mental wellness</strong> recorded an average stress level of <strong>5.1</strong>, while those with <strong>high mental wellness</strong> had the <strong>lowest stress level of 2.5</strong>.</p><p>This reveals a <strong>strong inverse relationship between stress and mental wellbeing</strong> as stress levels decrease, mental wellness improves. It highlights the importance of stress management and mental health awareness in promoting overall wellbeing and productivity.</p><p><strong>Productivity by Average Mental Wellness</strong></p><p>From the dashboard, individuals with <strong>high mental wellness</strong> recorded an average <strong>productivity score of 94</strong>, those with <strong>medium mental wellness</strong> had <strong>75</strong>, while participants with <strong>low mental wellness</strong> averaged <strong>50</strong>.</p><p>This clearly shows a <strong>direct relationship between mental wellness and productivity</strong> as mental wellbeing improves, so does one’s ability to perform effectively. Individuals with better mental health tend to stay more focused, motivated, and efficient in their daily tasks.</p><h4><strong>Regression Analysis: Understanding the Relationship Between Screen Time and Mental Wellbeing</strong></h4><p>To further understand how <strong>screen time impacts mental wellbeing</strong>, I performed a <strong>multiple regression analysis</strong> using <strong>screen time, sleep hours, stress level, and exercise hours</strong> as independent variables, with <strong>mental wellbeing</strong> as the dependent variable.</p><h4>Why This Analysis Was Conducted</h4><p>While the dashboard provided descriptive insights on how factors like screen time, sleep, and stress relate to mental wellness, it did not quantify <em>how strongly</em> or <em>significantly</em> each of these variables influences mental wellbeing.<br> A regression analysis helps to uncover:</p><ul><li>Whether an <strong>increase in screen time</strong> actually leads to a <strong>decrease in mental wellbeing</strong>.</li><li>How much <strong>sleep quality</strong> and <strong>exercise</strong> can improve mental health outcomes.</li><li>The <strong>magnitude of stress</strong> as a negative predictor of mental wellbeing.</li></ul><p>In simple terms, regression allows us to move beyond observation and determine <strong>cause-and-effect tendencies</strong> among these variables.</p><h4>Importance of the Analysis</h4><ol><li><strong>Quantifies Relationships:</strong><br> It measures the exact effect of each factor (e.g., how many points mental wellbeing decreases for every additional hour of screen time).</li><li><strong>Data-Driven Decision-Making:</strong><br> Organizations, schools, and workplaces can use the findings to create policies that encourage healthier screen habits and promote wellness initiatives.</li><li><strong>Identifies Key Predictors:</strong><br> It helps to know which variable (screen time, stress, sleep, or exercise) has the strongest influence on mental wellbeing.</li><li><strong>Supports Preventive Measures:</strong><br> Understanding these relationships provides a foundation for awareness campaigns or behavioral interventions focused on reducing screen dependency and managing stress.</li></ol><h3>Regression Analysis Result and Interpretation</h3><p>The regression model was built to examine how <strong>screen time hours, sleep hours, exercise minutes per week, stress level, and social hours per week</strong> affect <strong>mental wellbeing</strong> among 400 participants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*OpRj-TjSfygS3RWXrnI5YQ.png" /><figcaption>A Regression Analysis</figcaption></figure><h4>Model Summary</h4><p>Metric Value Interpretation <strong>Multiple R</strong>0.93 Indicates a very strong correlation between the independent variables and mental wellbeing.R <strong>Square </strong>0.866, about <strong>86.6% of the variation</strong> in mental wellbeing can be explained by the model this shows the model fits the data very well. Adjusted<strong> R Square </strong>0.864 after adjusting for the number of predictors, the model still explains <strong>86.4%</strong> of the variance, which means the independent variables are highly relevant. Significance<strong> F</strong>2.3 × 10⁻¹⁶⁹ The model is <strong>statistically significant overall</strong> (p &lt; 0.05), indicating that the predictors, taken together, have a meaningful impact on mental wellbeing.</p><h4>Coefficients and Interpretations</h4><p>Variable Coefficient P-value Interpretation <strong>Intercept </strong>55.41&lt; 0.001Baseline mental wellbeing score when all other factors are zero. <strong>Screen Time Hours </strong>0.0204 which means no significant relationship. Screen time alone does not significantly predict mental wellbeing when other factors are considered.<strong>Sleep Hours </strong>4.14&lt; 0.001 is <strong>Positive and significant,</strong>each additional hour of sleep increases mental wellbeing by about 4.1 points, holding other factors constant.<strong>Exercise Minutes per Week </strong>0.019&lt; 0.001 <strong>Positive and significant </strong>more exercise improves mental wellbeing slightly. For every 100 minutes of exercise, mental wellbeing increases by roughly 1.9 points. Stress<strong> Level (1–10)</strong>-8.03&lt; 0.001 <strong>Strong negative relationship</strong> each additional stress level point decreases mental wellbeing by 8 points, making it the most powerful predictor in the model. <strong>Social Hours per Week </strong>-0.118 Not statistically significant social time does not have a measurable effect in this model.</p><h4>Key Insights</h4><ol><li><strong>Stress level</strong> is the <strong>most influential variable</strong>, showing a strong and statistically significant negative effect on mental wellbeing.</li><li><strong>Sleep hours</strong> and <strong>exercise minutes</strong> have positive, meaningful effects, confirming that better rest and physical activity improve mental health.</li><li><strong>Screen time hours</strong> showed no significant effect in this model suggesting its impact might be indirect (e.g., through stress or poor sleep).</li><li>The <strong>model explains over 86%</strong> of mental wellbeing variation, meaning the chosen predictors are highly effective in understanding what influences mental health.</li></ol><h4>Conclusion</h4><p>This regression analysis reveals that maintaining <strong>adequate sleep</strong>, <strong>regular exercise</strong>, and <strong>low stress levels</strong> are key to improving mental wellbeing. While screen time didn’t directly predict mental wellness in this model, its potential <strong>indirect effects</strong> (like reduced sleep and increased stress) cannot be ignored.</p><p>Overall, the findings highlight the importance of <strong>healthy lifestyle habits</strong> and <strong>stress management</strong> in enhancing psychological wellbeing in a digitally connected world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80c5f1837960" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Voyage of Dreams Turned Tragedy: What the Titanic Taught Us About Survival]]></title>
            <link>https://medium.com/@johnkingsley810/a-voyage-of-dreams-turned-tragedy-what-the-titanic-taught-us-about-survival-3af36643261c?source=rss-19b0b80fd184------2</link>
            <guid isPermaLink="false">https://medium.com/p/3af36643261c</guid>
            <dc:creator><![CDATA[Kingsley John]]></dc:creator>
            <pubDate>Sat, 18 Oct 2025 15:25:46 GMT</pubDate>
            <atom:updated>2025-10-18T15:25:46.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*8muifpspxDDWDRGhcEGOoQ.jpeg" /><figcaption>Photo by John DeBusi Jr on Pinterest.com</figcaption></figure><p><em>In 1912, the RMS Titanic was the epitome of luxury and human engineering a floating palace that promised an unforgettable journey across the Atlantic. Owned by the White Star Line, this grand vessel was designed not just for transportation, but for prestige. With elegant staircases, lavish dining halls, a swimming pool, and first-class suites that rivaled five-star hotels, the Titanic was a marvel of its time.</em></p><p><em>The ship was set to sail from </em><strong><em>Southampton, England</em></strong><em>, making stops in </em><strong><em>Cherbourg, France</em></strong><em>, and </em><strong><em>Queenstown (now Cobh), Ireland</em></strong><em>, before crossing the ocean to New York City. With a capacity to carry over </em><strong><em>3,500 passengers and crew</em></strong><em>, and stretching </em><strong><em>882 feet in length</em></strong><em>, it stood as a symbol of ambition and progress.</em></p><p><em>But that dream was short-lived.</em></p><p><em>On its maiden voyage, the “unsinkable” ship collided with an iceberg and sank into the cold depths of the Atlantic, claiming more than </em><strong><em>1,500 lives</em></strong><em>. It was one of the deadliest maritime disasters in history, and the world has never forgotten it.</em></p><p><em>Over a century later, the story of the Titanic is still studied not just for its tragedy, but for the valuable lessons hidden within its data.</em></p><p><em>In this project, I set out to analyze the Titanic dataset using </em><strong><em>Microsoft Excel</em></strong><em>, asking one central question:</em></p><p><strong><em>What factors determined who survived and who didn’t?</em></strong></p><blockquote>From <strong>age</strong> and <strong>gender</strong> to <strong>passenger class</strong> and <strong>fare</strong>, this analysis dives deep into the human side of the numbers. Behind each row in the dataset is a story a family, a traveler, a dreamer. By understanding the patterns in who survived, we not only uncover history but learn how to better protect lives in the future.</blockquote><p><strong><em>Why This Analysis Matters</em></strong></p><p><em>As I delved into the Titanic dataset, my goal wasn’t just to crunch numbers it was to understand </em><strong><em>what truly influenced survival during one of the most tragic maritime disasters in history</em></strong><em>.</em></p><p><em>Using tools like </em><strong><em>Microsoft Excel</em></strong><em>, I explored a range of key variables:</em></p><p><strong><em>.Age</em></strong></p><ul><li><strong><em>Passenger Class</em></strong></li><li><strong><em>Survival Status</em></strong></li><li><strong><em>Fare</em></strong></li><li><strong><em>Boat (Evacuation) Information</em></strong></li><li><strong><em>Gender</em></strong></li><li><em>These features provided crucial insights into </em><strong><em>who had a better chance of surviving and why</em></strong><em>.</em></li></ul><p><em>By studying these patterns, we can do more than reflect on the past. We can extract lessons that inform future decisions especially when it comes to emergency preparedness on luxury vessels. If history is ever to repeat itself, let it do so with better outcomes. </em><strong><em>Evacuation plans, passenger accommodations, and safety protocols must be inclusive</em></strong><em>, prioritizing not just status or class, but </em><strong><em>every human life onboard</em></strong><em>, regardless of gender, age, or ticket type.</em></p><p><em>This analysis aims to help us ask difficult questions and spark thoughtful conversations that move us forward from tragedy to transformation.</em></p><p><strong><em>The Dataset</em></strong></p><p><em>The Titanic dataset is a well-known dataset that contains information about 1,309 passengers who boarded the Titanic. This dataset represents a subset of the total 2,224 passengers and crew members who were on board during the ship’s maiden voyage.</em></p><p><em>Widely used in the data science community, the Titanic dataset serves as a benchmark for classification modeling, predictive analysis, and data visualization.</em></p><p><strong><em>This dataset contains a variety of features (columns), which include:</em></strong></p><p><em>Passenger Id — A unique ID assigned to each passenger</em></p><ul><li><em>Survived — Survival status (0 = No, 1 = Yes)</em></li><li><em>Pclass — Passenger class (1st, 2nd, or 3rd)</em></li><li><em>Name — Full name of the passenger</em></li><li><em>Sex — Gender of the passenger</em></li><li><em>Age — Age in years</em></li><li><em>SibSp — Number of siblings or spouses aboard</em></li><li><em>Parch — Number of parents or children aboard</em></li><li><em>Ticket — Ticket number</em></li><li><em>Fare — Fare paid for the ticket</em></li><li><em>Cabin — Cabin number (where available)</em></li></ul><p><em>Embarked — Port of embarkation (C = Cherbourg, Q = Queenstown, S = Southampton)</em></p><p><em>Boat-Served as an evacuator for passengers</em></p><blockquote>Importantly, this dataset only includes information on passengers crew members are not represented.</blockquote><p><strong><em>Data Cleaning: Making Sense of the Chaos</em></strong></p><p><em>Just like any real-world dataset, the Titanic dataset didn’t come perfect. It was messy filled with missing values, inconsistent formats, and unclear data points. Before drawing any conclusions, I had to </em><strong><em>pause and clean up the data</em></strong><em>.</em></p><p><em>Missing ages, incomplete cabin records, and unstructured names all posed challenges. Using </em><strong><em>Microsoft Excel</em></strong><em>, I tackled these issues one step at a time:</em></p><p><strong><em>Filled or flagged missing values</em></strong></p><ul><li><strong><em>Ensured the right data types were used (e.g., dates, numbers, and text)</em></strong></li></ul><p><strong><em>Created new columns like Age Group to better segment passengers</em></strong></p><p><em>This cleaning phase wasn’t just about formatting it was about </em><strong><em>respecting the integrity of the data</em></strong><em>. If the story of the Titanic was going to be told through numbers, I needed to make sure the numbers were telling the truth.</em></p><p><strong><em>Transforming Passenger Class: More Than Just a Number</em></strong></p><p><em>One of the first things I noticed was a column labeled </em><em>Pclass, representing passenger class. It used numerical codes </em><strong><em>1</em></strong><em>, </em><strong><em>2</em></strong><em>, and </em><strong><em>3 </em></strong><em>to indicate First, Second, and Third class.</em></p><p><em>While technically correct, these numbers lacked emotional resonance. So, I used </em><strong><em>Excel’s Find and Replace</em></strong><em> function to </em><strong><em>transform these codes into human terms</em></strong><em>:</em></p><p><em>.1 became </em><strong><em>First Class</em></strong></p><ul><li><em>2 became </em><strong><em>Second Class</em></strong></li><li><em>3 became </em><strong><em>Third Class</em></strong></li><li><em>I also renamed the column to </em><strong><em>Passenger Class</em></strong><em> for clarity. This small change made a big difference suddenly, it wasn’t just about numbers; it was about people, their experiences, and their place on the ship.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/71/1*SGBz7fh0leXD92TcOrgmWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/100/1*2x64OHGpBF8pvOtA3J--_g.png" /><figcaption>Transformed passengers class column</figcaption></figure><p><strong><em>Understanding the Survival Column: Life and Loss in Numbers</em></strong></p><p><em>One of the most crucial parts of the Titanic dataset is the </em><strong><em>Survived column</em></strong><em> simple yet powerful field that tells us whether a passenger made it out alive or not. But in its raw form, it was just cold numbers:</em></p><p><em>. 0 for those who </em><strong><em>did not survive</em></strong></p><ul><li><em>1 for those who </em><strong><em>survived</em></strong></li><li><em>While technically accurate, these binary values lacked emotion and clarity. To bring the human side of the data to the surface, I used </em><strong><em>Excel’s Find and Replace</em></strong><em> feature to transform the entries:</em></li></ul><p><em>0 was changed to </em><strong><em>&quot;No&quot;</em></strong></p><ul><li><em>1 was changed to </em><strong><em>&quot;Yes&quot;</em></strong></li></ul><p><em>I also renamed the column to </em><strong><em>“Survival Status”</em></strong><em> to make its meaning immediately clear.</em></p><p><em>This transformation was not just about readability — it helped unlock deeper insights. With labels like “Yes” and “No,” it became easier to build </em><strong><em>pivot tables</em></strong><em>, perform </em><strong><em>group analysis</em></strong><em>, and tell a more </em><strong><em>compelling story about survival</em></strong><em> aboard the Titanic.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*pchZdnI-EzERk253O4QSlg.png" /><figcaption>Transformed survival status column</figcaption></figure><p><strong><em>Arrangement of the Name Column: Extracting Identity from a Sea of Text</em></strong></p><p><em>At first glance, the </em><strong><em>Name</em></strong><em> column in the Titanic dataset seemed straightforward just a list of full passenger names. But beneath the surface lay a wealth of untapped information. Many names included </em><strong><em>titles</em></strong><em> like Mr., Mrs., Miss, and Master, quietly hinting at gender, age group, and even social class.</em></p><p><em>To make use of this hidden layer of meaning, I turned to Excel’s </em><strong><em>Text to Columns</em></strong><em> feature. Using a comma as the delimiter, I separated the </em><strong><em>surname</em></strong><em> from the </em><strong><em>title and first name</em></strong><em>. This small transformation had a big impact it allowed me to </em><strong><em>isolate titles</em></strong><em> and begin classifying passengers more meaningfully.</em></p><p><em>Next, with Excel’s </em><strong><em>CONCAT function</em></strong><em>, I reconstructed the names where needed, or simply worked with the individual pieces to analyze patterns. This was especially helpful in grouping passengers by gender, identifying children through the title Master, or spotting married women often labeled as Mrs.</em></p><p><em>In the end, cleaning and rearranging the Name column wasn’t just about formatting it opened up a new perspective into how identity and social norms may have played a role in who survived and who didn’t.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*S44RrAQukvgQNvzDasxmPA.png" /><figcaption>Transformation of the name column</figcaption></figure><p><strong><em>Gender and Survival: A Story in Two Words</em></strong></p><p><em>Among the columns in the Titanic dataset, </em><strong><em>Sex</em></strong><em> seemed deceptively simple just lowercase entries: “male” and “female”. But as with many aspects of data, even small refinements can make a big difference. To improve clarity and consistency, the column was renamed to </em><strong><em>“Gender”</em></strong><em>, and Excel’s </em><strong><em>PROPER function</em></strong><em> was applied, transforming the entries to “Male” and “Female” a cleaner, more presentable format.</em></p><p><em>Yet beyond this formatting fix, </em><strong><em>Gender became one of the most powerful variables in our analysis</em></strong><em>. Using Pivot Tables, a striking pattern emerged: </em><strong><em>female passengers had a dramatically higher survival rate</em></strong><em> than males. This supported the historical “women and children first” evacuation policy that influenced who made it onto lifeboats.</em></p><p><em>In the end, what started as a simple formatting task turned into a compelling narrative about human decisions, societal norms, and the lifesaving weight of gender on that fateful voyage.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/97/1*ASoDMi_fdbbcfptPUXxpSQ.png" /><figcaption>Transformation of the gender column</figcaption></figure><p><strong><em>Age: More Than Just a Number</em></strong></p><p><em>The </em><strong><em>Age</em></strong><em> column in the Titanic dataset was both essential and imperfect. While it provided crucial information about each passenger’s age, it also came with a challenge </em><strong><em>missing values</em></strong><em>. These gaps in the data had the potential to skew our insights, so a cleaning step was taken to handle or bypass null entries during analysis.</em></p><p><em>To uncover meaningful patterns, raw ages were transformed into defined </em><strong><em>age groups</em></strong><em>. Using </em><strong><em>Excel IF statements</em></strong><em>, passengers were categorized into ranges such as Children, Teens, Young Adults, Adults, and Seniors. This allowed for simplified comparisons and clearer insights into how survival outcomes differed by life stage.</em></p><p><em>Grouping the data also helped counter the impact of outliers those unusually young or old passengers that could distort average-based statistics. Instead, </em><strong><em>the MEDIAN function</em></strong><em> was explored to represent typical ages more accurately within each group.</em></p><p><em>What this transformation revealed was compelling: </em><strong><em>Children and Young Adults tended to have better survival rates</em></strong><em>, suggesting that youth and perhaps perceived vulnerability played a role in prioritization during the evacuation. The Age column, when structured thoughtfully, told a powerful story about who was saved and why.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/1*hF0lDwJ--H8PgPnzfdugCA.png" /></figure><p><strong><em>Lifeboats and Survival: Unlocking the “Evacuate” Column</em></strong></p><p><em>The original </em><strong><em>Boat</em></strong><em> column in the Titanic dataset listed the lifeboat number assigned to each surviving passenger. However, many entries were blank most often for passengers who tragically did not survive. While the raw data had its value, it lacked immediate clarity for analysis.</em></p><p><em>To enhance understanding, the column was renamed </em><strong><em>“Evacuate”</em></strong><em>, and transformed into a more intuitive </em><strong><em>Yes/No</em></strong><em> format using </em><strong><em>Excel’s IF function</em></strong><em>:</em></p><p><strong><em>“Yes”</em></strong><em> for passengers who had a lifeboat number, signaling evacuation,</em></p><p><strong><em>“No”</em></strong><em> for passengers with blank entries, indicating they likely were not evacuated.</em></p><p><em>Although this column closely mirrored the </em><strong><em>Survival Status</em></strong><em>, converting it this way provided additional storytelling power. It allowed analysts to cross-reference survival with lifeboat access, offering insight into </em><strong><em>how lifeboat allocation may have influenced survival outcomes</em></strong><em>.</em></p><p><em>In pivot tables and visual summaries, this new column helped humanize the data highlighting the stark realities of evacuation access during one of history’s most tragic maritime disasters.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/81/1*5jSp-iFxRaW4r_7Mgg_JdA.png" /></figure><p><strong><em>Understanding the Embarked Column</em></strong></p><p><em>The </em><strong><em>Embarked</em></strong><em> column in the Titanic dataset represents the </em><strong><em>port of embarkation</em></strong><em>, or where each passenger boarded the ship. The values in this column were originally recorded as single-letter codes:</em></p><ul><li><strong><em>S</em></strong><em> — Southampton (England)</em></li><li><strong><em>C</em></strong><em> — Cherbourg (France)</em></li><li><strong><em>Q</em></strong><em> — Queenstown (Ireland)</em></li></ul><p><em>To make the data more readable and intuitive, the column was kept as </em><strong><em>“Embarked”</em></strong><em>, but the codes were translated into their full port names using Excel’s </em><strong><em>Find and Replace</em></strong><em> feature. This helped improve clarity during analysis and visualization.</em></p><p><em>Although the </em><strong><em>Embarked</em></strong><em> column was not a core focus of the survival analysis in this project, it offers valuable context for broader exploration such as whether </em><strong><em>boarding location had any impact on survival</em></strong><em>, or if certain ports were associated with specific classes or demographics.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/138/1*Pv0C3anRqnHa213tVTMeMA.png" /></figure><p><strong>Other Dataset Features</strong></p><p><em>While the primary focus of this analysis was on factors like </em><strong><em>Gender</em></strong><em>, </em><strong><em>Age</em></strong><em>, </em><strong><em>Passenger Class</em></strong><em>, and </em><strong><em>Survival Status and Boat ,</em></strong><em>the Titanic dataset also included other features such as:</em></p><ul><li><strong><em>SibSp</em></strong><em>: The number of siblings or spouses aboard with a passenger.</em></li><li><strong><em>Parch</em></strong><em>: The number of parents or children aboard.</em></li><li><strong><em>Ticket</em></strong><em>: The ticket number assigned to each passenger.</em></li><li><strong><em>Fare</em></strong><em>: The amount paid for the ticket.</em></li></ul><p><em>These columns were not directly analyzed in detail for this report but are important in understanding passenger context and relationships. For example, </em><strong><em>SibSp</em></strong><em> and </em><strong><em>Parch</em></strong><em> can be useful in determining family survival patterns, while </em><strong><em>Fare</em></strong><em> might relate to ticket class and cabin location. However, for the purpose of this analysis, they were excluded from the final pivot table insights due to limited relevance in explaining survival on their own.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JEPB0EMOiFM5z-WhcMsLVQ.png" /><figcaption>The uncleaned Titanic Dataset</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqQpOptEo5Z-gK0IF8-Amw.png" /><figcaption>The cleaned Titanic dataset</figcaption></figure><p><strong><em>Data analysis</em></strong></p><p><strong><em>Insights on Factors That Affected Survival Rates</em></strong></p><p><em>After cleaning and preparing the Titanic dataset, we took a closer look at the key factors that influenced who survived the disaster. One of the most important elements was </em><strong><em>Passenger Class </em></strong><em>the social standing and accommodations aboard the ship, which turned out to have a powerful effect on survival chances.</em></p><p><em>Originally, Passenger Class was recorded as numbers 1, 2, and 3 but to make the data more intuitive, we transformed these into clear labels: </em><strong><em>First Class</em></strong><em>, </em><strong><em>Second Class</em></strong><em>, and </em><strong><em>Third Class</em></strong><em>.</em></p><p><em>The survival story of the </em><strong><em>First Class</em></strong><em> passengers stands out the most. Among the 323 passengers in this elite group, an impressive </em><strong><em>62% survived </em></strong><em>the highest survival rate across all classes.</em></p><p><em>When we look closer at gender within First Class, the contrast becomes even sharper. Nearly all </em><strong><em>female passengers in First Class survived</em></strong><em>, making up about </em><strong><em>43% of the total survivors</em></strong><em>. Meanwhile, </em><strong><em>male survival in First Class was significantly lower</em></strong><em>, with only </em><strong><em>19% of males</em></strong><em> making it through.</em></p><p><em>On the flip side, </em><strong><em>38% of First Class passengers did not survive</em></strong><em>, and this group was mostly male only </em><strong><em>2% were females who tragically lost their lives</em></strong><em>, while </em><strong><em>36% were males</em></strong><em>.</em></p><p><em>These numbers reveal a powerful story about the social dynamics aboard the Titanic. Being a woman and in First Class greatly increased a passenger’s chance of survival. This wasn’t just a matter of luck it reflected the evacuation priorities and societal norms of the time, where women and wealthier passengers were given precedence in the lifeboats.</em></p><p><strong><em>Second Class Survival Insights</em></strong></p><p><em>Looking at the </em><strong><em>Second Class</em></strong><em> passengers, the survival story shifts to a more mixed outcome. Out of 277 passengers in this middle tier, the overall survival rate was </em><strong><em>43%</em></strong><em>, noticeably lower than First Class but still significant.</em></p><p><em>When breaking the numbers down by gender, we see a clear difference: </em><strong><em>34% of the survivors were women</em></strong><em>, reflecting that many female passengers in Second Class were saved. In contrast, only </em><strong><em>9% of the men</em></strong><em> in Second Class survived.</em></p><p><em>On the other side, </em><strong><em>57% of Second Class passengers did not survive</em></strong><em>, and this group was mostly male — with </em><strong><em>53% of the total being men</em></strong><em> who lost their lives, while only </em><strong><em>4% were women</em></strong><em>.</em></p><p><em>These figures highlight how survival chances in Second Class were influenced by both social class and gender. While women still had a better chance of survival compared to men, the protections and privileges enjoyed by First Class passengers were less pronounced in this group. The struggle for survival was much tougher here, revealing a clear gradient in how different passengers were affected by the tragedy.</em></p><p><strong><em>Third Class Survival Insights</em></strong></p><p><em>Among the Titanic’s </em><strong><em>709 Third Class passengers</em></strong><em>, the survival story is the most tragic. Only </em><strong><em>26% survived</em></strong><em>, marking the lowest survival rate across all classes.</em></p><p><em>Breaking it down by gender reveals a stark reality: a large portion of male passengers did not survive, accounting for </em><strong><em>58% of those who perished</em></strong><em> in Third Class. Female survival was almost evenly split between those who survived and those who didn’t about </em><strong><em>15% of survivors were women</em></strong><em>, while </em><strong><em>16% of females sadly did not survive</em></strong><em>.</em></p><p><em>In contrast, only </em><strong><em>11% of Third Class men</em></strong><em> managed to survive the disaster.</em></p><p><em>These figures highlight the harsh conditions Third Class passengers faced. Their lower social standing and location on the ship severely limited their chances of escape, especially for men. This data underscores the grim reality that survival was deeply influenced by both class and gender during the tragedy.</em></p><p><strong><em>Summary</em></strong></p><p><em>Passenger class was a powerful factor in determining who survived the Titanic disaster. Passengers in higher classes especially women enjoyed significantly better chances of survival. In contrast, men from the lower classes faced the harshest outcomes, with the highest fatality rates. This clear divide reflects how social status and gender shaped the fate of those aboard the ship.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgw6L0QBs5oFBjZQtyP9Lw.png" /><figcaption>A statistics percentage of survival by passengers class</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*JXCPvO2nRqDKkdVypcQ-Ng.png" /><figcaption>Count Of Passengers By Class</figcaption></figure><p><em>We conducted a Chi-Square test to determine if there is an association between </em><strong><em>Passenger Class</em></strong><em> and </em><strong><em>Survival Status</em></strong><em> as part of analyzing the factors that affected survival rates. The result showed a </em><strong><em>p-value of 1.72083E-28</em></strong><em>, which is significantly smaller than the standard significance level of </em><strong><em>0.05</em></strong><em>.</em></p><p><em>This extremely low p-value led us to </em><strong><em>reject the null hypothesis</em></strong><em>, confirming that </em><strong><em>Passenger Class and Survival Status are not independent</em></strong><em>. In other words, </em><strong><em>passenger class significantly influenced survival chances</em></strong><em> during the Titanic disaster.</em></p><p><em>The result suggests that </em><strong><em>first-class passengers were given priority over other classes</em></strong><em>, likely receiving better access to lifeboats and evacuation support during the emergency.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5J5B7fIYi3qd8SsU9dg-xQ.png" /></figure><p><strong><em>Survival status by Age group</em></strong></p><ul><li><strong><em>Children (less than 13)</em></strong><em>had the </em><strong><em>highest survival rate</em></strong><em> at </em><strong><em>57%</em></strong><em>, with 54 children surviving out of 94. This reflects the likely prioritization of children during evacuation.</em></li><li><strong><em>Teens (less than 18) </em></strong><em>had a moderate survival rate of </em><strong><em>45%</em></strong><em>, showing they were less prioritized than children but still fared better than adults and young adults.</em></li><li><strong><em>Adults</em></strong><em> </em><strong><em>(ages less than 60)</em></strong><em> had a survival rate of </em><strong><em>42%</em></strong><em>, with 128 out of 305 surviving.</em></li><li><strong><em>Young Adults (less than 35)</em></strong><em>had the </em><strong><em>lowest survival rate</em></strong><em> among major age groups at </em><strong><em>34%</em></strong><em>. Out of 810 young adults, only 279 survived. Many young males were in third class and may have had limited access to lifeboats.</em></li><li><strong><em>Seniors</em></strong><em> had the lowest survival count and a </em><strong><em>30% survival rate</em></strong><em>, likely due to physical limitations during evacuation.</em></li></ul><p><strong>Survival status by evacuation</strong></p><ul><li><strong><em>Females</em></strong><em> had a significantly higher survival rate at </em><strong><em>68%</em></strong><em>, with only </em><strong><em>32%</em></strong><em> not surviving. This supports historical accounts that women were prioritized during the evacuation.</em></li><li><strong><em>Males</em></strong><em>, on the other hand, had a much lower survival rate of </em><strong><em>20%</em></strong><em>, with </em><strong><em>80%</em></strong><em> not surviving. This reflects the “women and children first” policy that was followed during the Titanic disaster.</em></li></ul><p><strong><em>Survival status by Gender</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*fmBm6JSjfRX9PnFOMLKLeQ.png" /><figcaption>Survival status by gender</figcaption></figure><ul><li><strong><em>Females had a 73% survival rate</em></strong><em>, significantly higher than that of males. Only 27% of the women on board did not survive.</em></li><li><strong><em>Males had a much lower survival rate of just 19%</em></strong><em>, with </em><strong><em>81%</em></strong><em> not surviving the tragedy.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwRkQWgzFsITQBqiguiyuQ.png" /><figcaption>A chi-square test on survival by gender</figcaption></figure><p><em>A chi-square test was conducted to examine the relationship between gender and survival status on the Titanic.<br> The test revealed a </em><strong><em>significant association</em></strong><em> between gender and survival status (</em><strong><em>p = 1.475 × 10⁻⁸¹</em></strong><em>), which is </em><strong><em>far less than 0.05</em></strong><em>.<br> Therefore, we </em><strong><em>reject the null hypothesis</em></strong><em> and conclude that </em><strong><em>gender did influence survival chances</em></strong><em>.<br> This suggests that </em><strong><em>female passengers were significantly more likely to survive</em></strong><em> than male passengers, likely due to the “women and children first” evacuation policy.</em></p><p><strong><em>Conclusion</em></strong></p><p><em>The Titanic tragedy remains one of the most studied maritime disasters in history not just for its scale, but for the lessons it offers in safety planning, class inequality, and crisis response. Through data analysis of the Titanic dataset, several key factors influencing survival were identified:</em></p><ul><li><strong><em>Passenger class</em></strong><em> played a significant role, with those in first class having the highest survival rates.</em></li><li><strong><em>Gender</em></strong><em> was another strong determinant women were far more likely to survive than men.</em></li><li><strong><em>Age group</em></strong><em> mattered as well; children had better survival outcomes compared to adults and seniors.</em></li><li><strong><em>Evacuation status</em></strong><em> further confirmed that passengers who made it to lifeboats had a drastically higher chance of survival.</em></li></ul><p><em>The data also exposed the imbalance in how rescue efforts were distributed, especially along class and gender lines.</em></p><p><strong><em>Recommendations</em></strong></p><ol><li><strong><em>Equitable Emergency Protocols</em></strong><em><br> Future passenger vessels should implement </em><strong><em>equal opportunity evacuation procedures</em></strong><em> that prioritize safety for all regardless of class, gender, or age. Life-saving equipment and exit access should be </em><strong><em>uniformly available</em></strong><em>.</em></li><li><strong><em>Mandatory Safety Drills</em></strong><em><br> All passengers, regardless of class, should undergo </em><strong><em>mandatory and clear safety drills</em></strong><em> upon boarding. This ensures familiarity with exits and procedures in the case of an emergency.</em></li><li><strong><em>Balanced Lifeboat Capacity</em></strong><em><br> The Titanic lacked sufficient lifeboats for all passengers. Future ships must be designed to include </em><strong><em>lifeboat space for every person on board</em></strong><em>, with regular inspections to ensure readiness.</em></li><li><strong><em>Data-Driven Planning</em></strong><em><br> Leveraging data like that from the Titanic can help modern-day planners simulate disaster scenarios and refine </em><strong><em>risk mitigation strategies</em></strong><em> based on demographic diversity.</em></li><li><strong><em>Training Crew for Inclusion</em></strong><em><br> Crew members should be trained to prioritize </em><strong><em>vulnerable groups </em></strong><em>such as children and elderly while ensuring no bias in helping individuals across class divisions.</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3af36643261c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>