Sessions 21–26 of 26 Part VIII: Modern Tools & Capstone — Chapter 18 of 18
Part VIII: Modern Tools & Capstone Chapter 18 of 18 Sessions 21–26 PythonChatGPT

ESG, AI Tools & Capstone Project

Integrate ESG factors into valuation using SEBI BRSR data, leverage AI for research and modeling, build automated KNIME workflows, and deliver your complete capstone valuation project.

Learning Objectives

Session 21 — ESG-Integrated Valuation

PART A — ESG-INTEGRATED VALUATION

18.1 Why ESG Matters for Valuation

ESG is not a separate "sustainability" overlay — it is a set of factors that directly affect the value drivers we have studied throughout this course. Environmental regulation changes future capex. Social license determines revenue growth. Governance quality affects the cost of capital. Ignoring ESG means ignoring risks and opportunities that are already priced into some securities and will inevitably be priced into all.

ESG FactorValuation ChannelImpact
E — Carbon emissionsCapex, margins, terminal valueCarbon-intensive companies face higher future capex (decarbonization), potential carbon taxes (margin compression), and stranded asset risk (terminal value impairment)
E — Water scarcityOperating costs, growthWater-intensive industries (thermal power, textiles, steel) face rising water costs and regulatory restrictions on expansion
S — Labor practicesMargins, growthCompanies with poor labor practices face higher attrition, training costs, and regulatory risk. IT services companies with high employee satisfaction have lower attrition → higher margins.
S — Community relationsGrowth, terminal valueLand acquisition delays, protests, and license-to-operate issues can delay or cancel projects, directly impacting growth
G — Board independenceWACC (Ke)Companies with weak governance and promoter entrenchment face a higher cost of equity — investors demand a governance risk premium
G — Related-party transactionsCash flows, terminal valueValue transfer to promoter entities reduces cash available to minority shareholders. Common in Indian conglomerates.
📋 Stable content — Reviewed: June 2026

18.2 The SEBI BRSR Framework: India's ESG Data Standard

The Business Responsibility and Sustainability Report (BRSR), mandated by SEBI for the top 1,000 listed companies from FY2023, is India's standardized ESG disclosure framework. It provides quantitative data that can be directly integrated into valuation models.

18.2.1 Key BRSR Metrics for Valuation

BRSR SectionKey MetricsValuation Use
Principle 2 — Sustainable goods% of R&D spend on sustainable products, % of revenue from sustainable productsAdjust revenue growth for green product mix; higher sustainable revenue → premium growth multiple
Principle 3 — Employee wellbeingAttrition rate, % of employees covered by unions, training hours/employee, gender diversity ratioAdjust margins for HR risk; high attrition = higher future opex
Principle 4 — Stakeholder engagementCSR spend as % of PAT, community investmentLicense-to-operate risk adjustment to terminal growth rate
Principle 5 — Human rightsGrievances filed and resolved, human rights policy coverageLitigation risk and regulatory risk premium in WACC
Principle 6 — EnvironmentGHG emissions (Scope 1 & 2), energy intensity, water consumption, waste generated, EHS complianceCarbon cost projection, capex for decarbonization, potential regulatory penalties
Principle 9 — GovernanceRelated-party transactions as % of revenue, independent director %, board meetings, audit qualificationsGovernance risk premium in cost of equity; related-party transactions → haircut to FCFF

18.3 Integrating ESG into DCF Valuation

ESG factors enter the DCF through three channels: cash flows (revenue, margins, capex), discount rate (WACC), and terminal value (long-run growth). The framework below maps ESG risks to specific DCF adjustments:

import numpy as np
import pandas as pd

