> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 实验中的排除组

> 使用 PlayFab 排除组运行相互排斥的实验，防止并发 A/B 测试之间的玩家重叠，并避免出现偏差的实时运营结果。

# 使用排除组防止交互效应

对于相关的并发实验，玩家只能看到其中一个实验以防止结果出现偏差非常重要。这就是排除组发挥作用的地方。PlayFab 排除组允许你创建相互排斥的实验。

使用排除组，你可以将参与的目标受众（玩家）限制为一次只能参与一个实验。这样可确保在排除组内相同的用户不会看到重叠的实验。这意味着为一个实验收集的数据不会受到任何其他实验的影响，即使这两个实验都设置在相同的游戏流程中并针对相同的玩家集。

在排除组中，流量分配的进行不会在实验之间重叠玩家数据，并且在每个实验的不同玩家桶中随机分配。这可确保得到干净的结果，其中转化率的变化归因于正确的实验，没有偏差和目标受众重叠，消除任何交互效应。

对于不相关的实验，玩家是否成为多个实验的一部分无关紧要。但是，如果实验相关，如下面所示，具有并发或重叠的运行时间表，你可能希望让玩家专属于每个实验：

* 同一游戏流程上的配置变化
* 涉及同一漏斗且存在玩家重叠可能性的配置变化

<Note>
  使用排除组会降低你实验的统计功效，因为每个实验都在与其他实验竞争流量。因此，当实验相关且预期存在交互效应时才使用排除组。
</Note>

你可以通过 Game Manager 和 [API](https://learn.microsoft.com/en-us/rest/api/playfab/experimentation/experimentation) 创建带排除组的实验。

## 创建排除组

从 Game Manager 中：

1. 导航到你的 **Title**
2. 从左侧菜单中选择 **Experiments**
3. 在页面右侧选择 **Experiment Settings**，打开设置页面
4. 在 Exclusion Group 下，选择 **Add exclusion group**
5. 输入组的 **Name** 和 **Description**，然后选择 **Save**

这将导航到排除组概述页面，其中显示排除组的详细信息以及每个组的 **Available traffic %** 和 **Experiments**。你可以编辑和删除任何排除组。

<Note>
  如果某些实验正在某个排除组内运行，则该排除组在其下所有实验运行完成之前无法删除。
</Note>

<img src="https://mintcdn.com/microsoft-4404708b/3hg2JQs0m7qmDqay/images/playfab/live-service-management/game-configuration/experiments/tutorials/exclusion-group-page.PNG?fit=max&auto=format&n=3hg2JQs0m7qmDqay&q=85&s=d34fee88f047240083ce6b16412921bd" alt="Screenshot of Exclusion Group Overview" width="2995" height="1005" data-path="images/playfab/live-service-management/game-configuration/experiments/tutorials/exclusion-group-page.PNG" />

## 创建带排除组的实验

从 Game Manager 的 Experiments 页面：

1. 选择 **New Experiment**，打开实验配置页面
2. 输入实验配置详细信息，如 **Experiment Name**、**Description**、**Start Date & Time**、**Duration**（最长 90 天）
3. 为实验选择目标 Audience。默认情况下，实验的受众是"**Run across all title players**"。通过选择单选按钮"**Select player segment**"并从下拉菜单中选择来配置在 Segment 上运行实验
4. 要运行相互排斥的实验，通过选择按钮"**Add exclusion group**"在 **Exclusion Group** 下进行配置
   * 从现有 **Exclusion group name** 的下拉列表中选择排除组
   * 输入 **% traffic allocation**，即有资格参与该实验的总流量百分比
     * 如果 % traffic allocation 大于 **Available traffic %**，则实验的排期或立即运行将不会保留
5. 在 **Variants** 下，定义 **Control Variant** 和 **Treatment Variant(s)**
6. 选择 **Schedule**、**Save as Draft** 或 **Run Now**

<img src="https://mintcdn.com/microsoft-4404708b/3hg2JQs0m7qmDqay/images/playfab/live-service-management/game-configuration/experiments/tutorials/experiment-with-exclusion-group.PNG?fit=max&auto=format&n=3hg2JQs0m7qmDqay&q=85&s=75b52a231908518f4828cf3aa6f035c4" alt="Screenshot of Create Experiment with Exclusion Group" width="2936" height="1942" data-path="images/playfab/live-service-management/game-configuration/experiments/tutorials/experiment-with-exclusion-group.PNG" />

## 使用排除组管理实验

Experiments 概述（登陆）页面显示可用的实验。**Running** 和 **Scheduled** 实验以时间线视图显示。**Drafted** 实验显示在同一个 "In-progress" 选项卡中，就在时间线卡片视图下方。

**Scheduled** 和 **Drafted** 实验的排除组和相关流量是可编辑的。需要注意的是，仅当存在可用流量 % 时，实验排除组配置的更改才会保留。

## 后续步骤

* [无代码实验快速入门](/services/playfab/live-service-management/game-configuration/experiments/quickstart)
* [管理 Experiments](/services/playfab/live-service-management/game-configuration/experiments/manage-experiments)
* [分析 Experiments](/services/playfab/live-service-management/game-configuration/experiments/analyze-experiments)
* [记分卡指标](/services/playfab/live-service-management/game-configuration/experiments/scorecard-metrics)
* [Experimentation API](/services/playfab/live-service-management/game-configuration/experiments/experimentation-apis)
* [将 Experiments 与其他 PlayFab 服务集成](/services/playfab/live-service-management/game-configuration/experiments/experiments-other-services)


## Related topics

- [实验](/zh-CN/services/playfab/live-service-management/game-configuration/experiments/index.md)
- [PlayFab 的 PlayStream 事件模型参考](/zh-CN/services/playfab/api-references/events/index.md)
- [实验关键术语](/zh-CN/services/playfab/live-service-management/game-configuration/experiments/experimentation-key-terms.md)
- [experiment_created](/zh-CN/services/playfab/api-references/events/Experimentation/experiment-created.md)
- [experiment_updated](/zh-CN/services/playfab/api-references/events/Experimentation/experiment-updated.md)
