(Notes)

How simulated users are generated: segments and sampling

Simulated users are generated by code sampling from the segment table's distributions; the same settings with the same random seed reproduce the same batch. Each segment runs on its own, and repeating the settings 3 times shows whether results hold.

Polish Design engineering team・2026-12-05

Contents

A simulated user is an agent that code generates from segment conditions and plays the target segment in the simulation. The quality of a simulated user depends on who the agent represents. A traditional persona is three to five representative people, each with a name, a photo, and a short background, kept around to remind a team what its users look like. A simulation needs hundreds of agents whose gender, age, income, and city distributions match the target segment, so that the reactions to an ad can be compared. In AI market research this is the first step to settle.

The article reads in this order: how research evaluates synthetic samples, how the open-source project MiroFish produces agents, how sampling by segment distribution works, and finally multi-segment comparison, repetition, and overseas segments. The overall flow is in how simulated users view an ad and discuss it, and how product data reaches the agents is in product data inside the simulated world.

How research treats synthetic samples

Argyle et al., 2023 combined GPT-3 with thousands of real people's demographic backgrounds to produce what the authors call silicon samples, and argued that the model's response distributions show algorithmic fidelity for different subgroups. The more specific the background given to the model, the closer the answers come to the real subgroup.

Wang et al., 2024 compared 4 models, 3,200 participants, and 16 demographic identities, and found that models flatten differences inside a group when answering. Mitigation at inference time reduces the effect but does not eliminate it; bias and safeguards are covered in simulated user bias and guardrails.

Park et al., 2024 interviewed 1,052 American adults for two hours each and built simulations from the transcripts. On General Social Survey questions, demographics alone scored 60.4%, adding the interview scored 69.4%, and participants' own answers two weeks later matched at 79.5%. The fuller the background, the closer the result to real people, and real people have a ceiling on self-consistency.

Together the three studies put two requirements on the method. Each agent must be written in specific terms, not just "woman, 25 to 34". The distribution across the whole batch must be controlled by program code and not left to the model.

MiroFish agent fields

MiroFish works in five steps, listed in its README: graph construction, environment setup, simulation, report generation, and deep interaction. Agents appear in the second step. Once the graph is built, the code reads entities from it, in zep_entity_reader.py, and each entity can become one simulated agent.

The agent fields are defined in oasis_profile_generator.py, ten in all.

FieldPurpose
bioShort profile of the agent
personaCharacter description handed to the language model to play
ageAge
genderGender
mbtiMBTI personality type
countryCountry
professionOccupation
interested_topicsTopics the agent cares about
karmaField for the Reddit-style platform, default 1000
follower_countField for the Twitter-style platform, default 150

These fields describe a single agent, and agents are generated one by one from graph entities, which suits growing a world out of real source material. Market rehearsal needs something else: the distribution of the whole batch has to match a segment, so the engineering team replaced this step with sampling from a segment table.

A row of paper figures of different heights standing in a line, each with a blank name tag pinned to its chest.

Sampling by segment distribution

The engineering team writes a segment table first, and code does the sampling. Each segment specifies gender ratio, age range, the share of relationship or family status, monthly income range, and internet and shopping habits. Cities come from a separate weight table, and the draw follows those weights. Each agent then gets one recent-mood sentence, drawn at random from a set.

Sampling uses a fixed random seed. The same segment table with the same seed yields the same batch of people. A different seed yields another batch with the same distribution and different individuals. Results become reproducible, and a difference between two runs can be traced to the settings.

Fig. 1A segment table goes to the sampler, and one seed gives one batch of agents
  1. Segment tableGender, age, incomeOne per segment
  2. Weighted samplingFixed random seedCity and mood drawn at random
  3. Persona cardOne per personAll fields filled
  4. Enter simulationView ad, discuss, interviewAgents see only the prepared product data

Flow sketch, no measured numbers in the figure

The persona card is the sampling output, and also the setting the language model reads while playing the role. Here is a fictional example.

ItemContent
Age and gender32, female
CityTaichung
HouseholdMarried, one child
Monthly incomeNT$50,000 to 60,000
Online habitsActive in community groups and LINE groups in the evening
Recent moodComparing childcare costs lately

The mood line gives agents in one segment different starting points. Two agents of similar age and income, one comparing prices and one who just received a year-end bonus, react differently to the same ad.

Two segment tables have been built so far. One covers 12 segments across Taiwan, and the other covers 6 family segments in a single region.

