Constructing a Demand-Curve Case Study. From Raw Sales Records to a Pricing Decision
Real demand curves are built from messy data. This step-by-step case study follows a community pool from its first price test to a tested demand curve and a clear pricing decision.
Planned price tests with other conditions recorded.
Adjust for other influences, then fit and interpret the curve.
A tested curve that supports pricing and planning decisions.
From scattered numbers to a usable demand curve
Textbook demand curves arrive neatly drawn. Real ones have to be built from messy records: sales that rise and fall with the weather, prices that changed for reasons nobody wrote down, and quiet weeks that are hard to explain. This topic walks through constructing a demand-curve case study from start to finish, using a community swimming pool that wants to set its summer day-pass price. Each step shows how the ideas from earlier topics in this chapter come together in practice, from holding other things equal to reading inverse demand and checking revenue.
The concepts used here are introduced across the chapter, including What Is Demand in Economics?, The Law of Demand and Its Conditions and Demand Schedules and Inverse Demand. The case study is illustrative, with numbers chosen to make each step clear.
Step one: define the question and the market
Every case study starts with a clear question. The pool’s manager wants to know how weekday attendance responds to the day-pass price, so that she can choose a price for next summer. That question already sets several boundaries. The good is a weekday adult day pass. The buyers are local residents who visit on weekdays. The period is the summer season. The measure of quantity is average visits per weekday.
Being precise at this stage prevents confusion later. Weekend visitors, families with season passes and swim-team members behave differently and would blur the picture if mixed in. Choosing the right market definition is discussed in Individual vs Market Demand. A good case study writes down its definitions before collecting any data, so that every number refers to the same thing.
Step two: gather the data
Last summer, the pool tried four different prices, each for two weeks, as part of a planned test. For each week, staff recorded the price, the average weekday attendance and the average afternoon temperature, because the manager suspected weather would matter.
| Week | Price | Average temperature | Average weekday visits |
|---|---|---|---|
| 1 | $6 | 24°C | 300 |
| 2 | $6 | 28°C | 332 |
| 3 | $7 | 26°C | 266 |
| 4 | $7 | 22°C | 234 |
| 5 | $8 | 25°C | 208 |
| 6 | $8 | 29°C | 240 |
| 7 | $5 | 23°C | 342 |
| 8 | $5 | 27°C | 374 |
Planned price tests are valuable because the price changes for a known reason, not in response to demand. If the manager had only raised prices during busy heat waves, high prices would coincide with high attendance, and a naive reading would suggest that higher prices attract more swimmers. Testing prices on a schedule set in advance avoids that trap, an issue explained in Correlation vs Causation in Economics.
Step three: look at the raw data, and notice the trap
A first look at the table shows that attendance generally falls as price rises, as the law of demand predicts. But some pairs of weeks seem to contradict it. In week 4, at $7, attendance averaged 234 visits. In week 6, at the higher price of $8, attendance averaged 240. Taken alone, those two weeks suggest that raising the price increased attendance.
The explanation lies in the temperature column. Week 4 averaged 22°C, while week 6 averaged 29°C. Hot weather pulled more people to the pool, more than offsetting the higher price. The raw comparison mixes two influences, price and weather, and attributes the whole difference to price. This is the central challenge of any demand study: separating the effect of price from everything else that changed at the same time. The principle of changing one factor at a time is set out in Ceteris Paribus.
Step four: hold other conditions constant
To isolate the price effect, the manager needs to adjust for temperature. Comparing weeks with the same price but different temperatures shows how much weather matters. At $6, a 4°C warmer week brought 32 more visits. At $8, a 4°C warmer week also brought 32 more visits. At $7 and at $5, the pattern is the same. Each additional degree adds about 8 visits a day.
Adjusted visits = recorded visits − 8 × (temperature − 24).
Week 2: 332 − 8 × 4 = 300. Week 3: 266 − 8 × 2 = 250. Week 4: 234 − 8 × (−2) = 250.
Week 6: 240 − 8 × 5 = 200. Week 7: 342 − 8 × (−1) = 350. Week 8: 374 − 8 × 3 = 350.
After adjustment, each pair of weeks at the same price gives the same attendance: 350 at $5, 300 at $6, 250 at $7 and 200 at $8.

