Member-only story

Price Optimization with Generalized Additive Model (GAM)

Gustavo R Santos
8 min read6 days ago

Use PyGAM to discover the price that can maximize your revenue.

Optimizing Prices | Image generated by AI. Google Gemini 3, 2025. https://gemini.google.com

Introduction

The purpose of a business is — at the end of the day — to make money and profit. To fulfill that purpose, pricing is at the core of the problem, after all, charging correctly for your products and/or services may increase the profit.

I believe many companies have this common question:

What is the optimum price for this product?

I say that because we know that we don’t like to pay too much for anything. On the other hand, when something that is supposedly expensive (like a car or a house) is too cheap, we immediately get suspicious and don’t move forward with the business. Not until we are sure we are not being scammed, at least.

So, notice how complex pricing a product can be. If we price too high, we sell less. If we price too low, we may also experience poor performance in sales. This behavior is related to the effect called price elasticity.

Price elasticity is a measure of how responsive the demand for a product is to changes in its price.

In this tutorial, we will learn an approach to model prices using Generalized…

--

--

Gustavo R Santos
Gustavo R Santos

Written by Gustavo R Santos

Data Scientist | I solve business challenges through the power of data. | Visit my site: https://gustavorsantos.me

No responses yet