<blockquote>
<p>But, wouldn’t it introduce some bias because there may have been periods of time with no sales, maybe due to high prices?</p>
</blockquote>
<p>This by itself does not introduce bias. If at some price sales are zero then that is relevant information. You could investigate whether this is due to seasonality and control for that (e.g. sales of ice cream). However, note estimating this model with simple regression will for sure result in biased results that do not reflect true elasticity at all. Hence if you are just estimating this equation you are pretty much just wasting your time if you actually worry about having biased estimates. If you do it just to learn programming its ok but if you actually need to know elasticity for some decision making then this will not give you unbiased estimates.</p>
<blockquote>
<p>Should I preprocess the data differently, perhaps by grouping sales over fixed time intervals and calculating average prices?</p>
</blockquote>
<p>If you will run the regression on averages you will just make estimation less precise. The precision of parametric estimators depends on how much variation there is in the data. For example in simple OLS (<span class="math-container">$y= \beta_0 + \beta_1 x + u$</span>) precision of <span class="math-container">$\beta_1$</span> is given by:</p>
<p><span class="math-container">$$Var(\hat{\beta}_1) = \frac{\sigma^2_u}{N \cdot Var(x)}$$</span></p>
<p>By creating averages you are artificially suppressing some of the variation in the independent variable. In addition you will end up with less observations (smaller N). Hence there will be double penalty to the precision of your estimates.</p>
<blockquote>
<p>What would be the right way to do it?</p>
</blockquote>
<p>It is generally impossible to estimate elasticity just from single regression like your post suggest. When you regress sales on prices you will not get unbiased estimates of elasticity regardless of the data quality.</p>
<p>If you want to do it right way you have to use some simultaneous equations approach that models both the demand and supply side. For example, you could use IV regression where you use firm costs as instrument for prices (justification for this comes from mark up pricing IO models). Then the IV regression would give you unbiased estimates of elasticity.</p>

CC BY-SA 4.0
2024-05-06T09:19:57.813Z
Thank you for your answer. It's clear to me that using this simple model will not give unbiased estimators, but perhaps I have not made myself clear about the kind of data I have. You say: *If at some price sales are zero then that is relevant information.* and I totally agree, what I say is that I don't have this information, since I only have the number of units **sold** at each price, I have no Q=0 for any price. That's what I'm concerned about. Should I include this information? If so, how? Since price varies a lot in the market I'm studying
martizarra
CC BY-SA 4.0
2024-05-06T10:54:20.967Z
@martizarra no it’s not necessary to include that information, you shouldn’t fabricate data when they don’t exist. You can still get estimates in the relevant range of data you have.
1muflon1
CC BY-SA 4.0
2024-05-03T10:59:40.407Z
2024-05-03T10:59:40.407Z
1muflon1
<p>I’m planning to use the log-log model to estimate price elasticity of demand
<span class="math-container">$$\ln(Q) = \beta_0 +\beta_1\ln(P) $$</span>
I’m already aware of its drawbacks and that there are other estimation methods, but I want to start with this approach since it’s quite simple. I have concerns regarding the type of data I should use.</p>
<p>My dataset consists of the prices at which each product was sold.</p>
<p>Initially, I considered aggregating sales data by counting the number of products sold at each price. But, wouldn’t it introduce some <strong>bias because there may have been periods of time with no sales</strong>, maybe due to high prices? It seems that using sales data alone might overlook periods of zero sales, skewing the analysis. Should I preprocess the data differently, perhaps by grouping sales over fixed time intervals and calculating average prices? What would be the right way to do it?</p>

<elasticity><applied-econometrics><data>
What kind of data should I use for estimating price elasticity of demand?
martizarra
# What kind of data should I use for estimating price elasticity of demand?

(Asked by: username_0 on 2024-05-03)

I’m planning to use the log-log model to estimate price elasticity of demand
$$\ln(Q) = \beta\_0 +\beta\_1\ln(P) $$
I’m already aware of its drawbacks and that there are other estimation methods, but I want to start with this approach since it’s quite simple. I have concerns regarding the type of data I should use.

My dataset consists of the prices at which each product was sold.

Initially, I considered aggregating sales data by counting the number of products sold at each price. But, wouldn’t it introduce some **bias because there may have been periods of time with no sales**, maybe due to high prices? It seems that using sales data alone might overlook periods of zero sales, skewing the analysis. Should I preprocess the data differently, perhaps by grouping sales over fixed time intervals and calculating average prices? What would be the right way to do it?

**Tags:** elasticity, applied-econometrics, data


---

## 1 answers

### Answer by username_1 on 2024-05-03. Score: 1

> But, wouldn’t it introduce some bias because there may have been periods of time with no sales, maybe due to high prices?

This by itself does not introduce bias. If at some price sales are zero then that is relevant information. You could investigate whether this is due to seasonality and control for that (e.g. sales of ice cream). However, note estimating this model with simple regression will for sure result in biased results that do not reflect true elasticity at all. Hence if you are just estimating this equation you are pretty much just wasting your time if you actually worry about having biased estimates. If you do it just to learn programming its ok but if you actually need to know elasticity for some decision making then this will not give you unbiased estimates.

> Should I preprocess the data differently, perhaps by grouping sales over fixed time intervals and calculating average prices?

If you will run the regression on averages you will just make estimation less precise. The precision of parametric estimators depends on how much variation there is in the data. For example in simple OLS ($y= \beta\_0 + \beta\_1 x + u$) precision of $\beta\_1$ is given by:

$$Var(\hat{\beta}\_1) = \frac{\sigma^2\_u}{N \cdot Var(x)}$$

By creating averages you are artificially suppressing some of the variation in the independent variable. In addition you will end up with less observations (smaller N). Hence there will be double penalty to the precision of your estimates.

> What would be the right way to do it?

It is generally impossible to estimate elasticity just from single regression like your post suggest. When you regress sales on prices you will not get unbiased estimates of elasticity regardless of the data quality.

If you want to do it right way you have to use some simultaneous equations approach that models both the demand and supply side. For example, you could use IV regression where you use firm costs as instrument for prices (justification for this comes from mark up pricing IO models). Then the IV regression would give you unbiased estimates of elasticity.

> **Comments:**
> **username_0**: Thank you for your answer. It's clear to me that using this simple model will not give unbiased estimators, but perhaps I have not made myself clear about the kind of data I have. You say: *If at some price sales are zero then that is relevant information.* and I totally agree, what I say is that I don't have this information, since I only have the number of units **sold** at each price, I have no Q=0 for any price. That's what I'm concerned about. Should I include this information? If so, how? Since price varies a lot in the market I'm studying  
> **username_1**: @username_0 no it’s not necessary to include that information, you shouldn’t fabricate data when they don’t exist. You can still get estimates in the relevant range of data you have.  

---