Real data are rarely this tidy. Adjusted figures for weeks at the same price would usually differ somewhat, because of random variation and other influences such as school holidays or local events. In practice, analysts use statistical methods such as regression to estimate the effects of price and temperature together, and they report how confident they are in each estimate. The logic, however, is exactly what this step shows: remove the influence of other factors so that what remains reflects price.
Step five: build the schedule and fit the curve
The adjusted figures form a clean demand schedule for a typical 24°C weekday.
| Price | Adjusted weekday visits | Daily revenue |
|---|---|---|
| $5 | 350 | $1,750 |
| $6 | 300 | $1,800 |
| $7 | 250 | $1,750 |
| $8 | 200 | $1,600 |
Each $1 increase in price reduces attendance by 50 visits. The points lie on a straight line, which can be written as visits = 600 − 50 × price. Rearranging gives the inverse demand equation, price = 12 − visits ÷ 50. Including temperature, the full estimated relationship is visits = 600 − 50 × price + 8 × (temperature − 24). Writing relationships as equations is discussed in Equations as Economic Relationships.
The fitted equation summarizes everything the test revealed in a single line. It also makes clear what has been held constant: the temperature term captures weather, while the price term captures the movement along the demand curve. A change in temperature shifts the curve; a change in price moves visitors along it, the distinction set out in Movements Along a Demand Curve.
Choosing the shape of the curve
In the pool example, the adjusted points fall on a straight line, so a linear equation is the natural choice. Real data often leave more room for judgment. Points may curve gently, flattening at low prices or steepening at high ones. An analyst then has to decide whether a straight line is close enough or whether a curved form fits better.
A simple approach is to try more than one shape and compare how well each fits the data and how sensible its predictions are. A straight line is easy to explain and works well over a narrow range of prices. A curved form, such as one where the percentage response to price stays constant, may fit better over a wide range and avoids predicting negative quantities at high prices. Neither is automatically right. The better choice is the one that fits the evidence, makes reasonable predictions within the range of interest and can be explained clearly to the people who will use it.
The linear curve predicts 600 − 50 × 10 = 100 visits at $10 and none at $12.
A curved form fitted to the same four points might predict around 150 visits at $10 and still some visitors at $12.
Within the tested range of $5 to $8, the two forms give nearly the same answers. Outside it, they diverge.
Since the manager is choosing a price between $5 and $8, the simpler linear form is adequate for her decision.
The broader point is that a model should be judged by its purpose. Simple models that answer the question at hand are often more useful than complex ones, a theme of Economic Models.
Step six: interpret the numbers
The fitted curve has three features worth reading carefully. The slope says that each dollar added to the day-pass price costs about 50 weekday visits on a typical day. The intercept of $12 in the inverse equation is the price at which the model predicts no weekday visitors at all, though that price lies well outside the range tested. The quantity intercept of 600 visits is the model’s prediction at a price of zero, again far outside the evidence.
Responsiveness in percentage terms differs along the curve. At $5, a small price change produces a percentage change in visits smaller than the percentage change in price. At $8, the reverse is true. At $6, the two are roughly equal.
Point responsiveness = (change in visits per dollar) × (price ÷ visits).
At $5: 50 × (5 ÷ 350) ≈ 0.71. Visitors respond weakly; a price rise would increase revenue.
At $6: 50 × (6 ÷ 300) = 1.0. The responses balance, and revenue is at its peak.
At $8: 50 × (8 ÷ 200) = 2.0. Visitors respond strongly; a price cut would increase revenue.
This measure, the price elasticity of demand, gets a full chapter of its own later in the series. Here it confirms what the revenue column already showed: $6 is the revenue-maximizing price for a typical weekday, with daily revenue of $1,800.
Step seven: use the curve to make a decision
Revenue is not the same as profit. Each visitor adds some cost, for towels, water treatment, extra lifeguard hours on busy days and cleaning. Suppose the pool estimates that each additional visit costs about $1. The manager should choose the price that maximizes revenue minus these visitor-related costs.
Using inverse demand, revenue = (12 − visits ÷ 50) × visits, and marginal revenue = 12 − visits ÷ 25.
Set marginal revenue equal to the $1 cost per visit: 12 − visits ÷ 25 = 1, so visits = 275.
The matching price is 12 − 275 ÷ 50 = $6.50.
Check: at $6.50, the margin over visitor costs is (6.50 − 1) × 275 = $1,512.50 a day. At $6, it is 5 × 300 = $1,500. At $7, it is 6 × 250 = $1,500. The $6.50 price comes out ahead.
The difference between $6.00 and $6.50 is small in money, only about $12.50 a day. That is a common finding: near the best price, the profit curve is fairly flat, so small pricing errors are not costly, while large ones are. The manager might also weigh goals beyond money. A public pool may want to keep the price affordable for families and encourage exercise, which could favour $6 even at a slightly lower margin. Comparing benefits and costs at the margin is the method explained in Marginal Benefit and Marginal Cost, and balancing financial and social goals in Efficiency vs Equity.
Step eight: test the curve on new data
A demand curve is only useful if it predicts well. The best test uses data that were not used to build it. Early the next summer, the pool sets the price at $6.50. In the first week, the average temperature is 20°C.
Predicted visits = 600 − 50 × 6.50 + 8 × (20 − 24) = 600 − 325 − 32 = 243.
Recorded average visits that week: 248.
The prediction is off by 5 visits, about 2 percent. The curve passes this first test.
One good week does not prove a model correct, but it builds confidence. If predictions had been far off, the manager would look for missing factors. Perhaps a new splash park opened nearby, a substitute that shifted demand left, or local incomes had changed. The causes of such shifts are covered in Substitutes, Complements and Demand and Income and Demand Shifts.
Step nine: state the limits honestly
Every demand study has limits, and a good case study says so clearly. The pool’s curve is based on eight weeks of one summer, four prices between $5 and $8 and temperatures between 22°C and 29°C. Its predictions are most reliable within those ranges. Predicting attendance at $12, or on a 35°C heat-wave day, would mean extrapolating beyond the evidence.
The curve also assumes that other conditions stay roughly as they were. If a competing facility opens, if the local population changes or if a new school schedule frees more children on weekdays, the curve may shift. The test measured short-run responses over two-week periods. Over a full season, regular swimmers might adjust more, for instance by buying season passes if day passes become expensive. A thoughtful report notes these possibilities rather than presenting the curve as permanent. The general habit of checking a model’s boundaries is discussed in Evaluating a Model’s Scope and Limits, and the difference between short-run and long-run responses in Short Run vs Long Run Adjustment.
Finally, the case study assumes that weekday visitors decide independently and that a price change does not change who comes. If a lower price attracted large groups that made the pool crowded, regular swimmers might come less often, a congestion effect explained in Network Effects and Interdependent Demand. The data show no sign of this within the tested range, but it is worth watching.
Step ten: present the findings
A case study is only useful if others can understand and check it. A clear presentation includes the question, the market definition, the data and where they came from, the adjustments made, the fitted curve, the decision it supports and the limits of the analysis. A single chart showing the raw data, the adjusted points and the fitted line often communicates more than pages of text.
Good practice is to show the raw data alongside the adjusted results, so readers can see how much the adjustment mattered. In the pool’s case, the raw points scatter widely, and two of them appear to contradict the law of demand. The adjusted points fall neatly on a line. Showing both makes the reasoning transparent and lets readers judge whether the temperature adjustment is reasonable. Reading such charts is covered in How to Read Economic Graphs.
A brief summary for decision-makers might read: “Weekday attendance falls by about 50 visits for each $1 increase in the day-pass price, and rises by about 8 visits per degree of temperature. Revenue peaks near $6, and margin over visitor costs peaks near $6.50. A first test at $6.50 predicted attendance within 2 percent. Estimates apply to prices between $5 and $8 and normal summer weather.”
A checklist for your own demand study
The pool example follows a pattern that applies to almost any demand study, whether for a product, a service or a public program.
Define the question. Specify the good, the buyers, the period and the unit of quantity.
Collect varied prices. Planned price tests are best. Otherwise, look for price changes that happened for reasons unrelated to demand.
Record other conditions. Weather, season, income, competitors’ prices and promotions can all influence sales.
Adjust for other factors. Compare like with like, or use statistical methods to separate influences.
Fit and interpret the curve. Read the slope, the intercepts and the responsiveness at relevant prices.
Connect to decisions. Use revenue, costs and broader goals to choose a course of action.
Test and update. Check predictions against new data and revise the curve as conditions change.
Report limits. State the range of the evidence and the assumptions behind the results.
Extending the case: a second group of buyers
Suppose the manager also wants to price passes for students on weekday afternoons. Students may respond to price very differently from working adults. Running a separate small test for students, rather than assuming the adult curve applies, is the right approach. If the student curve turns out to be visits = 180 − 30 × price, students respond more strongly to price than adults do.
Student inverse demand: price = 6 − visits ÷ 30. Marginal revenue = 6 − visits ÷ 15.
With a $1 cost per visit: 6 − visits ÷ 15 = 1, so visits = 75 and price = 6 − 2.5 = $3.50.
Margin over visitor costs: (3.50 − 1) × 75 = $187.50 a day from students.
If students were charged the adult price of $6.50 instead, the student curve predicts 180 − 195 = −15, meaning no student visits at all and no student margin.
The extension shows why combining very different buyers into one curve can mislead. A single price for everyone would either price students out or give unnecessary discounts to adults. Studying each group’s demand separately allows better decisions, provided the pool can check student status at the door. How individual groups add up to a market is explained in Individual vs Market Demand, and the role of ability to pay in Willingness to Pay vs Ability to Pay.
Pitfalls that weaken demand studies
Several problems recur in real demand studies, and recognizing them helps avoid wrong conclusions.
Prices set in response to demand. When sellers raise prices because demand is strong, high prices and high sales appear together. Without accounting for this, a study may find a demand curve that slopes the wrong way. Economists call this the identification problem, and planned tests or careful statistical methods are needed to address it.
Too little price variation. If prices barely changed during the study, the data cannot reveal how buyers would respond to larger changes. The resulting curve may be very uncertain.
Omitted influences. Leaving out an important factor, such as a competitor’s promotion, can bias the estimated effect of price.
Timing effects. Short tests may capture buyers shifting purchases in time rather than changing how much they buy overall, a pattern discussed in Expectations and Consumer Demand.
Over-precise reporting. Presenting estimates with more decimal places than the data support can give a false impression of certainty. Rounded figures and honest ranges communicate better.
How economists learned to estimate demand
Estimating demand curves from data was one of the first great challenges of empirical economics. In the early twentieth century, researchers such as Henry Moore in the United States tried to estimate demand for farm products from market prices and quantities. They discovered that the data often mixed shifts in supply and demand, making simple fitted lines hard to interpret. Some early estimates even appeared to show demand curves sloping upward.
Work by economists including Philip Wright in the 1920s, and later by Trygve Haavelmo and others in the 1940s, clarified this identification problem and developed methods to address it. A key idea is to find factors that shift supply but not demand, such as weather affecting crop yields, and use them to trace out the demand curve. Today, businesses often sidestep the problem with planned price experiments, especially online, where prices can be tested quickly across groups of customers. The pool’s planned test is a small example of this modern approach.
What it means for investors
Investors rarely build demand curves themselves, but they constantly judge the results of demand studies run by companies. When a management team says it plans to raise prices by 5 percent with only a small loss of volume, it is implicitly claiming knowledge of its demand curve. Investors can ask the same questions a careful analyst would: what evidence supports that claim, over what range of prices was it tested, and what other conditions might change?
Companies that test prices systematically, track how customers respond and update their estimates tend to make better pricing decisions over time. Those that rely on guesswork or one-time studies risk mispricing as markets change. Signs of disciplined demand analysis include clear reporting of price and volume effects, consistent explanations of customer behaviour and realistic guidance about how demand may respond to economic conditions. Diversifying across companies, as explained in What Is Diversification in Investing, limits the damage if any single company misjudges its customers.
Using the method in everyday life
The same steps can help with personal and small-business decisions. Someone selling crafts online can try different prices for similar items over several weeks, note other factors such as holidays or promotions, and see how sales respond. A tutor setting hourly rates can track inquiries at different prices. A household can even study its own demand, noticing how its spending on dining out changes when prices or income change.
The key habits are the same as in the pool study: change one thing at a time when possible, record other influences, compare like with like and avoid reading too much into a single week. Good decisions come from patient observation rather than from a single dramatic result. Thinking about the value of time spent on such analysis is part of The Opportunity Cost of Time.
Common mistakes
Reading raw data without adjustment
Comparing weeks with different conditions can make price appear to have the wrong effect, as weeks 4 and 6 showed.
Mixing different groups of buyers
Adults and students, or weekday and weekend visitors, may have very different demand curves.
Extrapolating far beyond the data
Predictions outside the tested range of prices and conditions are much less reliable.
Choosing price by revenue alone
Costs per unit change the best price, and broader goals may matter too.
Never testing the curve
A curve that is never checked against new data may drift away from reality without anyone noticing.
Putting the curve to work for planning
Once the demand curve is built and tested, it can support more than a single pricing decision. The manager can use it to plan staffing, supplies and budgets for the whole season. Because the curve includes temperature, she can combine it with weather forecasts to anticipate busy and quiet days.
The forecast calls for a week of 32°C afternoons, with the price at $6.50.
Predicted visits = 600 − 325 + 8 × (32 − 24) = 275 + 64 = 339 a day.
On a cool 20°C week, the prediction is 275 − 32 = 243 a day.
The heat wave brings about 96 more visitors a day, roughly 40 percent more. The manager can schedule extra lifeguards and staff in advance.
The pool might also consider whether to vary its price with the weather, charging slightly more on very hot days, when demand shifts right, and less on cool days. Such pricing could smooth attendance and reduce crowding, but it might also frustrate regular swimmers who prefer a predictable price. A public facility might decide that simplicity and fairness matter more than squeezing out extra revenue. The demand curve informs the choice, but it does not make it. The broader trade-offs are discussed in Trade-offs in Economics.
Planning with the curve also shows how a demand study pays for itself. A manager who understands how attendance responds to price and weather can avoid both overstaffing on quiet days and dangerous crowding on busy ones, while setting a price that covers costs and keeps the pool accessible.
Frequently asked questions
How do you construct a demand curve from data?
Define the market, collect prices and quantities with other relevant conditions, adjust for those conditions, then fit a line or curve to the adjusted points and check it against new data.
Why adjust for factors like weather?
Other factors shift demand. Without adjustment, their effects get mixed up with the effect of price, which can make the curve misleading or even slope the wrong way.
What is the identification problem?
It is the difficulty of separating demand from supply and other influences when prices and quantities are observed together. Planned price tests and careful statistical methods help solve it.
How many data points does a demand study need?
More is better, with a wide range of prices and conditions. A few well-designed tests can be more informative than many observations where prices barely changed.
Should a business always choose the revenue-maximizing price?
No. Costs per unit, capacity and broader goals such as affordability can all point to a different price.
Key takeaways
- Constructing a demand curve starts with a clear question and a precise market definition.
- Planned price tests give the most reliable evidence about how buyers respond.
- Adjusting for other influences, such as weather, is essential to isolate the price effect.
- The fitted curve and its inverse support decisions about revenue, costs and pricing.
- Testing predictions on new data builds confidence and reveals when the curve needs updating.
- Every case study should state its limits and the range of evidence behind it.
Continue Learning with Invest & Compound Academy
This topic is part of the Demand chapter. Continue with the core guide and the other topics below.
All topics in this chapter
More topics to explore
Sources and further reading
- OpenStax, Principles of Economics 3e, Demand, Supply and Equilibrium
- OpenStax, Principles of Economics 3e, Price Elasticity of Demand
- James H. Stock and Francesco Trebbi, Who Invented Instrumental Variable Regression?, Journal of Economic Perspectives (2003)
- Trygve Haavelmo, The Probability Approach in Econometrics, Econometrica (1944)
Educational disclosure
This article provides general economics education for informational purposes only. It is not financial, investment, tax or legal advice, and it does not consider your personal circumstances. Examples are simplified for teaching and do not describe real people, organizations or recommendations.





