> For the complete documentation index, see [llms.txt](https://helps.ptengine.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helps.ptengine.com/cn/experience/campaign/create-new-2/bandit-algorithm.md). Agents can also search and read this documentation through its [MCP server](https://helps.ptengine.com/~gitbook/mcp).

# 智能分流Bandit算法

本节我们将详细得向您介绍智能分流是什么？并说明如何正确的配置一个智能分流的体验部署 阅读本章节前，我们强烈建议您先阅读[A/B测试](https://helps.ptengine.com/cn/experience/campaign/create-new-2.md)的相关内容。

### 什么是智能分流Bandit算法 <a href="#what-is-the-smart-traffic-allocation-bandit-algorithm" id="what-is-the-smart-traffic-allocation-bandit-algorithm"></a>

本节会着重讲解智能分流的实现逻辑，如果您理解了Bandit的逻辑会更好的帮助到您的体验构思。 当然如果您已经对智能分流有一定了解的话，可以跳转至操作说明环节。

简单来讲： Bandit智能分流是一种智能流量托管系统；智能分流算法会根据设定的转化目标，保证将流量及时向最优版本倾斜。

Ptengine中实现的智能分流算法可以根据各版本的转化状态自动地决策出是利用目前的最优版本还是尝试其他有潜力的版本，并逐步达到探索与利用的平衡点。在这段过程中既节省了随机A/B test实验在低价值版本上浪费的部分流量，同时还省去了人工调整流量的成本，并且对于流量的调整更加的科学客观。另外，对于中途加入新版本的情况也更加的适应，智能算法并不会因为加入新版本而完全重置分配策略。

### 如何配置一个智能分流体验 <a href="#how-to-configure-a-smart-traffic-allocation-experience" id="how-to-configure-a-smart-traffic-allocation-experience"></a>

1. 在编辑A/B test或重定向测试时，选择流量分配设置<br>

   <figure><img src="https://2044586328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnucbKsG9WGIoxCpzyoHL%2Fuploads%2Fgit-blob-051813f8948f6ee2899dabcfd939d67905ad8d03%2Fexperience-campaign-abtest-bandit-algorithm-1.png?alt=media" alt=""><figcaption></figcaption></figure>
2. 选择智能分配选项，之后选择转化目标。

\
此处转化目标的选择方式类似于A/B test，Ptengine建议选择一个想通过这次创意影响到的最直观指标。（如创意为“活动页引流弹窗”->“活动页跳转”作为目标） 3. 最后，点击确认并发布创意便完成了所有设置！同时你也会观察到，流量分配显示为“自动”，在A/B test报告界面也会和传统的有所区别，少了“提升”与“优胜率”两个条目。

<figure><img src="https://2044586328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnucbKsG9WGIoxCpzyoHL%2Fuploads%2Fgit-blob-e8f650c21f174518e2aa0fa046f8c1d1985ff039%2Fexperience-bandit-algorithm-01.png?alt=media" alt=""><figcaption></figcaption></figure>

### 如何正确理解智能分流的作用 <a href="#how-to-properly-understand-smart-traffic-allocation" id="how-to-properly-understand-smart-traffic-allocation"></a>

或许我们可以通过两张图快速了解智能分流的作用、以及A/B测试与智能分流Bandit算法的区别：

❶A/B测试与Bandit的实验差异

<figure><img src="https://2044586328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnucbKsG9WGIoxCpzyoHL%2Fuploads%2Fgit-blob-4b89324e54776f2f641200247328187647d742af%2Fexperience-bandit-algorithm-02.png?alt=media" alt=""><figcaption></figcaption></figure>

❷　A/B测试与Bandit组合拳

<figure><img src="https://2044586328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnucbKsG9WGIoxCpzyoHL%2Fuploads%2Fgit-blob-f6c06fde10c6654fbbfb292be2efae197c1f9544%2Fexperience-bandit-algorithm-03.png?alt=media" alt=""><figcaption></figcaption></figure>

Step1： A/B测试验证灵感价值（加购区放到底部还是放到页面中部）

Step2: 活动期间围绕灵感制作多个样式（颜色/样式） Step3：通过Bandit将流量及时导向最佳版本

### **何时使用A/B测试与智能分流** <a href="#when-to-use-a-b-testing-vs.-smart-traffic-allocation" id="when-to-use-a-b-testing-vs.-smart-traffic-allocation"></a>

当我们希望通过花费时间成本与流量成本验证运营策略是否有效，并希望在的到结果后，用于我们未来另改的服用。我们建议使用A/B 测试

当在一个时间段内（例如维持1周或1个月的短期促销等），我们希望通过多个版本的到最大的价值，我们极力推荐Bandit智能分流\
如果您还有不了解的内容，与欢迎联系我们的客户成功经理，快速为您讲解产品功能与价值。

***

## 相关页面 <a href="#related-pages" id="related-pages"></a>

* [如何新建A/B测试体验](https://helps.ptengine.com/cn/experience/campaign/create-new-2.md)
* [A/B 测试的结果分析](https://helps.ptengine.com/cn/experience/campaign/create-new-2/result-analysis.md) — 普通 A/B 测试怎么判优胜版本
* [A/B 测试的高级设置](https://helps.ptengine.com/cn/experience/campaign/create-new-2/advanced-settings.md)
* [体验报告的详细页面](https://helps.ptengine.com/cn/experience/campaign/experience-report-detail.md)
