Bayesian Auto-Tuner Guide
Step-by-step guide to EXAWin's Auto-Tuner feature — Running analysis, Result screen (Summary, Signal Lift, Impact, T/k, Dampening, Silence, Prior, AUC, Cross Validation), MCMC Posterior, Particle Storm visualization, Simulation structure panel, and Parameter application.
Auto-Tuner User Guide
The Auto-Tuner is a feature that learns and recommends optimal parameter values for the Bayesian engine based on result data from past Won/Lost projects. Administrators review these recommendations alongside data-driven evidence before deciding whether to apply them manually.
Location: Sidebar → Bayesian → Auto-Tune
⚠️ Auto-Tuner requires admin or super_user permissions.
1. Running an Analysis
Step 1: Navigating to the Auto-Tune Screen
Click the Bayesian → Auto-Tune menu in the sidebar. On your first visit, an introductory screen will be displayed in the center. If there was a previous analysis, it is automatically restored from sessionStorage.
Step 2: Starting the Analysis
Click the Start Analysis button located at the top or center of the screen.
After the analysis starts, a progress bar will display the real-time progress across 11 steps:
| Component | Estimated Time | Notes |
|---|---|---|
| Ruby Grid Search (Impact, T, k, Dampening, Silence) | < 1 sec | Completes instantly |
| Cross Validation (5-fold) | < 1 sec | Evaluates overfitting |
| Emcee MCMC Sampling | 15~30 sec | Runs only in Phase 3 or higher |
💡 You can cancel the analysis by clicking the Cancel button. Canceling will not affect your data.
⚠️ If MCMC is included, the full analysis takes about 15~40 seconds. Elapsed time will be displayed alongside the progress bar.
2. Result Screen Layout
Upon completion, the results are presented from top to bottom in the following sections:
① Summary Cards (4 Columns)
Four summary cards are displayed at the top.
| Card | Content |
|---|---|
| Completed Data | Number of projects analyzed (Won vs. Lost Breakdown) + Phase Badge |
| Current Separation | Current separation grade calculated with current parameters (Grades A~D) |
| Projected Separation | Simulated separation grade if all recommended values are applied |
| Won vs Lost Average | Average P(Win) of Won projects vs. Average P(Win) of Lost projects |
Grading Criteria:
| Grade | Separation | Meaning |
|---|---|---|
| A | ≥ 0.40 | Excellent — Parameters reflect reality well |
| B | 0.25 ~ 0.40 | Good — Satisfactory, but has room for improvement |
| C | 0.10 ~ 0.25 | Needs Improvement — Adjustment recommended |
| D | < 0.10 | Urgent — Immediate parameter recalibration required |
② Simulation Structure Panel
Below the summary cards is a collapsible 🔬 Auto-Tuner Simulation Structure panel. Clicking it reveals the overall structure and frequency of the simulations performed by Auto-Tuner.
Summary Cards (4 Columns):| Card | Content |
|---|---|
| PROJECTS | Number of projects analyzed (Won vs. Lost Breakdown) |
| RUBY ENGINE | Frequency of Ruby Grid Search simulations |
| MCMC ENGINE | Estimated number of simulate_project() calls during Emcee sampling |
| GRAND TOTAL | Sum of Ruby + MCMC calls |
Computation Distribution Bar: Visually depicts the computational ratio between Ruby and MCMC. Typically, MCMC constitutes over 99% of the total computations.
Analysis Pipeline (3 Columns):- GRID SEARCH: Attempts 10 points within the current value ± range to maximize separation.
- CROSS VALIDATION: Detects overfitting using 5-fold cross-validation.
- MCMC Emcee: Ensemble sampling across 32 walkers × (500 warmup + 1,500 draws).
| Step | Analysis | Calls |
|---|---|---|
| 1 | current_separation | P |
| 2 | signal_lift_analysis | 0 (DB Aggregation) |
| 3 | impact_grid_search | I × G × P |
| 4 | optimal_thresholds | 0 (DB-based) |
| 5 | k_recommendations | 0 (Statistical Calc) |
| 6 | dampening_search | D × P |
| 7 | silence_penalty_search | S × P |
| 8 | projected_separation | P |
| 9 | calculate_auc | 0 (P(Win)-based) |
| 10 | cross_validate | F × P |
| 11 | mcmc_ensemble_sampling | W × Steps × P |
Where P=Projects, I=Impact Types, G=Grid points (10), D=Dampening attempts, S=Silence attempts, F=5 (folds), W=32 (walkers), Steps=2,000 (warmup+draws).
③ Signal Lift Analysis
Analyzes the Discrimination Power (Lift) of each signal.
| Column | Description |
|---|---|
| SIGNAL | Signal name |
| WON% | Appearance rate in Won projects |
| LOST% | Appearance rate in Lost projects |
| LIFT | Won appearance rate / Lost appearance rate |
| GRADE | Discrimination grade + Emoji |
- Lift > 1: Appears more frequently in Won projects → Positive indicator
- Lift < 1: Appears more frequently in Lost projects → Negative indicator
- ⚠ MISMATCH: A red warning is displayed if the current categorization (Positive/Negative) misaligns with the actual discrimination power.
If a signal has been assigned the wrong Impact classification, it will be detected here. If a mismatch is found, consider reviewing and reclassifying it in the Signal Master.
④ Prior α, β Recommendation
Recommends the optimal initial Priors based on historical data.
| Item | Description |
|---|---|
| Method | Estimation method (Method of Moments or MLE) |
| α (Success Weight) | Current → Recommended value (displays 95% CI) |
| β (Failure Weight) | Current → Recommended value (displays 95% CI) |
| Evidence Maturity | 🌱 Early / 🌿 Growing / 🌳 Mature (Avg α+β+n per project) |
Phase 3 employs the Method of Moments, while Phase 4+ utilizes MLE (Newton-Raphson) fixed-point iteration for more precise estimation.
⑤ Impact Optimization
Results of the Grid Search recommendations for each Impact Type. Only Impacts displaying the adjust recommendation appear as cards.
Each card includes:
- Impact Type name
- Current value → Recommended value
- Separation improvement (+%p)
- Checkbox — Parameter selection to apply (Select All is possible)
💡 The search range varies by Phase: ±30% for Phase 3, ±40% for Phase 4, and ±50% for Phase 5.
⑥ Threshold (T) & Velocity (k)
Two tables are displayed side-by-side.
Threshold (T):| Column | Description |
|---|---|
| STAGE | Sales stage name |
| CURRENT | Current threshold value |
| OPTIMAL | Youden J optimal threshold |
| J | Youden J statistic (Recommendation unavailable if < 0.20) |
| Column | Description |
|---|---|
| STAGE | Sales stage name |
| CURRENT | Current k value |
| OPTIMAL | Grid Search optimal k (Upper bound: 12) |
| AVG α+β | Average accumulated evidence for the stage |
Rows with no recommended changes do not display a checkbox.
⑦ Impedance Impact
Simulates the effects on the Impedance function when applying the recommended T/k values.
| Column | Description |
|---|---|
| STAGE | Sales stage |
| P(WIN) | Average P(Win) for that stage |
| Current | Impedance (%) with current T/k |
| After Application | Impedance (%) with recommended T/k |
| Change | ↑ / ↓ + %p difference |
| n | Case count (Won / Lost) |
| BU | Count of BayesianUpdates for the stage |
If Impedance does not change due to T/k modification, a "No Changes ✅" message is displayed.
⑧ Dampening & Silence Penalty
Two cards are placed side-by-side.
| Parameter | Description | Default Value |
|---|---|---|
| Dampening | Simultaneous signal attenuation rate. 0=Only strongest signal, 1=All equals | 0.25 |
| Silence Penalty | Penalty ratio for activity downtime | 0.30 |
Each card shows Current Value → Recommended Value + Improvement. If already optimal, it displays "✅ Optimal".
⚠️ Below Phase 4, the Dampening/Silence checkboxes are disabled, and a "🟢 Need Good or higher" notice appears.
3. MCMC Posterior Analysis
In Phase 3 or higher, the MCMC Posterior Estimation Results are displayed below the Grid Search results.
MCMC Header
| Item | Description |
|---|---|
| Samples × Walkers | Number of samples × number of walkers (e.g., 1,500 samples × 32 walkers) |
| R̂ | Overall max R-hat + convergence status (✅ or ⚠️) |
| Runtime | MCMC execution time (in seconds) |
| Projects | Number of projects included in the analysis |
Particle Storm Visualization
Clicking the ▶ Play Particle Storm button builds a real-time animated posterior distribution for each parameter:
- Density Histogram: The distribution shape emerges as MCMC samples accumulate sequentially.
- Solid Green Line: MCMC Estimated Mean.
- Dashed Red Line: Currently set value.
- Purple Box: 95% HDI (Highest Density Interval) span.
The Particle Storm visually aids understanding and doesn't represent the literal live MCMC processing. It reflects sequential trace data applied to histograms for each parameter.
MCMC Data Table
| Column | Description |
|---|---|
| ☑ | Checkbox — Parameter selection for application (Select All possible) |
| Parameter | Parameter name (⚙️ = Dampening, 🔇 = Silence) |
| Current | Currently set value (Red) |
| MCMC | Posterior distribution mean (Green) |
| ±SD | Standard Deviation — estimation uncertainty |
| HDI 95% | Highest Density Interval within 95% (Purple) |
| R̂ | Convergence diagnostic indicator (Green < 1.05, Yellow < 1.10, Red ≥ 1.10) |
| Δ | Difference between Current and MCMC estimation (↑ / ↓ / ≈) |
⚠️ A parameter with R̂ > 1.05 signals an incomplete convergence warning. If R̂ > 1.10, it is non-converged; do not apply it.
💡 Rows without checkboxes: If the difference between the MCMC mean and current value is less than 0.02 (ε threshold), the change is deemed insignificant and a checkbox is omitted. It displays a
≈in the Δ column. For example, if current dampening is 0.25 and MCMC mean is 0.259 (difference 0.009 ≤ 0.02), it is excluded from application.
HDI Interpretation Guide
HDI [3.5, 6.2], Current 5.0
→ Current value is within HDI. Rational and acceptable; no change required.
HDI [2.0, 3.5], Current 5.0
→ Current value is outside HDI. Highly probable it's overvalued. Adjustment recommended.
HDI [0.8, 8.0] (Wide interval)
→ Lack of data causing uncertain estimation. Treat as reference only.
4. Applying Recommendations
Apply Bar
A fixed bar is located at the bottom of the result screen:
- Left: Number of selected parameters.
- Right: Apply Selected button.
Application Limits by Phase
| Phase | Applicable Range |
|---|---|
| 1~2 | Not Applicable — Apply button fully disabled |
| 3 | Impact, T, k + MCMC (Dampening/Silence Locked) |
| 4+ | All parameters are applicable |
Application Targets
| Source | Target Parameter | Target Location |
|---|---|---|
| Grid Search | Impact, T, k, Dampening, Silence | DB direct update |
| MCMC | Impact(mcmc_impact), Dampening(mcmc_dampening), Silence(mcmc_silence_ratio) | DB direct update |
⚠️ If you check both Grid Search and MCMC recommendations, the DB adopts the value selected last. Please select only one source per parameter.
Checks Before Applying
- Check Grades: Assess the change between the current and projected grades.
- Overfitting Risk: If Cross Validation issues warnings, deliberate carefully before applying.
- MCMC R̂: If a parameter has R̂ > 1.05, only utilize MCMC recommendation as a reference.
- HDI Spans: Exceptionally wide HDIs denote severe data deficiency.
- Phase Restrictions: Dampening/Silence checkboxes only become active at Phase 4 or above.
After Applying
- A confirmation dialog appears, and upon approval, the DB updates.
- Following an update,
sessionStorageresets, mandating a re-analysis. - The quantity of successfully applied parameters will be displayed via a toast message.
5. Data Maturity (Phase) and Feature Limitations
Auto-Tuner grades reliability into 5 Phases based on the lesser count (min) between Won and Lost cases.
| Phase | Criteria | Indicator | Available Features |
|---|---|---|---|
| 1 | min < 5 | ❌ | Cannot Analyze — Insufficient data |
| 2 | min 5~9 | 🟠 | Refer to Signal Lift directionality only |
| 3 | min 10~19 | 🟡 | Impact, T, k + MCMC |
| 4 | min 20~49 | 🟢 | + Dampening, Silence |
| 5 | min ≥ 50 | 🔵 | All Features + Stable MCMC |
💡 Best way to upgrade Phases: Officially Close more projects as Won or Lost. Active (running) projects are not included in the analysis.
6. Frequently Asked Questions (FAQ)
Q. Can I run the analysis multiple times?
Yes. Auto-Tuner does not modify the DB at all during analysis. Analysis runs as an in-memory simulation, and zero changes are made to your data until you explicitly press "Apply Selected."
Q. What happens if I cancel midway?
Clicking the red Cancel button next to the progress bar instantly aborts the AJAX request. Your data remains perfectly intact.
Q. The analysis is taking a long time
If MCMC (Phase 3+) is triggered, it takes about 15~40 seconds because the Python MCMC engine (Emcee) conducts hundreds of thousands of simulations. Running just the Ruby Grid Search without MCMC (Phase 2) will finish within 1 second.
Q. What if Grid Search and MCMC recommend different values?
| Situation | Interpretation | Recommendation |
|---|---|---|
| Recommendations match | High Confidence | Advised to apply ✅ |
| MCMC leans similarly but HDI is wide | Direction is correct but uncertain | Apply cautiously |
| Recommendations strongly clash | Possible local optima in Grid Search | Trust the MCMC HDI spans initially |
Q. There is a warning about elevated R̂
R̂ > 1.05 implies the MCMC chains have yet to fully converge. MCMC results for this parameter are sketchy at best. Default to the Grid Search recommendation instead, and retry MCMC once more actionable data is amassed.
Q. I can't see the MCMC section
MCMC won't run if:
- Currently below Phase 3 (min < 10 cases).
- The server lacks the Python Emcee environment framework.
In both iterations, Grid Search parameters will remain fully functional, meaning Auto-Tuner operates nominally without MCMC dependency.
Q. What is Particle Storm?
It's a real-time animated visualization mapping out MCMC sample data. It visually aids you in intuiting what the posterior distribution contours intuitively resemble. Hitting the Play button renders animations across parameter tiers sequentially.
Q. My previous analysis results are still showing
Auto-Tuner caches analysis states in sessionStorage. Your results remain preserved even if you navigate away and return. Applying parameters or hitting Re-run will naturally clear it out and restart fresh.