> For the complete documentation index, see [llms.txt](https://upgrade-platform.gitbook.io/upgrade-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://upgrade-platform.gitbook.io/upgrade-documentation/creating-an-experiment/unit-of-assignment.md).

# Unit of Assignment

## Individual Assignment

<div data-with-frame="true"><figure><img src="/files/RVg16i5m6XFxpkSlzyKt" alt=""><figcaption></figcaption></figure></div>

When selecting individual assignment, each included participant will be randomly assigned a condition.

## Group Assignment

<div data-with-frame="true"><figure><img src="/files/3Ow9TkCf0s4w80vbsdvq" alt=""><figcaption></figcaption></figure></div>

Group assignment references one or more of the group types that have been previously defined in the [Context Metadata](/upgrade-documentation/developer-guide/reference/context-metadata.md). For the selected group type, each group will be randomly assigned a condition, and each participant in a group will receive the same condition as the rest of the group.

## Within-Subjects Assignment

<div data-with-frame="true"><figure><img src="/files/IKmW8XTfdFmT4kSV88UE" alt=""><figcaption></figcaption></figure></div>

In within-subjects assignment, every time a participant visits a decision point (and `/markExperimentPoint` is called), the participant is eligible to receive a new condition. There are different options for determining the order of such conditions for within-subjects experiments. Random will randomly select a condition each time the decision point has been marked. Random Round Robin will randomly order the experiment conditions, and when it runs out of conditions, will create a new random ordering. Ordered Round Robin will deliver the same sequence of conditions over and over again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://upgrade-platform.gitbook.io/upgrade-documentation/creating-an-experiment/unit-of-assignment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
