How Exposure Calculations Work
Exposure calculations use raw assignment data stored in an Assignment Table. The exposure calculations use four inputs:- An assignment table. Specifies what assignment table in the data warehouse to query.
- A start and stop time. The times define what interval to query the assignment table for.
- Exposure Key. The exposure calculation filters rows in the assignment table where the exposure key is equal to the supplied value.
- Variant Key. The calculation filters rows in the assignment table where the variant key is equal to the given value. If you don’t specify a variant key, the calculation doesn’t filter on the variant key.
Storage
Exposure calculations write to your data warehouse. You configure the destination schema and dataset when you set up the data warehouse connection. The exposure calculations create a new table in the data warehouse for all new A/B tests and rollout.Exposure Time
Time of exposure is the timestamp of the first assignment for a user. Later assignments don’t affect the exposure calculation.Exposure Filtering
Exposure filters are also referred to as ‘trigger analysis’ in the literature and blogs.
You can see the results for all metrics with and without all exposure filters
simultaneously by clicking Detailed results in the top right corner of the
metrics result section in the results page. Confidence shows the exposure filter
column by default if the experiment has any exposure filters.
Exposure filters don’t affect who actually gets the experiment
experience. The filter only narrows down who counts as exposed in your A/B
test. Since the exposure filter event might happen some time after the base
exposure event, an exposure filter also affects when in time exposure happens,
which in turn determines who to include in the experiment results at different
points in time. For example, the exposure count without an exposure filter might
be 1000 at a given time point, but the exposure count with an exposure filter
might be 500 for the same time point. If you would like to limit who actually
sees the A/B test, you should instead use inclusion criteria.
You run an A/B test where you add credits and links at the bottom of Spotify’s Rap Caviar
playlist. Possible exposure definitions that range from less to more
restrictive include:
- Launching the app
- Opening a playlist
- Opening Rap Caviar
- Playing from the Rap Caviar playlist
- Scrolling to the bottom of the Rap Caviar playlist
Filter the Exposure Filter Fact Table
Select rows from the fact table you use as an exposure filter by filtering the rows on values from columns in that fact table. If you for example have several types of page views events in the same fact table, you can filter out only the page views from a certain page to use as the exposure filter.For exposure
filtering, you can only select fact tables that have a column of the type
Entity that matches the entity for the experiment.Health Checks with Exposure filters
Confidence runs all health checks with and without all exposure filters and sends alert to the experiment owner if a health check fails.Schedules
When you run an experiment you typically don’t want to calculate exposure just once but multiple times throughout the runtime of the experiment. This recurring calculation is typically referred to as an Exposure Schedule in Confidence. Although Confidence supports any variable intervals the built-in workflows come in two modes: hourly and daily. For both of these modes the actual intervals are variable and slowly ramp up to the interval you’ve selected. This ensures that you get quick feedback as soon as you’ve launched your experiment. Here’s an example of how an hourly schedule might look if launched at 12:46:45.- 3 minutes 15 seconds (12:46:45 to 12:50). This ensures that the schedule aligns with even minutes.
- 5 minutes (12:50 to 12:55).
- 10 minutes (12:55 to 13:05).
- 15 minutes (13:05 to 13:20).
- 40 minutes (13:20 to 14:00).
- 60 minutes (14:00 to 15:00). The schedule remains at 60 minutes after reaching the last interval.

