Merged
Conversation
- Added IdentityAsymmetryStrategy to isolate project identity bias from magnitude. - Implemented deterministic 10-step magnitude shift algorithm with integer rounding. - Added suitability rules for equal-value pair detection (min_val >= 10). - Created Analysis Engine for Identity Consistency and 'Pain Curve' mapping. - Added HTML visualizations: Aggregate Bias Heatmap and User-specific Pain Curve. - Added comprehensive test suite for the new strategy.
- Replaced single 'Average Consistency' row with a bucketed distribution table (50-100%) for clearer bias analysis. - Updated breakdown table to hide 'Preferred Subject' when consistency is <= 50% (indifferent), preventing misleading data interpretation.
- Fixed logic to hide 'Dominant Preference' subject name when user consistency is <= 50% (Indifferent). - Removed redundant generic 'Survey Summary' table for Identity Asymmetry strategy to avoid data duplication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement Identity Asymmetry Stress Test Strategy
Overview
This PR introduces the Identity Asymmetry Strategy, a new experimental survey condition designed to isolate "Project Identity Bias" from "Magnitude Bias." It allows researchers to determine if users favor specific budget categories (e.g., Health) over others (e.g., Education) when the mathematical utility of the allocations is identical.
Core Implementation
min_equal_value_pairrule.Analysis & Visualization
Testing
tests/services/pair_generation/test_identity_asymmetry_strategy.py.Production Setup
To activate this survey in production, run the following SQL command: