01/08/2024, 11:48 PM
Hi Paras, thanks for reaching out. GrowthBook assigns users to variations based on deterministic hashing. We create a hash out of the unique identifier for the user (usually something like `user_id` or `device_id`) and the experiment key. You can read more about the methodology here: https://docs.growthbook.io/lib/js#hashing
01/09/2024, 10:45 AM
I still have some doubts, let's take the below example:
I have 100 users who would visit my website, I have two variations to show - A and B. There's a chance that based on user_id/device_id hash - majority of hash values are generated <0.5 on 0 to 1 scale while my rule says 50% of users should see variation A and another 50% should see variation B. This is a discrepancy.
01/11/2024, 8:03 PM
On average it will be 50%, not exactly 50/50. This is standard for most experimentation platforms as it allows you to deterministically map an id to a feature variation without having to do expensive lookups and rebalancing.