robinhood-options-mobile

Event Study Analyzer

The Event Study Analyzer measures how an instrument performed around a known event and compares its return with a benchmark. Use it for earnings, FDA decisions, product launches, guidance changes, or another dated event.

Using The Analyzer

Open Event Study Analyzer from the instrument or research workflow, then provide:

Presets are available for 5/5, 10/10, and 20/20 trading-day event windows.

Results

The analysis returns a dated series around the event containing:

A positive cumulative abnormal return means the instrument outperformed the selected benchmark over the displayed event window. This is descriptive analysis, not a prediction or a trading recommendation.

Technical Details

The backend callable is analyzeEventStudy in functions/src/event-study.ts. It loads daily historical data for the instrument and benchmark, aligns their trading sessions, and calculates the event and rolling statistics server-side. The callable requires Firebase Authentication and the TWELVE_DATA_API_KEY secret through the existing market-data service.

The rolling metrics use aligned daily returns:

The event date is normalized to the nearest available trading session. Invalid symbols, dates, or window values are rejected before analysis.