A segment table turns "who this group is" into fields that code can read, which is more dependable than a single adjective. Gender ratio is written as two numbers, age range as a start and end, relationship or family status as several states with a share each, and monthly income as a range. The language model receives a persona card that is already drawn, and never has to guess roughly how old a person is or where the person lives.

Fig. 2The seed and the segment table decide which batch is drawn
  1. Read the segment tableGender, age, income, city weights
  2. Apply the random seedCode draws agents one by one by weight
  • Table and seed both unchanged
    The same batchThe run is reproducible
  • Table unchanged, new seed
    Another batch, same distribution, different individuals
  • Table edited
    A new batch with a different distribution

This design separates the sources of variation. To learn whether a result moved because of the product or because of who was drawn, fix the seed and change only the product data. To learn whether a result is sensitive to sampling, fix the product data and try several seeds.

Segment comparison and repetition

A product goes through each segment separately so the results can be compared. The program tallies each segment's distribution and the paired differences, for example which segments find a price within the reference price, and where each segment's hesitation concentrates. The output is direction and relative difference across segments, not an absolute figure for any one segment.

The same settings are repeated 3 more times to see whether results hold. A difference that points the same way in all three runs is worth discussing, and one that flips direction is treated as noise. A second model also reads about 12% of the sample to check that each agent's answers match its settings.

The unit of comparison is the segment. Running one ad through 12 segments across Taiwan shows which segment's click intent clusters high and which hesitates most on price. The 6 family segments in a single region show how different household types within one area differ. The finer the segments, the more alike the agents inside each one, and the easier a difference is to attribute to the segment's conditions.

How to build overseas segments

Overseas segments follow the same method, with a different segment table and region table. Weights such as the gender and age structure, city populations, and income distribution can come from public data of national statistical agencies, then be cut into segments to fit the product's target. Language and shopping habits are written into the table's text fields.

The sampling, persona card, repetition, and consistency-check code stays unchanged. The limits raised by the three studies still apply. Differences inside a group get flattened, so overseas persona descriptions must be just as specific.

Overseas segments need one more check: the language and currency of the product data must match the region table. Prices go into the data the agents see in local currency, and the persona card's income range uses the same currency, so that an agent does not judge a foreign price with a feel for New Taiwan dollars. This is an alignment in the design, not new code.

When this does not fit

Simulated users answer with direction and relative difference, and do not replace a sample survey. Projecting a conclusion onto a population with a margin of error calls for a randomly sampled questionnaire, covered in how market research methods divide the work.

Simulation also comes too early when the segment cannot be written as fields. If even rough ranges of gender, age, and income cannot be set for the target group, the table can only hold vague conditions, and the flattening problem Wang et al. describe grows worse. Interviews to clarify the segment come first, and the segment table follows.

How this feeds into market rehearsal

P-Mo Test puts this step before the simulation. The segment table follows the project goal, code draws the agents, and each agent then reads the prepared product data and is interviewed. Product scope and details are on the market rehearsal service page.

To find out which segments suit a rehearsal of a given product, start from contacting the engineering team with a description of the target group.

(Contact)

Start a project.

Three steps to a clear direction and budget range.

  1. 01Book the first meeting: choose a time. A full specification is not required.
  2. 02A 15 to 30 minute online consultation: direction, budget range, and draft timeline.
  3. 03After materials are reviewed, a quote and delivery specification follows in about 3 to 5 working days.
Email
hello@polish-design.com.tw
Mailing address
3F, No. 191-1, Zhifu Rd., Zhongshan Dist., Taipei 104, Taiwan

Book the first meeting

Monday to Friday, 16:00–18:0030 minutes online

Choose a time, then confirm with a Google account or an email address. A confirmed booking can be added to the calendar.

Choose a time

Or send the details first

Not ready to pick a time yet: leave the project details here and the team replies by email. A meeting can still be booked right after sending.

More details (optional): service, stage, links, source

Information is used only to evaluate this project.

ISO/IEC 27001:2022 certificate

(Certificate)

ISO/IEC 27001:2022

Certification body
ARES International Certification
Scope
The development process for interactive immersive 3D systems, and network and infrastructure operations and management.

Verify with ARES

Urbird

Urban renewal you can see.

Before construction begins, landowners can walk through their new homes. From consent forms to demolition notices, everything runs in one system.

More than 100 modules, AI features included, combined to each developer’s needs.