Fin Maverick
Foundations VocabularyAccounting & ReportingEconomics & MacroQuant Methods & ProgrammingBusiness & Company AnalysisCorporate Finance & ValuationBehavioural Finance
Banking & Market InfrastructureFixed Income & RatesDerivatives & Structured ProductsPublic EquitiesTransactions & DealsPortfolio ConstructionFunds & AMCs
Private Markets & AlternativesRisk, Treasury & ControlAI & Digital FinanceStochastic Calculus & PricingWealth & Personal FinanceIndian Markets & RegulationProfessional Practice
Explore NISM prep
Series-VIII · Equity DerivativesSeries-XII · Securities Markets FoundationSeries-V-A · Mutual Fund DistributorsSeries-XV · Research AnalystSeries-XIX-E · Category III AIF ManagersSeries-XIX-D · Category I & II AIF ManagersSeries-XIX-C · Alternative Investment Fund ManagersSeries-XVI · Commodity DerivativesSeries-VI · Depository OperationsSeries-II-A · Registrars & Transfer AgentsSeries-I · Currency DerivativesSeries-VII · Securities Operations & Risk Management
Explore Bootcamps
Equity ResearchPortfolio ManagementMutual Fund MasteryInvestment Banking Analyst
Private Equity AnalystQuant & Hedge Fund AnalystBreaking Into VCFinancial Analyst Program
Risk Management ProgramPrivate Wealth ManagementDebt Capital MarketsDerivatives Foundation
Explore Free Courses

Equity Research6

Writing an Investment ThesisBuilding a Discounted Cash FlowReading an Annual Report FastReading a Sector Before a CompanySpotting Quality of Earnings Red FlagsBuilding a Revenue Forecast From Drivers

Portfolio Management3

Rebalancing: When, Why and What It CostsStrategic and Tactical Asset AllocationMeasuring Risk in a Portfolio

Mutual Fund Mastery3

Comparing Funds Without Being FooledHow a NAV Is Struck and Which Day You GetReading a Fund Factsheet Properly

Derivatives Unlocked4

Hedging a Real ExposureThe Greeks, PracticallyFutures, the Basis and What Moves ItReading an Option Payoff

AI For Finance2

Retrieval and Grounding for FinanceDocument Extraction in Finance

Breaking Into Quants4

Backtesting a StrategyHypothesis TestingCleaning Financial DataRegression for Finance

Breaking Into VC3

Sizing a MarketReading a Term Sheet as a FounderHow a Venture Round Actually Works

Financial Analyst Program4

Common Size and Trend AnalysisReading a Cash Flow StatementRatio Analysis That Says SomethingBuilding a Working Capital Schedule

Risk Management Program2

Credit Exposure and How It Is ReducedValue at Risk and What It Hides

Investment Banking Analyst3

Precedent Transactions and Why They DifferReading a Term Sheet StructurallyBuilding a Comparable Companies Table

Private Wealth Management3

Tax Aware Portfolio DecisionsBuilding a Client Risk ProfileGoal Based Planning Arithmetic

Debt Capital Markets3

Analysing an Issuer's CreditDuration and What It Does Not Tell YouBond Pricing and Yield Mechanics

Private Equity Analyst2

Fund Waterfalls and CarryThe LBO in Structure

Hedge Funds Analyst2

Short Selling MechanicsLong Short Mechanics
QuarksCourses
Explore Interview Preparation
Investment BankingEquity ResearchVenture CapitalistPrivate EquityHedge Funds
QuantFinancial AnalysisPrivate Wealth ManagementDebt Capital MarketsRisk Management
Derivatives FoundationPortfolio ManagementMutual Fund Mastery
PartnershipsShowdown
Log inSign up
Interview tracksAll
1Investment Banking
Question bankPuzzlesCase studies
2Equity Research
Question bankPuzzlesCase studies
3Venture Capital
Question bankPuzzlesCase studies
4Private Equity
Question bankPuzzlesCase studies
5Hedge Funds
Question bankPuzzlesCase studies
6Quant
Question bankPuzzlesCase studies
7Financial Analysis
Question bankPuzzlesCase studies
8Private Wealth Management
Question bankPuzzlesCase studies
9Debt Capital Markets
Question bankPuzzlesCase studies
10Risk Management
Question bankPuzzlesCase studies
11Derivatives Foundation
Question bankPuzzlesCase studies
12Portfolio Management
Question bankPuzzlesCase studies
13Mutual Fund Mastery
Question bankPuzzlesCase studies
098

Case 098Compliance, risk limits and conductHard

Formulate the portfolio optimisation for a 40-stock fund: maximise expected return minus a risk penalty, with no stock above 10%, no sector above 30% and one-way turnover under 15% a month. Solve a four-stock version by hand and show which constraint binds.

