Data Science · Real-world Uses
How Companies Use Data Science to Solve Real Problems
Quick summary — how companies use data science to solve real problems
Companies use data science to solve real problems such as forecasting demand, predicting which customers may leave, detecting fraud, recommending products and setting prices. Success comes from starting with a clear business question, using reliable data, comparing models with simple baselines and measuring the effect of decisions after deployment.
In this guide you will learn:
- Operations use cases — forecasting and optimisation.
- Customer use cases — churn, segmentation and recommendations.
- Risk use cases — fraud and anomaly detection.
- A business case template — for your own projects.
- Interview questions — about applied data science.
SECTION 01Operations: forecasting and optimisation
Operations teams use data science to plan better: how much stock to keep, how many staff to schedule and which routes to use. These problems appear in retail, logistics, manufacturing and healthcare:
| Problem | Typical data | Method | Business benefit |
|---|---|---|---|
| Demand forecasting | Past sales, seasons, holidays, promotions | Time-series and regression models | Less waste and fewer stock-outs |
| Staff planning | Footfall, call volumes, bookings | Forecasting plus scheduling rules | Better service at lower cost |
| Delivery routing | Locations, traffic patterns, time windows | Optimisation algorithms | Faster, cheaper deliveries |
| Predictive maintenance | Sensor readings, failure history | Classification or anomaly models | Fewer unexpected breakdowns |
import pandas as pd
# daily_sales.csv: date, units
df = pd.read_csv("daily_sales.csv", parse_dates=["date"]).set_index("date")
# Baseline 1: same day last week (seasonal naive)
df["naive_7"] = df["units"].shift(7)
# Baseline 2: average of the last 4 same weekdays
df["avg_4wk"] = (df["units"].shift(7) + df["units"].shift(14) +
df["units"].shift(21) + df["units"].shift(28)) / 4
test = df.loc["2026-09-01":].dropna()
for col in ["naive_7", "avg_4wk"]:
mae = (test["units"] - test[col]).abs().mean()
print(col, "MAE:", round(mae, 1))
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.metrics import mean_absolute_error
# Continuing with df from the baseline tab
df["dow"] = df.index.dayofweek
df["month"] = df.index.month
df["lag_7"] = df["units"].shift(7)
df["lag_14"] = df["units"].shift(14)
data = df.dropna()
features = ["dow", "month", "lag_7", "lag_14"]
train = data.loc[:"2026-08-31"]
test = data.loc["2026-09-01":]
model = GradientBoostingRegressor(random_state=0)
model.fit(train[features], train["units"])
print("model MAE:", round(mean_absolute_error(test["units"], model.predict(test[features])), 1))
# Keep the model only if it clearly beats the baselines.
SECTION 02Customers: churn, segmentation and recommendations
Customer-facing teams use data science to understand and serve customers better. These applications are common in telecom, banking, e-commerce, subscriptions and ed-tech:
| Problem | Question answered | Method | Action taken |
|---|---|---|---|
| Churn prediction | Which customers are likely to leave? | Classification models | Targeted retention offers |
| Segmentation | What groups of customers exist? | Clustering | Tailored messages and products |
| Recommendations | What will this customer want next? | Collaborative filtering, similarity | Personalised suggestions |
| Lifetime value | How valuable will a customer be? | Regression on purchase history | Smarter marketing spend |
import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.cluster import KMeans
# customers.csv: customer_id, recency_days, frequency, monetary
rfm = pd.read_csv("customers.csv")
X = StandardScaler().fit_transform(rfm[["recency_days", "frequency", "monetary"]])
rfm["segment"] = KMeans(n_clusters=4, n_init=10, random_state=0).fit_predict(X)
print(rfm.groupby("segment")[["recency_days", "frequency", "monetary"]]
.mean().round(1))
# Name segments by behaviour, e.g. 'loyal', 'at risk', 'new', 'occasional'
import pandas as pd
from sklearn.metrics.pairwise import cosine_similarity
# ratings.csv: user_id, item_id, rating
ratings = pd.read_csv("ratings.csv")
matrix = ratings.pivot_table(index="user_id", columns="item_id",
values="rating", fill_value=0)
# Item-to-item similarity
sim = pd.DataFrame(cosine_similarity(matrix.T),
index=matrix.columns, columns=matrix.columns)
def similar_items(item, n=5):
return sim[item].drop(item).sort_values(ascending=False).head(n)
print(similar_items(matrix.columns[0]))
SECTION 03Risk: fraud and anomaly detection
Banks, payment providers, insurers and online platforms use data science to spot unusual behaviour quickly. These problems are hard because bad events are rare and keep changing:
| Problem | Challenge | Method | Practical concern |
|---|---|---|---|
| Card or payment fraud | Very few fraud cases among many transactions | Classification with imbalance handling | Balance missed fraud vs false alarms |
| Insurance claims review | Suspicious patterns hidden in detail | Scoring models plus rules | Human review of flagged claims |
| Account takeover | Behaviour changes suddenly | Anomaly detection on activity | Fast response needed |
| Credit risk | Predicting repayment | Interpretable scoring models | Fairness and regulation |
import numpy as np
from sklearn.ensemble import IsolationForest
rng = np.random.default_rng(0)
# Normal transactions: amount and hour of day
normal = np.column_stack([rng.normal(1500, 400, 1000), rng.normal(14, 3, 1000)])
# A few unusual ones: very large amounts at odd hours
odd = np.array([[48000, 3], [52000, 2], [39000, 4]])
X = np.vstack([normal, odd])
model = IsolationForest(contamination=0.005, random_state=0).fit(X)
flags = model.predict(X) # -1 = anomaly
print("flagged rows:", np.where(flags == -1)[0][-5:])
Fraud model in practice (typical workflow)
1. Score each transaction in real time
2. Low score -> approve automatically
3. Medium score -> extra verification (OTP, confirmation)
4. High score -> hold and send to a human reviewer
5. Reviewer decision is recorded as a new label
6. Model is retrained regularly on new labels
7. Monitor: fraud caught, false alarms, customer complaints
Thresholds are business decisions, not only model settings.
SECTION 04Business data science case template
Use these templates to plan and present data science projects the way companies do:
Data science project charter
Business problem: ___________________________
Decision it will support: ____________________
Owner (business): ___________________________
Success metric: _____________________________
Current approach / baseline: _________________
Data available: ______________________________
Constraints: privacy, latency, explainability
Risks: _______________________________________
Timeline and checkpoints: ____________________
How will we measure real impact?
Before launch:
- Offline metric vs baseline: ________
After launch:
- A/B test or phased rollout? ________
- Business metric to track: ________
- Guardrail metrics: ________
- Review date: ________
If impact is not visible, what will we change?
________________________________________
Turn a public dataset into a business case
1. Choose a domain (retail, transport, health, finance)
2. Write the business question as a manager would
3. Define the decision and success metric
4. Build a baseline, then a model
5. Translate results into an action
6. Estimate impact qualitatively (avoid made-up numbers)
7. List risks and next steps
SECTION 05Tips for doing business-focused data science
These habits make data science useful to companies, not just technically correct:
- Start from the decision — know what action the business will take with your output.
- Respect the baseline — existing rules or simple averages are the bar to beat.
- Explain in business language — translate metrics into effects on cost, revenue or risk.
- Plan for monitoring — data changes over time, so models need checking after launch.
- Consider privacy and fairness — use personal data responsibly and check for unfair outcomes.
SECTION 06Interview Q&A — applied data science
Q1How do you decide whether a data science project is worth doing?
Check the business value, whether a decision will change based on the result, data availability and quality, the current baseline and the cost of building and maintaining a model.
Q2Why split time-series data by time instead of randomly?
Random splits let the model learn from future data, which is impossible in real use. Splitting by time mimics how forecasts are actually made.
Q3How would you build a churn model?
Define churn clearly, build features from past behaviour, split by time, train and compare classifiers against a baseline, choose a threshold based on retention costs and test interventions.
Q4How do you handle class imbalance in fraud detection?
Use metrics like precision and recall, class weights or resampling, careful threshold selection and evaluation on realistic, time-based splits.
Q5How do you measure the real impact of a deployed model?
Run an A/B test or phased rollout, track the business metric and guardrails, and compare against the previous approach over a sufficient period.
SECTION 07Test yourself — applied data science quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 08Frequently asked questions
How do companies use data science?
To forecast demand, predict churn, segment customers, recommend products, detect fraud, set prices, plan staffing and maintenance, and support many other decisions with data.
What industries use data science the most?
Retail and e-commerce, banking and payments, insurance, telecom, healthcare, logistics, manufacturing, media and ed-tech all use data science widely.
What is an example of data science solving a business problem?
A retailer forecasting demand by store and day to order the right stock, reducing waste and stock-outs compared with simple manual estimates.
Why do some data science projects fail in companies?
Common reasons include unclear business questions, poor data quality, no comparison with baselines, models no one acts on, and lack of monitoring after deployment.
How can I show business data science skills in a portfolio?
Frame each project as a business case: define the decision, success metric and baseline, build a model, translate results into actions and discuss risks and next steps.
SECTION 09Related reads
Classroom & online · Noida
Learn to apply data science to business problems
Our Data Science Training Course teaches statistics, machine learning and business framing through real-world case projects with mentor guidance.
Talk to a counsellor for current fees- Business case projects
- Forecasting and classification
- Mentor guidance
- Weekday & weekend batches