import React from 'react'; import { Settings, X } from 'lucide-react'; interface EconometricsBlueprintModalProps { isOpen: boolean; onClose: () => void; } export default function EconometricsBlueprintModal({ isOpen, onClose }: EconometricsBlueprintModalProps) { React.useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape') { onClose(); } }; if (isOpen) { window.addEventListener('keydown', handleKeyDown); } return () => { window.removeEventListener('keydown', handleKeyDown); }; }, [isOpen, onClose]); if (!isOpen) return null; return (
{/* Modal Header */}

Econometric Events - Operational Blueprint

System User Manual & Interface Mechanics

{/* Modal Body */}

Event Studies & Models

Operational details of the econometric event study solver.

{/* Core Mechanics */}

1. Event Window Parameter Configuration

Allows defining the timeline partitions for analysis: * **Estimation Window**: Historical baseline period (e.g. 120 days) used to estimate the normal asset return relationships. * **Gap Window**: Separation buffer (e.g. 10 days) to prevent event-related leakages from skewing parameters. * **Event Window**: Analysis window surrounding the event day (e.g. [-5, +5]).

2. Abnormal Returns (AR)

Computes daily differences between the actual stock return and its expected "normal" return (using market-adjusted models or CAPM parameters derived during the estimation window).

3. Cumulative Abnormal Returns (CAR)

Integrates and sums the daily abnormal returns across the event window. Determines whether an event (e.g. earnings release, regulatory fine, supply-chain shock) created statistically significant excess wealth changes.

{/* Interface Specifications */}

Interface Actions & Chart Displays

Event Parameters Input Mask: Edit estimation days, gap days, event horizons, and click **"Run Event Study Solver"**. Initiates server-side calculations.

CAR Event Charts: Renders a Recharts line chart illustrating the trajectory of Cumulative Abnormal Returns ($CAR$) across the event window. A significant deviation from zero indicates market inefficiency or corporate information shocks.

); }