BLBlackRockNew York · 2025

1The situation

Ganitika Asset Management, an invented fund house, is building a quantitative equity fund of about 40 stocks. The investment committee wants the optimisation written down before it is coded: the objective, every constraint, and a worked example small enough to check by hand. The rules are a 10% cap on any single stock, which also reflects the regulatory single-issuer limit for equity schemes (confirm the current figure), an internal cap of 30% on any sector, and one-way turnover of no more than 15% of NAV a month.

For the hand-worked version use four stocks with expected returns of 15%, 13%, 10% and 8%, each with 20% volatility and no correlation between them, a risk aversion of 2.5, and caps scaled to the small problem: 40% a stock and 60% for the sector that stocks A and B share. The fund currently holds 20%, 20%, 30% and 30%.

2Your task

Write the objective and constraints, solve the four-stock problem step by step, identify which constraint binds and what it costs, and show how the turnover rule changes what gets traded this month.

Quick check

In the four-stock example, which constraint ends up shaping the final weights?

Worked solution

Try it on paper, then open one step at a time.

30-second answerThe answer to give first

Maximise forecast return less a risk penalty, subject to a budget, no shorting, a 10% stock cap, a 30% sector cap and 15% monthly turnover; in the four-stock version the sector cap binds. Unconstrained, the weights are 42.5, 32.5, 17.5, 7.5%. The 40% stock cap trims A, but the sector cap on A plus B, which want 75%, is what sets the answer: 35, 25, 25, 15%, costing about 0.75 points of expected return. From today's book the move needs 20% of buys, so the 15% turnover rule splits it over two months.

Step 1What does the problem look like written down?

A shopping list with a budget and house rules. You want the most nutrition for the money, you cannot spend more than you have, you cannot buy negative rice, no single item may take over the trolley, and you do not swap the whole trolley every week. The objective is expected return minus a risk penalty: the sum of each stock's forecast times its weight, less a risk aversion number times the portfolio's variance. The constraints are the fences: weights sum to one and none is negative; no stock above 10% of NAV, which also keeps the fund inside the regulatory single-issuer limit, to be confirmed; no sector above 30%; and the sum of buys in a month no more than 15% of NAV. The forecasts come from research; the fences come from the mandate, the regulator and the dealing desk.

The relationship
max⁡w  μ⊤w−λ w⊤Σws.t.∑iwi=1,  0≤wi≤0.10,  ∑i∈swi≤0.30,  ∑imax⁡(wi−wi0,0)≤0.15\max_{w}\; \mu^{\top} w - \lambda\, w^{\top} \Sigma w \quad \text{s.t.}\quad \sum_i w_i = 1,\; 0 \le w_i \le 0.10,\; \sum_{i \in s} w_i \le 0.30,\; \sum_i \max(w_i - w_i^{0}, 0) \le 0.15
μvector of expected returns from research
wportfolio weights to be chosen
λrisk aversion, here 2.5
Σcovariance matrix of returns
w⁰current weights, so the last term is one-way turnover
What it says in wordsPick weights that maximise forecast return less a penalty on variance, inside the budget, the stock cap, each sector's cap and the month's turnover allowance.
The problem the committee signs off: one objective, four fences, and the fences do the shapingMaximise expected return - risk penaltysum of forecast x weight, less lambda x portfolio variance; the forecasts come from research, lambda from the mandatesubject toBudget and no shortingweights sum to 100%, none below zeroSingle stock capno stock above 10% of NAV; confirm the regulatory limitSector capno sector above 30% (internal rule)BINDS in the exampleTurnoverone-way buys under 15% of NAV a monthBINDS in the exampleFour stocks, caps scaled to 40% a stock and 60% a sector: the sector cap moves the answer, the stock cap ends up slack,and the turnover cap decides which trades happen this month and which wait.
The optimisation is one objective fenced by four constraints, and in the four-stock example it is the sector cap that moves the weights, with the turnover cap deciding which of the trades happen in the first month.
Step 2How do you solve the four-stock version by hand?

With equal variances and no correlation the penalty is 2.5 x 0.04 x the sum of squared weights, and the first-order condition says each weight is (forecast minus a common hurdle) divided by 0.2, with the hurdle set so the weights sum to one. Unconstrained, that gives A 42.5%, B 32.5%, C 17.5% and D 7.5%, an expected return of 12.95%. A breaches the 40% cap. Fix A at 40% and re-solve the other three over the remaining 60%: B 33.3%, C 18.3%, D 8.3%. Now A plus B is 73.3%, over the 60% sector cap, so the sector constraint is the one that matters.

