Hello, Could someone explain to me - - How can i ...
# ask-questions
c
Hello, Could someone explain to me - • How can i setup experiments with mutually exclusive user sets. • Best way to run multiple experiments so that one user doesnt get exposed to multiples features.
f
Hi Ankit - Mutual exclusion is done via namespaces
c
Thanks Graham,
@fresh-football-47124 Where can i find the documentation on how to use namespaces while setting up multiple experiments. Right now Growthbook docs only defines what namespaces are and how to set them up (This part in docs also feels a bit outdated). Can you suggest some resource from where i can understand exactly how to use namespaces while setting up multiple experiments so that they are mutually exclusive
@fresh-football-47124 Also • how multiple namespaces are different from a single namespace. • Right now i can only use one namespace in an experiment, but while creating a namespace it has 100% of users. So, if i use 2 different namespaces in 2 experiments then those experiments will be mutually exclusive or not ?
r
HI Ankit, Good morning and thank you for your response. Is your business case here that you want multiple experiments in a namespace but the user to only be assigned one experiment? If so, yes namespaces works for your business case. Namespaces make whatever experiment are inside of them mutually exclusive, meaning a user can only be assigned to 1 experiment within the namespace. However, Namespaces are not themselves mutually exclusive, though, meaning that you can't say "If a user is exposed to an experiment in Namespace 1, exclude them for all experiments in Namespace 2." For context, Namespaces in GrowthBook are used to make multiple experiments mutually exclusive, especially when they may conflict with each other. Here's how you can use namespaces: ​*Configure Namespaces*​: Before you can use namespaces, you must configure them. This can be done under ​`SDK Configuration → Namespaces`​ in the GrowthBook UI's left navigation bar. ​*Assign Users to Namespaces*​: Users are randomly assigned a value from 0 to 1 for each namespace. Each experiment in a namespace has a range of values that it includes. Users are only part of an experiment if their value falls within the experiment's range. ​*Set Up Experiments*​: When setting up your experiments, you can assign them to a namespace and specify the range of values for that namespace that the experiment should include. For example, if you have two experiments that you want to run mutually exclusively, you could assign one experiment to the range 0-0.5 and the other to the range 0.5-1 . ​*Overlap Namespaces*​: If you want, you can also intentionally overlap namespaces. This can be useful for holdouts, where you want to keep a group of users unexposed to any experiments Remember, as long as two experiment ranges do not overlap, users will only ever be in at most one of them. This ensures that your experiments are mutually exclusive. ​*Given the above, please see the following inline answers:*​ "how multiple namespaces are different from a single namespace." - if you have a single namespace, the user will only be in one experiment in that namespace. If you have multiple namespaces, the user can be in one experiment in each namespace. "Right now i can only use one namespace in an experiment, but while creating a namespace it has 100% of users. So, if i use 2 different namespaces in 2 experiments then those experiments will be mutually exclusive or not ?" Yes all users will be in each namespace and each experiment can only be in one namespace. If you use 2 different namespaces and 2 different experiments in each namespace, a user can only be shown one experiment in each namespace. Please, let me know if you have any follow up questions related to the above. I am on hand to help :)
143 Views