Executive Summary
A pharmaceutical company launching a new vitamin product line faced a classic pricing dilemma: price too high and lose market share, price too low and leave money on the table. This article walks through the pricing optimization framework I built for this engagement — using Bayesian demand modeling and mixed-integer programming.
The Challenge
The company was launching a new vitamin product line but lacked a data-driven approach to set optimal prices. Traditional methods relied on competitor analysis and limited market research, potentially leading to missed opportunities or profit erosion.
The risks included:
- Suboptimal pricing leaving potential revenue unrealized
- Product cannibalization within their existing portfolio
- Market share erosion due to pricing misalignment
Approach
Data Gathering
The first step was collecting comprehensive market data including:
- Historical sales data of existing vitamin and sleep medication products
- Competitor pricing strategies across 15 major brands
- Consumer willingness-to-pay surveys (n=2,000)
- Market dynamics including seasonality effects
Demand Modeling
I used Bayesian analysis to estimate the relationship between price and demand. This provided a range of possible demand outcomes at different price points, accounting for uncertainty rather than relying on fixed assumptions.
Key advantages:
- Probability distributions for demand at each price point
- Confidence intervals for revenue projections
- Risk assessment for different strategies
Cost Analysis
The cost model factored in:
- Production costs at various volume tiers
- Distribution and marketing expenses
- Minimum required profit margins (35% floor)
- Break-even analysis for new product introduction
Mixed-Integer Programming (MIP)
I built a MIP model to optimize pricing across the entire product portfolio. This considered:
- Demand-price relationships
- Cost constraints
- Potential for cannibalization between products
- Product positioning hierarchy
Scenario Analysis
The model explored multiple objective functions:
- Maximize total revenue: Focus on top-line growth
- Maximize gross margin: Focus on profitability
- Balance market share and profit: Sustainable growth strategy
This made trade-offs between sales volume and profitability explicit and quantifiable.
Results and Impact
Data-Driven Pricing Transformation
The company transitioned from subjective pricing to a data-driven approach, with a pricing strategy grounded in cost structures and market dynamics.
Profitability Optimization
The MIP model identified optimal price points:
- Premium vitamins: 15% price increase opportunity identified
- Standard products: 8% price reduction to capture volume
- Value line: Strategic positioning for market penetration
Measured Outcomes
- 22% revenue increase across the portfolio
- Market share maintained at competitive levels
- 4.2 percentage points gross margin improvement
- 15% increase in new customer acquisition
Long-Term Strategic Advantage
The data-driven pricing framework provided:
- Agility to adapt pricing to market changes
- Flexibility for future product launches
- Resilience against inflation and cost pressures
- Competitive intelligence through systematic price tracking
Technical Implementation
Tools and Technologies
- Python for data analysis and modeling
- PyMC3 for Bayesian inference
- Gurobi for mixed-integer optimization
- AWS for deployment and A/B testing
- Tableau for executive dashboards
Monitoring Framework
The production system included ongoing monitoring for:
- Price elasticity evolution
- Competitive price movements
- Demand forecast accuracy
- Cannibalization effects
Key Learnings
What Worked Well
- Bayesian approach captured uncertainty better than point estimates
- Portfolio optimization prevented harmful cannibalization
- A/B testing framework allowed safe validation
Challenges Overcome
- Data quality issues required extensive cleaning
- Stakeholder buy-in needed education on algorithmic pricing
- Integration with existing systems required careful planning
Conclusion
This project illustrates what happens when you combine Bayesian modeling with constrained optimization in a real pricing context. Moving from intuition-based to data-driven pricing didn't just increase revenue — it gave the team a repeatable framework for future product launches.
The framework now extends across their entire product portfolio, with plans to incorporate machine learning for dynamic pricing in e-commerce channels.
Industry Leaders in Pricing Optimization
- PROS - AI-powered pricing and revenue management
- Pricefx - Cloud-based pricing software
- Vendavo - B2B pricing optimization
- Blue Yonder - Retail price optimization
Solutions
About the author

Cyril Noirot
Lead Data Scientist
Freelance data scientist. I design and ship decision systems — forecasting, pricing, marketing measurement, optimization.