Spaces:
Runtime error
Runtime error
Commit
·
154ddfd
1
Parent(s):
fcba0b8
Rephrasing
Browse files- app.py +9 -4
- assets/images/flywheel_3.png +0 -0
app.py
CHANGED
@@ -38,7 +38,7 @@ utilities (e.g., Tampa Electric) as it allows to **adjust prices to changes in d
|
|
38 |
st.markdown("""It is hardly surprising that recent times of extraordinary uncertainty and volatility
|
39 |
caused a surge in adoption of dynamic pricing strategies with an [estimated 21% of e-commerce
|
40 |
businesses reportedly already using dynamic pricing](https://www.statista.com/statistics/1174557/dynamic-pricing-ecommerce-companies-worldwide/)
|
41 |
-
and an additional 15% planning to adopt
|
42 |
st.markdown("""To find a big success story, we should look no further than Amazon who (on average)
|
43 |
change their products' prices once every 10 minutes. They attribute roughly [25% of their e-commerce
|
44 |
profits](https://dzone.com/articles/big-data-analytics-delivering-business-value-at-am)
|
@@ -72,6 +72,9 @@ st.markdown("""Now that we have a reasonable estimate of our demand function, we
|
|
72 |
expected profit at different price points because we know the following holds:""")
|
73 |
st.latex(f"{profit} = {p}*{sympy.Function(D)(p)} - [{var_cost}*{sympy.Function(D)(p)} + {fixed_cost}]")
|
74 |
st.image("assets/images/ideal_case_profit_curve.png")
|
|
|
|
|
|
|
75 |
st.markdown("""Finally we can dust off our good old high-school math book and find the
|
76 |
price which we expect will optimize profit which was ultimately the goal of all this.""")
|
77 |
st.image("assets/images/ideal_case_optimal_profit.png")
|
@@ -176,9 +179,11 @@ st.markdown("This results in the following expected profit curve")
|
|
176 |
st.image("assets/images/posterior_profit_sample.png")
|
177 |
st.markdown("""And eventually we arrive at a new price: €5.25! Which is indeed considerably closer
|
178 |
to the actual optimal price of €4.24""")
|
179 |
-
st.markdown("
|
180 |
-
|
181 |
-
|
|
|
|
|
182 |
st.image("assets/images/updated_prices_demand.png")
|
183 |
st.markdown("""We know the drill by now. \n
|
184 |
Let's recalculate our posteriors with this extra information.""")
|
|
|
38 |
st.markdown("""It is hardly surprising that recent times of extraordinary uncertainty and volatility
|
39 |
caused a surge in adoption of dynamic pricing strategies with an [estimated 21% of e-commerce
|
40 |
businesses reportedly already using dynamic pricing](https://www.statista.com/statistics/1174557/dynamic-pricing-ecommerce-companies-worldwide/)
|
41 |
+
and an additional 15% planning to adopt the strategy in the upcoming year.""")
|
42 |
st.markdown("""To find a big success story, we should look no further than Amazon who (on average)
|
43 |
change their products' prices once every 10 minutes. They attribute roughly [25% of their e-commerce
|
44 |
profits](https://dzone.com/articles/big-data-analytics-delivering-business-value-at-am)
|
|
|
72 |
expected profit at different price points because we know the following holds:""")
|
73 |
st.latex(f"{profit} = {p}*{sympy.Function(D)(p)} - [{var_cost}*{sympy.Function(D)(p)} + {fixed_cost}]")
|
74 |
st.image("assets/images/ideal_case_profit_curve.png")
|
75 |
+
st.markdown("""Note that fixed costs (e.g., rent, insurance, etc.), per definition, don't vary when
|
76 |
+
demand or price changes. Therefore, fixed costs have no influence on the behavior of dynamic pricing
|
77 |
+
algorithms.""")
|
78 |
st.markdown("""Finally we can dust off our good old high-school math book and find the
|
79 |
price which we expect will optimize profit which was ultimately the goal of all this.""")
|
80 |
st.image("assets/images/ideal_case_optimal_profit.png")
|
|
|
179 |
st.image("assets/images/posterior_profit_sample.png")
|
180 |
st.markdown("""And eventually we arrive at a new price: €5.25! Which is indeed considerably closer
|
181 |
to the actual optimal price of €4.24""")
|
182 |
+
st.markdown("Now that we have our first updated price point, why stop there?")
|
183 |
+
st.markdown("""With \"pure\" Thompson sampling, we would sample a new demand curve (and thus price
|
184 |
+
point) out of the posterior distribution every time. But since we are mainly interested in seeing
|
185 |
+
the convergence behavior of Thompson sampling, let's simulate 10 demand points at this fixed €5.25
|
186 |
+
price point.""")
|
187 |
st.image("assets/images/updated_prices_demand.png")
|
188 |
st.markdown("""We know the drill by now. \n
|
189 |
Let's recalculate our posteriors with this extra information.""")
|
assets/images/flywheel_3.png
CHANGED
![]() |
![]() |