Enforce it by solving two problems: 60% split between A and B with their own hurdle, and 40% between C and D with theirs. That gives A 35%, B 25%, C 25% and D 15%; A is now below 40%, so the single-stock cap has gone slack and only the sector cap binds. The two hurdles differ by 3 percentage points of return, which is the shadow price of the sector cap: relaxing it by one point of weight would add about 0.03 points of objective. Expected return falls from 12.95% to 12.20%, the price of the fence. A brute-force check over every weight combination in 1% steps confirms these are the best weights under both caps.

Four stocks, three stages: each fence moves weight from the best forecasts to the rest10%20%30%40%40% stock cap42.540.035Stock Aforecast 15%32.533.325Stock Bforecast 13%17.518.325Stock Cforecast 10%7.58.315Stock Dforecast 8%Unconstrained: A+B = 75%Stock cap 40%: A+B = 73%Both caps: A+B = 60%
The forecasts alone would put 75% into stocks A and B, the single-stock cap trims A to 40%, and the 60% sector cap then sets the final 35/25/25/15 split with A comfortably below its own cap.
StageABCDA + BExpected return
Unconstrained42.5%32.5%17.5%7.5%75.0%12.95%
Stock cap 40%40.0%33.3%18.3%8.3%73.3%12.83%
Stock and sector caps35%25%25%15%60%12.20%
Each fence moves weight from the best forecasts to the rest, and the sector cap costs about 0.75 points of expected return against the unconstrained answer.
Step 3What does the turnover rule change?

The route, not the destination. From today's 20/20/30/30, reaching the target needs buys of 15 points in A and 5 in B, 20% one-way, above the 15% monthly allowance. Rank the trades by what they add: the marginal gain from each stock at today's weights is forecast less 0.2 times weight, A 11, B 9, C 4, D 2 points, so the biggest gap is between A and D. Month one: buy A to 35% and sell D to 15%, exactly 15% of turnover. Month two: buy B to 25% and sell C to 25%, and the book is at target. In the real 40-stock fund the same logic runs every month: the optimiser proposes, the turnover cap rations, and the trades with the largest gap between forecast and current weight go first.

Close with what the committee should take from the example. In practice the constraints, not the forecasts, shape most of the portfolio: the forecasts said 75% in one sector and the fences said 60%, and the stock cap turned out not to matter once the sector cap was applied. That is normal. It also means the committee should spend its time on the fences, since they are the part it controls, and should ask the quant team for the shadow price of each constraint every month, because a cap that is always binding at a high price is either protecting the fund or strangling it. The limits: equal variances and zero correlation made the hand solution possible and are false in a real book, where a covariance matrix and a solver replace the closed form; forecasts carry estimation error that the optimiser will exploit, which is one more reason the caps exist.

Where candidates lose it

Candidates write the objective and list the constraints, then stop, or they solve the unconstrained problem and announce it. The interviewer wants to see a constraint bind and what it costs; a solution that lands inside every cap without touching one has not tested the fences.

The second miss is applying the stock cap and stopping there. The sector cap sits behind it, and once it is enforced the stock cap is slack; checking which constraints are active at the end is the point of the exercise.

What the interviewer asks next

  • Stocks A and B have a correlation of 0.6. Which way do the unconstrained weights move, and does the sector cap still bind?
  • How would you add transaction costs to the objective rather than as a turnover cap, and what changes?
  • What would you do if the optimiser kept pushing every stock to its cap?
  • How would you check that the forecasts are not just noise the optimiser is amplifying?

Asked at BlackRock, Quantitative Research, New York, 2025 (Wall Street Oasis): how I would formulate a portfolio optimization problem, including the objective function and practical constraints such as risk, expected return, position limits

← Case 097An exam-prep subscription company has a customer acquisition cost of Rs 1,800, annual revenue per learner of Rs 3,200 at 65% gross margin, and 55% of learners renew each year. Does it have a competitive advantage and barriers to entry, and can its revenue growth last?Case 099 →A Rs 5,000 crore equity fund holding 3% cash sees net outflows of 12% in a month while the market falls 25%. Show the forced selling, the impact cost on the least liquid third, and how index futures could have bridged the gap.

Company names and figures are illustrative.

Fin Maverick Free CoursesExplore Free Courses
Fin Maverick BootcampsExplore Bootcamps
Fin Maverick

Finance education that ends in a job, not a certificate that gathers dust. Built for young India.

LEARN
CalculatorsFrameworksComparisonsInterview RoadmapsShowdown
RESOURCES
All CoursesFree CoursesBootcampsInternships
COMPANY
AboutJob openingPartnership
LEGAL
Privacy PolicyTerms & ConditionsContent LicenseReturn & Refund Policy
© 2026 FIN MAVERICK / BUILT FOR INDIA.DO FINANCE, DO NOT JUST READ ABOUT IT.