def esg_adjusted_dcf(base_fcff, base_wacc, base_terminal_g,
                      esg_scores, forecast_years=5):
    """
    Adjust a DCF valuation for ESG factors.

    Parameters
    ----------
    base_fcff : list — baseline FCFF for forecast years
    base_wacc : float — baseline WACC
    base_terminal_g : float — baseline terminal growth
    esg_scores : dict with keys:
        'environmental_score' : float — 0 to 100 (100 = best)
        'social_score' : float — 0 to 100
        'governance_score' : float — 0 to 100
        'carbon_intensity' : float — tCO2e / Rs. Cr revenue
        'attrition_rate' : float — annual employee attrition %
        'related_party_pct' : float — related-party transactions as % of revenue

    Returns
    -------
    dict with base and ESG-adjusted DCF values.
    """
    # --- ESG Score to Adjustments Mapping ---

    # 1. WACC Adjustment: Governance & Environmental risk
    # A company with governance score of 30/100 gets +150bp to Ke
    # A company with governance score of 90/100 gets +0bp
    governance_risk_premium = max(0, (75 - esg_scores['governance_score']) * 0.04)
    environmental_risk_premium = max(0, (60 - esg_scores['environmental_score']) * 0.03)
    esg_wacc_adj = (governance_risk_premium + environmental_risk_premium) / 100
    adjusted_wacc = base_wacc + esg_wacc_adj

    # 2. Cash Flow Adjustment: Environmental (carbon cost) & Social (attrition)
    carbon_cost_per_tonne = 10  # USD/tonne CO2e; India may introduce carbon pricing
    usd_inr = 83
    carbon_cost = (esg_scores['carbon_intensity'] * carbon_cost_per_tonne * usd_inr
                   / 1e7)  # Convert to Rs. Cr per Rs. Cr revenue

    # Attrition: high attrition → 2-5% margin impact from hiring/training costs
    attrition_impact = max(0, (esg_scores['attrition_rate'] - 15) * 0.001)

    adjusted_fcff = []
    for fcff in base_fcff:
        # Assume FCFF ≈ 15% of revenue; carbon cost as % of revenue
        adjusted_fcff.append(fcff * (1 - carbon_cost - attrition_impact))

    # 3. Terminal Growth Adjustment: Governance (sustainability of moat)
    gov_score = esg_scores['governance_score']
    if gov_score >= 80:
        tg_adj = 0  # Strong governance → no haircut
    elif gov_score >= 50:
        tg_adj = -0.005  # Moderate → -0.5%
    else:
        tg_adj = -0.015  # Weak → -1.5%

    adjusted_terminal_g = base_terminal_g + tg_adj

    # 4. Related-Party Transaction Haircut
    rpt_haircut = max(0, (esg_scores['related_party_pct'] - 5) * 0.01)
    adjusted_fcff = [f * (1 - rpt_haircut) for f in adjusted_fcff]

    # --- Recompute DCF ---
    n = len(adjusted_fcff)
    pv_base = sum(fcff / (1 + base_wacc) ** (t + 0.5) for t, fcff in enumerate(base_fcff, 1))
    tv_base = base_fcff[-1] * (1 + base_terminal_g) / (base_wacc - base_terminal_g)
    ev_base = pv_base + tv_base / (1 + base_wacc) ** n

    pv_adj = sum(fcff / (1 + adjusted_wacc) ** (t + 0.5) for t, fcff in enumerate(adjusted_fcff, 1))
    tv_adj = adjusted_fcff[-1] * (1 + adjusted_terminal_g) / (adjusted_wacc - adjusted_terminal_g)
    ev_adj = pv_adj + tv_adj / (1 + adjusted_wacc) ** n

    esg_discount = (1 - ev_adj / ev_base) * 100

    print(f"ESG-ADJUSTED DCF VALUATION")
    print(f"{'='*55}")
    print(f"  ESG Score: E={esg_scores['environmental_score']:.0f}  "
          f"S={esg_scores['social_score']:.0f}  "
          f"G={esg_scores['governance_score']:.0f}")
    print(f"\n  WACC Adjustment:           +{esg_wacc_adj*100:.1f}%")
    print(f"  Adjusted WACC:             {adjusted_wacc*100:.2f}%")
    print(f"  Terminal Growth Adj:       {tg_adj*100:+.0f}bp")
    print(f"  Carbon Cost Impact:        −{carbon_cost*100:.1f}% of FCFF")
    print(f"  RPT Haircut:               −{rpt_haircut*100:.1f}% of FCFF")
    print(f"\n  Base Enterprise Value:     Rs. {ev_base:,.0f} Cr")
    print(f"  ESG-Adjusted EV:           Rs. {ev_adj:,.0f} Cr")
    print(f"  ESG Discount/Premium:      {esg_discount:.1f}%")
    print(f"  {'⚠ ESG RISK — Value reduced' if esg_discount > 0 else '✓ ESG Strength — Value premium'}")

    return {
        'base_ev': ev_base, 'esg_ev': ev_adj,
        'esg_discount_pct': esg_discount,
        'adj_wacc': adjusted_wacc, 'adj_terminal_g': adjusted_terminal_g,
        'adj_fcff': adjusted_fcff,
    }


