Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 44

Optimal Stopping: Lingerie Selection Strategy

Recommended resources

Introduction

In our previous lesson, we used collaborative filtering to predict a model's preferences, helping us intelligently curate a list of promising lingerie styles. Now, we arrive at the final, decisive moment: the fitting room tryout. You have a sequence of beautiful pieces, but you can only select one for the final photoshoot. How do you decide when to stop searching and commit to a choice, knowing you can't go back to a previously rejected option?

This lesson addresses that exact challenge. We will formulate the fitting room tryout as a classic Optimal Stopping Problem, also known as the "Secretary Problem." You will learn a surprisingly simple and powerful mathematical rule that maximizes your chances of selecting the single best lingerie piece from the sequence. This directly equips you with a formal strategy for the "Fitting Room Experimentation" phase of your project, turning a high-stakes guessing game into a problem with an optimal solution.


The Fitting Room Dilemma: A Problem of When to Stop

Imagine the scenario: you have 15 lingerie sets lined up for a model to try. She tries them on one by one. After each tryout, you must make a decision: "This is the one," ending the process, or "Let's see the next one," knowing you cannot choose the rejected piece later. This situation has several key characteristics.

Where e Hides - Secretary Problem

This short video from Dubious Insights provides an excellent, concise overview of the conditions that define an optimal stopping problem.

Watch the first minute to understand the formal constraints of the problem, such as irreversible decisions and a lack of prior information about the quality distribution of the options.

As the video explains, our fitting room problem aligns perfectly with the conditions of an optimal stopping problem:

  • You have a known number of options, (e.g., 15 lingerie pieces).
  • The pieces are tried in a random sequence.
  • You can rank the pieces you've seen so far, but you don't know the absolute quality of the entire set in advance.
  • Your decision to select or reject is immediate and irrevocable.
  • Your goal is to maximize the probability of selecting the single best piece.

Simply picking a piece at random gives you a meager chance of success. Fortunately, a much better strategy exists.


The Optimal Strategy: Explore, then Select

The solution to the optimal stopping problem is elegant and involves a two-phase approach. Given your background in operations research, you'll recognize this as a type of sequential decision strategy under uncertainty.

Cracking the Code of Decision Making: The Secret Behind ... - Medium

This article from Medium clearly articulates the optimal strategy. It uses a hiring example, which is perfectly analogous to our fitting room selection.

Read the section titled The Optimal Stopping Rule to understand the two-step process.

The strategy is as follows:

  1. The "Explore" Phase: First, you observe and evaluate a set number of initial candidates, say , without making a selection. You reject all of them, even if one seems perfect. The purpose of this phase is purely informational: to establish a benchmark for what a "good" lingerie piece looks like in this specific collection.

  2. The "Select" Phase: After rejecting the first pieces, you continue to the next ones. You then select the very first piece that is better than the best one you saw in the "Explore" phase. If no such piece appears by the end, you are obligated to choose the last one ().

This process is visualized perfectly in the image below, showing the "Explore" and "Select" zones.

This diagram illustrates three possible outcomes of the explore-then-select strategy. In scenario 1, the best candidate (*) is in the 'not seen' group when a selection is made. In scenario 2, the best candidate is successfully selected. In scenario 3, the best candidate was in the 'explore' phase, forcing the selection of the last candidate.

The crucial question is, how do you choose the optimal number of pieces to scout, ? The mathematical answer converges on a famous constant. For a large number of candidates , the optimal number to scout is approximately , where . This means you should explore roughly the first 37% of your options.

Amazingly, by following this rule, the maximum probability of successfully picking the single best candidate also converges to , or about 37%.


The Mathematical Intuition: Why ?

Given your statistical background, you might find the appearance of intriguing. It's not just a coincidence; it arises from the fundamental trade-off at the heart of the problem.

  • If you explore too little (small ), your benchmark will be low, and you risk committing too early to a mediocre piece that just happens to be the best of a poor initial sample.
  • If you explore too much (large ), you increase the risk that the absolute best piece was in your exploration sample, which you were forced to reject.

