Revenue management (RM) can be defined as a set of techniques focused on analyzing consumer behavior with the purpose of obtaining the highest possible profit. In general, understanding how customersβ willingness to buy a certain good responds to this goodβs price is key. In this way, one can estimate how demand will be affected by a shift in price, and thus take actions in order to maximize revenue.
Focusing on the hotel context, the problem of finding the relation between price and demand might become highly involved as multiple actors come into play. Naturally, there might be different types of customers which respond differently to variations in price. For example, leisure customers tend to be pretty price elastic, meaning that a variation in price may substantially affect their willingness to make a reservation. This is in contrast to business customers who are in general more price inelastic, as they are often refunded for their expenses and thus do not mind booking a room at a higher rate.
In addition to different types of customers, one might also consider different types of rooms, with different prices associated with them. On top of that, we could find different customer behavior depending on the season or the day of the week, among other factors.
In this post, for illustration purposes, we will stick to a simple setting in which we do not consider different types of customers, seasons, or rooms. Our purpose is not to infer the behavior of the demand from some given data set. Instead, we below define a simple model for demand, and we will focus on finding an optimal pricing strategy given this model.
A simple hotel demand model
Let us assume the following scenario: we are a hotel manager who needs to set room prices up to T days in advance. For example, T = 356 in case we allow for reservations up to one year before the check-in date. The price for a given date of stay is set at the beginning of each booking day and is maintained during the whole day.
At the beginning of the next day we might choose a different price for the same arrival date, and the same process is repeated until the arrival date, inclusive. Consider that our goal is to maximize total profits obtained from room reservations the day after arrival (as we allow for reservations on arrival day itself). Naturally, in order to set a pricing strategy, we need to have some knowledge on how the number of rooms demanded for a given date of stay, or demand, will respond to a price change.
A common approach in the literature about hotel demand estimation is to consider the demand for rooms as a random variable. This quantity is regarded as the combination of the individual decisions of a number of potential customers looking for accommodation in a market where our hotel has presence. This number of individuals, which we refer to as the market arrivals, or simply arrivals, is denoted by π΄.
Let us consider a fixed check-in date for which we want to maximize profits obtained from room reservations. In general, we will index the variables in our model with π‘, which denotes the number of days between the current day and the arrival date. Suppose the expected number of arrivals at time π‘ (this is, π‘ days before arrival), denoted by ππ‘, was found to increase linearly as we approach arrival day (or π‘ approaches zero). Consider that the probability distribution of the number of arrivals π΄π‘ at a given advance day π‘ is given by:
when π‘ β [0, 9] and π (π΄π‘ = 0) = 1 otherwise. This means that no customers look for accommodation in our market before 9 days prior to arrival, and from π‘ = 9 onwards the potential number of customers increases linearly. For instance, at π‘ = 9 we have an expected number of arrivals π9 = 2 , so there is a 25% chance that we have π΄9 = 2 – 2 = 0 new market arrivals, a 50% chance that are π΄9 = 2 new arrivals, and a 25% chance we have π΄9 = 2 + 2 = 4 new arrivals. At arrival day (π‘ = 0), we have π0 = 20, so the possible values for π΄0 are 18, 20 and 22, with respective probabilities 25%, 50% and 25%. Of course, in general the arrival function will be way more complex, but as we said, this example is simplified for illustration purposes. Figure 2 shows how the arrival curve looks like.
Once we know the distribution of arrivals (the number of potential customers in our market at a given day), let us calculate the distribution of the actual demand. It seems safe to assume that each individual makes their decision independently of the rest, and they will choose whether to book a room at our hotel or not according to some utility value. Of course, these utility values may vary among customer segments, and even within these groups, as each person has their own conception of utility. Again, by simplicity, let us assume in this model that the probabilities that each of the potential customers chooses our hotel are equal, and let us call this common value the choice probability. With this assumption, demand follows a binomial distribution, the size parameter of which is the number of market arrivals, and the probability parameter is the choice probability.
The choice probability can be formally defined as follows. Let π be a Bernoulli random variable taking values 1 or 0 depending on whether a given customer in the market decides to book a room in our hotel or not, respectively. Then, the choice probability is just the probability of π equaling 1. Naturally, this probability depends on the price π we set and potentially other factors, such as the competitors’ prices and other less measurable quantities like the customer’s perception of quality of the different hotels. For this example, consider the naive choice probability
which fixes an upper bound for price. Indeed, if π β₯ 1 the choice probability is zero, which means that no one books a room at our hotel, and as π approaches zero we get a higher probability that our hotel is chosen.
Once we know the common choice probability and the number of market arrivals at the present day π‘, the number of rooms demanded π·π‘ can be calculated as a binomial distribution as follows:
However, in practice, the number of arrivals π΄ will be unknown, since we must be able to estimate demand at a given day π‘ before this day arrives. For instance, we could get a demand of 10 rooms at day π‘ as a result of 20 customers arriving to the market, a half of which choose to book at our hotel, or as the result of a total arrival of 100 customers with only a tenth of the market share. Both scenarios, with their respective probabilities, must be taken into account in order to calculate the demand probability.
Therefore, we have to rewrite the above expression taking into account that the number of arrivals as a function of π‘ is itself stochastic, with the probability distribution defined above. Thus, the probability of having a demand d at day π‘ given that we set a price π is given by
where a spans over all possible values for the number of potential customers at day π‘.
We already know the distribution of the number of rooms demanded at any given advance time π‘ when a price π is set. However, a distinctive characteristic of the hotel demand scenario is that the quantity of the goods provided, i.e. the number of rooms, is bounded above by the total capacity of the hotel, call it . Therefore, the realized demand (number of rooms actually booked) might not equal the number of rooms demanded when there are not enough available rooms.
In particular, let ππ‘ be the occupancy (number of rooms already booked for a given date of stay) at the beginning of day π‘, and let ππ‘ be the number of rooms demanded during day π‘. Following a strict overbooking policy, in which we do not allow for any excess in capacity, the expressions for the realized demand ππ‘ and for the occupancy on the next day ππ‘-1 will be given by
In other words, we will allow all the reservations until we reach full capacity.
It is worth noting that in most real world scenarios, hotels also allow for cancellations in advance. These cancellations would leave room for new reservations, thus slightly modifying our model. In particular, let ππ‘ be the number of bookings cancelled at day π‘, the realized demand would become . If cancellations could be made, one could also allow for a given level of overbooking in order to ensure full occupancy.
Following the simplicity principle, we do not allow for cancellations nor overbooking in this model. However, they might be added with little overhead.
Optimal pricing strategy: the value function
Remember we said our goal is to maximize the total benefits obtained from room reservations the day after arrival. Let ππ‘ be the benefits obtained from reservations made a number of days π‘ before the arrival day. When we find ourselves at arrival day ( π‘ = 0 ), with a given occupancy π0, we just need to maximize the expected benefits on arrival day π0. Naturally, profit obtained from last day reservations will depend on the price set during this day. In particular, we want to choose the price π0 which maximizes the expected benefit
As long as cancellations are not allowed, the benefit obtained at any day π‘ is just the product between the number of rooms booked the realized demand , and the price ππ‘ set,
Note that the realized demand is a random variable as it depends on the quantity demanded, which is itself a random variable whose distribution is given by Equation 1. Thus, we can find the expected value of the realized demand given a time π‘, a price ππ‘ and a current occupancy ππ‘ by summing over all its possible values weighted by their respective probabilities. Then, for each possible value of the price ππ‘ set at day π‘, we can calculate the expected daily profit ππ‘ by using the simple formula
Let us assume that we find ourselves a number of days π‘ before arrival, and define the value function ππ‘ (ππ‘) as the maximum of the total expected benefit from now on, which is achieved by setting an optimal price given that the current occupancy is ππ‘. As we argued, if we are at arrival day ( π‘ = 0 ), the value function is just the value of the expected benefits on the current day, for an optimal choice of price. Therefore, using the previous formula we can write
However, when setting prices a number of days ahead of time, our goal is not to maximize the current dayβs benefit, but the overall benefit in the long run. For instance, suppose demand is low at the moment but we have the certainty that it will boost as arrival day gets closer. In this situation, if we already have an acceptable occupancy rate, we might be interested in setting a high price and giving up some benefit at the moment in order to keep available rooms for last moment reservations, which we might be able to sell at a higher rate.
The expected benefit from now on will thus depend on the benefit we expect at future days ( π‘’ < π‘ ), and this gives us a way to define the value function recursively as
This is, the maximum expected benefit in the long run will be achieved by the price which maximizes the expected value of the sum between todayβs benefits, expressed by the term, and the maximum expected benefits from tomorrow on. This is represented by tomorrowβs value function , where the argument represents tomorrowβs occupancy given that we have a demand π today.
We can see that in order to find the value of ππ‘ (and thus the optimal price ππ‘ to be set at the given day π‘ > 0) , we need to calculate the value function for the upcoming day ππ‘-1 , which will in turn require the calculation of ππ‘-2 , and so on.
In a previous post we talked about how dynamic programming comes in handy in such recursive problems in order to avoid repetitive calculations. We will show in an upcoming post how to find the optimal price by solving the recursive value function using a dynamic programming approach. In the meantime, we encourage you to visit the Data Science category of the Damavis blog and read articles similar to this one.