# --- Example: ESG-adjusted DCF for an Indian manufacturing company ---
esg_scores_example = {
    'environmental_score': 45,   # Below average — high emissions
    'social_score': 65,          # Average
    'governance_score': 55,      # Below average — related-party concerns
    'carbon_intensity': 120,     # 120 tCO2e / Cr revenue (high — steel/cement)
    'attrition_rate': 18,        # 18% annual attrition (moderate-high)
    'related_party_pct': 12,     # 12% of revenue is RPT (high)
}

base_fcff_example = [800, 920, 1050, 1180, 1300]  # Rs. Cr
esg_result = esg_adjusted_dcf(
    base_fcff_example, base_wacc=0.105, base_terminal_g=0.035,
    esg_scores=esg_scores_example
)
🌎
Real World: In 2022, a major Indian cement company's ESG-adjusted valuation showed a 12% discount to its standard DCF due to high carbon intensity (cement is hard-to-abate) and water usage in water-stressed regions. Investors incorporating ESG were effectively pricing in future carbon costs and capex that the standard DCF ignored. As India moves toward a carbon trading mechanism (CCTS), the gap between ESG-adjusted and standard DCF will widen for high emitters — and shrink for leaders. The valuation impact is already being priced by institutional investors.
Session 22 — AI-Powered Valuation with ChatGPT

PART B — AI-POWERED VALUATION WITH CHATGPT

⚠ Volatile content — Reviewed: June 2026 · Next review: July 2026

18.4 ChatGPT as a Valuation Research Assistant

AI tools like ChatGPT are transformative for valuation practitioners — not because they replace analyst judgment, but because they dramatically accelerate research, assumption generation, and report drafting. The key is using AI at the right points in the valuation workflow, with the right prompts, and always with human verification.

18.4.1 The AI-Augmented Valuation Workflow

Valuation StepAI RoleHuman Role
1. Industry ResearchSummarize industry trends, competitive landscape, regulatory changes. Prompt: "Summarize the key trends affecting the Indian paint industry, including market size, growth drivers, competitive dynamics, and regulatory factors."Verify facts, identify gaps, add proprietary knowledge
2. Assumption GenerationSuggest plausible ranges for growth, margins, capex. Prompt: "For a mature Indian consumer company with 40% market share, what is a reasonable 5-year revenue CAGR range? What factors would push it to the high or low end?"Select the specific number, justify with company-specific evidence
3. Scenario CreationGenerate bull/base/bear narratives. Prompt: "Create three scenarios for Asian Paints: a bear case driven by Grasim's entry, a base case of continued leadership, and a bull case of market expansion plus adjacencies."Quantify each scenario, assign probabilities, ensure internal consistency
4. Code AssistanceDebug Python code, suggest optimizations, generate boilerplate. Prompt: "Here is my FCFF computation function. Add error handling for missing yfinance fields and a fallback for companies with no debt data."Review logic, test edge cases, adapt to specific data structure
5. Report DraftingDraft the investment thesis, risk factors, and executive summary. Prompt: "Write a 300-word investment thesis for Infosys based on the following DCF output: [paste summary]. Include key assumptions, upside catalysts, and risks."Refine language, add nuance, ensure compliance with institutional standards
6. Presentation OutlineStructure the investment committee presentation. Prompt: "Create a 12-slide outline for an investment committee presentation on a BUY recommendation for Titan, covering business overview, industry, financial analysis, DCF, relative valuation, ESG, risks, and catalysts."Populate with actual charts, rehearse, prepare Q&A

