Blog Archive

Sunday, May 21, 2023

Of course you need calculus to buy groceries (Measure, Integration and Grocery/Amazon Shopping)

We know that there is a saying in life that mathematics is useless. Do you need calculus to buy groceries? As a mathematics student and someone who goes to the supermarket every other day to buy groceries and cook, my answer is that it seems essential, not only in the supermarket but also in Amazon.

But we can not use Riemann integral to do this; that is why the Riemann integral is bad and why we need Measure Theory (just kidding.

What is Measure space?

Measure space is a triple (X,Σ,μ), X is a set, Σ is a sigma-algebra, and μ is a measure function.

A σ-Algebra is a kind of Boolean algebra, it requires closure under complementation and countable union operations. By De Morgan’s law, this implies closure under a countable intersection.

Because i=1Ai=(i=1n(Aic))c

This, in turn, implies that =AAcΣ,X=AAcΣ

Measure function μ:ΣR+ have properties as follows

μ()=0

μ(i=1Ai)=i=1μ(Ai), is disjoint union

View supermarkets and Amazon as Measure space

Consider all the goods in supermarkets or Amazon

Let Σ:=P(X), and μ be the price.

Check is a Measure space! ( also supermarket)

When we check out, what we do actually is, integral for nonnegative simple functions!

The nonnegative simple functions is such as f(x)=i=1nλiχAi(x)

χAi(x)={1,xAi0,xAi

In this case, it is just whether you have bought it or not.

OK, so, what is integral for nonnegative simple functions on a Measure space?

The definition is Xfdμ=i=1nλiμ(Ai)

And f(x)=i=1nλiχAi(x) represents what you bought, it is just like a list.

For example, what you want is A=i=1n{ai}

And f(x)=i=1nλiχ{ai}(x), λi is how many pieces of ai you buy

When you check out, the money you need pay is just Xfdμ=i=1nλiμ({ai})

For example, in (Amazon,Σ,u), the integral for the nonnegative simple function is just like

img

 

 

No comments:

Post a Comment

Popular Posts