The rule perfectly balances these two risks.

Where e Hides - Secretary Problem

The same video we watched earlier now provides a concise mathematical justification for the appearance of 'e'.

Watch the segment from math for this problem. It explains how the probability of success can be modeled as an equation whose maximum is found using calculus, leading directly to the 1/e result. The key insight is that the probability of a given candidate being the best-seen-so-far is related to 1/t, whose integral is the natural logarithm.

The plot below shows this optimization visually. The probability of success, , is plotted against the number of candidates, . The blue crosses show the ratio for the optimal scouting number . You can see that this ratio quickly approaches the dashed line at , and the probability of success (red dots) hovers around 37%.

Graphs showing the success probability (P) and the optimal scouting ratio (k/n) for small numbers of candidates (n). The values quickly converge towards the 1/e limit.

For a small number of candidates, like in our fitting room scenario, we don't have to rely on the approximation. An exact optimal value for can be calculated, though the heuristic remains remarkably accurate. For example, for , the exact optimal number to scout is . The heuristic gives , which rounds to 3.


Numerical Exercise: The Final Fitting

Now, let's apply this to your project. You have successfully curated a final selection of 15 lingerie pieces for the photoshoot. The model will try them on one by one in a random sequence. You must make an irrevocable select/reject decision after each tryout.

Your Task:
Formulate this as an optimal stopping problem and determine your precise strategy.

  1. How many lingerie pieces should you have the model try on for the "explore" phase to establish your benchmark?
  2. Clearly state your decision rule for the "select" phase.
  3. What is your approximate probability of selecting the single best piece for the photoshoot if you follow this strategy?

Take a moment to calculate the value and formulate the strategy before proceeding to the solution.



Solution

1. Determine the "Explore" Phase Size (k):

  • Total number of pieces, .
  • The optimal number of pieces to scout is .
  • .
  • We round this to the nearest integer, giving .

So, your "explore" phase consists of the first 6 lingerie pieces.

2. State the Decision Rule:
Your strategy should be as follows:

  • Step 1 (Explore): Have the model try on the first 6 pieces. Reject all of them, regardless of how good they seem. Mentally note the appeal of the single best piece from this group of 6. This becomes your benchmark.
  • Step 2 (Select): Starting with the 7th piece, continue the tryouts. Select the very first piece that you rank as being better than your benchmark.
  • Step 3 (Contingency): If you get to the 15th and final piece, and it is not better than your benchmark, you are obligated to select it.

3. Calculate the Probability of Success:
By following this optimal strategy, your probability of successfully selecting the single best piece from the 15 is approximately . While this may not seem like a guarantee, it is mathematically proven to be the highest possible success rate given the constraints of the problem—far superior to the chance from a random guess.


Conclusion

In this final lesson of our advanced optimization module, you've learned to apply the principles of optimal stopping to the critical decision of finalizing a look for a photoshoot. This powerful yet simple rule transforms a situation of high uncertainty into a structured process with a maximized probability of success.

Key Takeaways:

  • Sequential, irrevocable decision-making under uncertainty can be modeled as an Optimal Stopping Problem.
  • The optimal strategy involves two phases: exploring a subset of options to set a benchmark, then selecting the first option that surpasses it.
  • The optimal number of options to explore is approximately , or the first 37% of the sequence.
  • This strategy maximizes your chance of picking the single best item, with a success probability of about 37%.

You have now completed the key topics for your lingerie design project, moving from data cleaning and trend analysis to predictive modeling and, finally, to advanced optimization for curation and selection. You are now equipped with a robust statistical toolkit to navigate the entire process, from Trend Analysis (correlation, regression), through Style Optimization (clustering, collaborative filtering), to Fitting Room Experimentation (ANOVA, optimal stopping).