18.4.2 Effective Prompts for Valuation Tasks

# Example: Using ChatGPT API for automated assumption research
# (Requires OpenAI API key — included for illustration)

def ai_assumption_research(company_name, sector):
    """
    Generate valuation assumption ranges using AI.

    In practice, this would call the ChatGPT API.
    Shown here as a template with sample prompt structure.
    """
    prompt = f"""
You are an expert equity research analyst covering Indian companies.

Company: {company_name}
Sector: {sector}

Based on your knowledge of this company and sector (as of early 2026),
provide plausible ranges for the following DCF assumptions for a 5-year
forecast. For each, give a LOW, BASE, and HIGH estimate with a one-line
justification.

1. Revenue CAGR (next 5 years)
2. EBITDA Margin (steady-state)
3. Capex as % of Revenue
4. Sustainable ROIC
5. Key upside risk to revenue
6. Key downside risk to margins

Format the response as a structured table.
"""
    # response = openai.ChatCompletion.create(
    #     model="gpt-4",
    #     messages=[{"role": "user", "content": prompt}]
    # )
    # return response.choices[0].message.content

    return f"Prompt template for: {company_name}\n{prompt}"


# Example prompt structure
sample_prompt = ai_assumption_research("Asian Paints", "Consumer Discretionary — Paints")
print(sample_prompt)
Critical AI Usage Guidelines: (1) AI is at Level 2 (AI-Assisted) for the DCF project and capstone — use it for idea generation, code assistance, and structuring, NOT for final numbers or investment recommendations. (2) Always verify AI-generated facts — ChatGPT can hallucinate financial data, company details, and regulatory information. (3) Never upload confidential company data to public AI tools. (4) Disclose AI usage: "AI tools were used for research synthesis and code assistance. All assumptions, model construction, and the final investment recommendation are the analyst's own work."
Session 23 — Automated Valuation Workflows in KNIME

PART C — AUTOMATED VALUATION WORKFLOWS IN KNIME

📋 Stable content — Reviewed: June 2026

18.5 Building Automated Valuation Pipelines in KNIME

KNIME Analytics Platform is an open-source, no-code/low-code workflow tool. It allows you to build automated valuation pipelines visually — connecting nodes for data extraction, transformation, computation, and visualization. While Python (used throughout this course) gives you maximum flexibility, KNIME gives you reproducibility and auditability — every step is documented in the workflow.

18.5.1 The KNIME Valuation Workflow

A standard automated valuation workflow in KNIME follows this structure:

  • Data Extraction Node: Connect to Yahoo Finance (via Python Script node using yfinance), Screener.in (File Reader for exported CSVs), or CMIE Prowess (database connector). Pull financial statements for the target and peer companies.
  • Data Transformation: Use KNIME's native nodes (Row Filter, Column Filter, Math Formula, Pivot) or Python nodes (pandas) to clean data, compute ratios, and prepare the forecast base.
  • Forecasting Engine: A Python Script node containing your Prophet or ARIMA model from Chapter 7. Inputs: historical revenue. Outputs: 5-year forecast.
  • WACC Computation: Another Python node with the beta regression and WACC formula from Chapters 10–11.
  • DCF Engine: A wrapped Python node containing the DCFValuation class from Chapter 14. Inputs: forecast, WACC, terminal growth. Outputs: enterprise value, equity value, per-share value.
  • Relative Valuation: KNIME nodes for peer group statistics (GroupBy, Math Formula for medians), plus a Python node for the peer filtering algorithm from Chapter 15.
  • Dashboard Output: KNIME's visualization nodes (Bar Chart, Line Plot, Table View) or export to Power BI/Tableau for interactive dashboards.
  • Report Generation: KNIME's Report Designer or export to PDF/Excel for documentation and sharing.
  • 💡
    Pro Tip: The power of KNIME is in batch processing. Once you build the workflow, you can run it on 100 companies overnight — updating financials, recomputing WACC, and refreshing the DCF automatically. This is how professional research firms maintain coverage universes of 200+ stocks. Python scripts handle the computation; KNIME handles the orchestration, scheduling, and output management.
    Session 24 — Executive Valuation Dashboard

    PART D — CAPSTONE PROJECT

    Session 25 — Capstone Project Workshop

    18.6 The Capstone Project: End-to-End Corporate Valuation

    The capstone project is the culmination of this course. You will value a listed Indian company from scratch — applying every concept, tool, and framework from Chapters 1 through 18. This is the project you will showcase in interviews for investment banking, equity research, private equity, and corporate finance roles.

    18.6.1 Capstone Deliverables Checklist

    #DeliverableChapter ReferenceTool
    1Company & Industry Analysis (2 pages)Ch 1–2Annual Report, Industry Reports, ChatGPT research
    2Historical Financial Analysis — Ratios, ROIC, Value DriversCh 3–5Python (yfinance + pandas)
    35-Year Integrated Financial Forecast (IS, BS, CF)Ch 7–9Python (IntegratedFinancialModel class)
    4Cost of Capital Estimation — WACC with SensitivityCh 10–11Python (beta regression, WACC pipeline)
    5Complete DCF Valuation — with Tornado, Waterfall, HeatmapsCh 12–14Python (DCFValuation class)
    6Relative Valuation — Peer Group, P/E, P/B, EV/EBITDACh 15–16Python (peer selection, multiples)
    7ESG Integration — BRSR Analysis, ESG-Adjusted DCFCh 18Python + BRSR Report
    8Scenario Analysis — Monte Carlo SimulationCh 8Python
    9Executive Dashboard — One-Page Visual SummaryCh 6, 14Power BI / Plotly / Looker Studio
    10Investment Recommendation Report (8–12 pages)AllWord / Google Docs / LaTeX
    1112-Minute Presentation with DefenceAllPowerPoint / Google Slides

    18.6.2 Suggested Capstone Companies

    Choose one of these companies (or propose an alternative to your faculty):

    CompanySectorWhy Interesting for Valuation
    Asian PaintsConsumer DiscretionaryHigh ROIC franchise; new competitor entry (Grasim) threatens moat → test terminal value assumptions
    Titan CompanyConsumer DiscretionaryExceptional brand + growth; extremely high P/B (76x) → reconcile DCF with multiples
    Reliance IndustriesConglomerateSum-of-parts required; Jio/Retail/O2C have different growth, margins, and WACC → divisional valuation
    TCS / InfosysIT ServicesHigh-margin, cash-rich; FCFE vs FCFF choice; AI disruption risk to terminal value
    HDFC BankBankingFinancial institution valuation; dividend discount model; post-merger integration risks and synergies
    Tata MotorsAutomotiveCyclical; JLR + domestic CV/PV; EV transition capex; normalized earnings essential
    Sun PharmaPharmaUS FDA risk premium; R&D pipeline valuation; specialty pharma vs generics mix
    NTPCPower / UtilitiesRegulated returns; renewable transition; ESG integration (coal phase-down risk)
    Session 26 — Capstone Project Presentations

    18.7 Capstone Report Structure and Grading

    18.7.1 Report Structure (8–12 pages)

  • Executive Summary (1 page): Company, recommendation (Buy/Hold/Sell), target price, valuation range, key catalysts, key risks. This is the only page many readers will see — make it count.
  • Business & Industry Overview (1–2 pages): What does the company do? Industry structure, competitive position, Porter's Five Forces, key growth drivers.
  • Financial Analysis (1–2 pages): Historical revenue, margins, ROIC, ratios, DuPont decomposition. Identify trends. What do the numbers tell you about the business?
  • Forecast Assumptions (1 page): Revenue growth, margin, capex, and WC assumptions with justification. Show the basis for each assumption — historical data, industry benchmarks, management guidance.
  • DCF Valuation (2–3 pages): WACC computation, FCFF forecast, terminal value (both methods), EV-to-Equity bridge. Include tornado chart and WACC × g sensitivity heatmap.
  • Relative Valuation (1 page): Peer group selection, multiples comparison, target price from P/E and EV/EBITDA. Triangulation chart vs DCF.
  • ESG Integration (1 page): Key BRSR metrics, ESG-adjusted DCF, material ESG risks and opportunities.
  • Investment Recommendation & Risks (1 page): Final recommendation with target price, upside/downside catalysts, monitoring triggers, and key risks.
  • 18.7.2 Presentation Defence (12 minutes + Q&A)

    SlideContentTime
    1Title + Recommendation (Buy/Hold/Sell, Target Price)30 sec
    2Company & Industry Snapshot1 min
    3Financial Analysis Highlights1.5 min
    4Forecast & Key Assumptions2 min
    5WACC Derivation1 min
    6DCF Output + Sensitivity2 min
    7Relative Valuation Cross-Check1 min
    8ESG & Scenario Analysis1 min
    9Investment Recommendation + Risks1.5 min
    10Appendix (supporting data)
    💡
    Defence Preparation: The most common questions in a valuation defence are: (1) "Why did you choose this terminal growth rate?" (2) "What happens to your valuation if WACC is 100bp higher?" (3) "How did you select your peer group?" (4) "What is the biggest risk to your recommendation?" (5) "If the stock is so undervalued, why hasn't the market already priced it in?" Prepare crisp, evidence-backed answers to all five. The difference between a good defence and a great one is not the model — it is the ability to defend assumptions under pressure.

    18.8 Course Recap: The Valuation Toolkit

    Over 18 chapters, you have built a complete corporate valuation toolkit. Here is what you now know how to do:

    CapabilityChaptersTool
    Read and adjust financial statements for valuation1–3Python (yfinance, pandas)
    Compute and interpret financial ratios4Python
    Analyze ROIC and economic profit5Python
    Build interactive financial dashboards6Power BI / Looker Studio
    Forecast revenue, costs, and margins7Python (Prophet, ARIMA, regression)
    Build scenario analysis and Monte Carlo simulation8Python
    Build integrated 3-statement models9Python (IntegratedFinancialModel)
    Estimate cost of equity (CAPM, beta, ERP)10Python
    Compute WACC with automated pipeline11Python
    Compute FCFF/FCFE and discount to present value12Python
    Estimate terminal value and derive equity value13Python
    Build complete DCF with sensitivity analysis14Python (DCFValuation class)
    Apply P/E, P/B, PEG relative valuation15Python
    Apply EV multiples and build peer dashboards16Python (Plotly)
    Value startups and M&A transactions17Python
    Integrate ESG, use AI tools, automate workflows18Python, ChatGPT, KNIME
    🌎
    Final Word: The tools and frameworks in this course are what professionals use every day in investment banks, private equity firms, equity research desks, and corporate finance teams. But the tool is not the value — your judgment is the value. The model is a structure for your thinking. The numbers are only as good as the assumptions behind them. The recommendation is only as credible as your ability to defend it. Go build models. Question assumptions. Communicate clearly. And remember: every valuation is a statement about the future. Make sure it is a statement you can stand behind.

    Key Takeaways

    1

    ESG factors enter valuation through cash flows, WACC, and terminal growth. The SEBI BRSR framework provides the data. High emitters face carbon cost and capex risk; weak governance commands a higher cost of equity.

    2

    AI augments, not replaces, the analyst. Use ChatGPT for research synthesis, assumption generation, code assistance, and report drafting. Always verify, never outsource judgment.

    3

    KNIME automates repeatable valuation workflows. Build once, run on 100 companies. Python for computation, KNIME for orchestration. Together they create an institutional-grade valuation infrastructure.

    4

    The capstone project is your professional portfolio piece. An 8–12 page report + 12-minute defence demonstrating every skill from this course. This is what you show in interviews.

    5

    Your judgment is the value. The model is a structure for thinking. The recommendation is a statement about the future. Make it one you can defend with evidence, logic, and humility.

    Test Your Understanding

    1. Through which three channels do ESG factors primarily enter a DCF valuation?

    2. What is the SEBI BRSR framework and why does it matter for valuation?

    3. What is the most appropriate role for ChatGPT in a valuation workflow?

    4. A company has a governance score of 35/100 on BRSR metrics, with related-party transactions at 18% of revenue. What is the likely valuation impact?

    5. What is the single most important piece of advice for a capstone valuation defence?