News

My basil finally developed roots! I'm currently reading about quantum mechanics, ferrofluids, and language models.

Blog

[08/09/2024:] Motivating Ladder Operators II
[08/08/2024:] A Cool Way to Garden
[08/08/2024:] Life and Basil Limeade
[08/05/2024:] Motivating Ladder Operators
[08/04/2024:] Migrated to AstroJS
[07/31/2024:] The Classical in the Quantum

Notes

Working on notes on the quantum mechanics, derivatives, and uploading my previous course notes onto this blog!

Projects

Finally started a projects page! I've recently made some nice upgrades to my post component, so it looks pretty clean! ;)

🌊

I'm considering whether or not to continue this project using WebGL or Three.js.

I'm also researching methods for generating the 3D scenes I want for this project automatically.

In the meantime, I've decided to proceed with some preliminary prototypes of the other interactive parts of this project.

Orange Juice

I like orange juice. :)

Mlog


Notions of Smoothness

August 11, 2024
By Aathreya Kadambi

I’ve found that in different classes I’ve taken, there are different philosophies on what smoothness is. In my time series class, we thought of smoothness as this idea of how “flat” a function was. A function whose derivative changes too rapidly develops this sharpness, for example look at this picture:

Au contraire, smoothness in mathematics is more about continuity and differentiability. For example, check out this function:

It has a sharp corner because its first derivative isn’t continuous. Another example is:

which isn’t smooth because it oscillates way too much that it gets sharp at x=0x = 0.

Clearly, both ideas match our intuitive ideas about smoothness on the basic examples above. Where they differ is when we think about extreme cases, and in the ways they quantify and classify smoothness.

Statistician’s Smoothness

Formally, we might define smoothness as

Definition (Statistician’s Smoothness). We say a function f(x)f(x) is nn-smooth if dnfdxn\frac{d^nf}{dx^n} is bounded, namely, there exists CC such that dnfdxnC|\frac{d^nf}{dx^n}| \le C.

Although I have mainly seen this definition used with n=1n = 1 or n=2n = 2, I am just extrapolating.

Remark. We didn’t cover any extensions in class so I don’t know if this is “official” in some sense, but I think a natural extension for other curves and surfaces is that the tangent space has curvature which is counted below.

This is a good definition in most cases, but isn’t intuitive in others. For example, consider f(x)=exf(x) = e^x. This isn’t smooth according to a statistician! It does look smooth to me though.

Mathematician’s Smoothness

A mathematician’s definition would allow for exe^x to be smooth. Formally, a mathematician would likely give you the following definition for smooth:

Definition (Mathematician’s Smoothness). We say a function f(x)f(x) is nn-smooth if dkfdxk\frac{d^k f}{dx^k} exists for all knk \le n.

On the other hand, there are many functions which look not so smooth but would be smooth under this definition. For example, check out this plot:

The red curve is 11+e1000000x\frac{1}{1+e^{-1000000x}}, and the blue curve is x1000x^{1000}. These are both smooth to a mathematician, but from a birds eye veiw, look to have sharp corners. Now of course, if you zoom in close enough, it starts to look smooth, but on a big picture level, one could say that this looks sharp. And it is, in the sense of the statistician’s notion.

Relationship

I think both ideas are pretty interesting and intuitive in their own rights. At the very least, they both require the existence of the nnth derivative. On the other hand, notice that nn-smoothness doesn’t necessarily imply n1n-1-smoothness in the statistician’s case, while it does in the mathematician’s case. I think it make more sense in the statistician’s case to consider both the number of derivatives taken but also the constant that is bounding the function. Then, on compact sets, one might notice that the constant grows as nn becomes lower, but since differentiable functions are continuous, they must be bounded, so we would have the reverse implication.

The statistician’s perspective is useful when we want to identify means. For functions which have finite mean, the idea is that by sufficiently restricting the derivative of approximating functions, the best approximator will look sort of like the mean of the function over time. I guess it makes a lot more sense in a time series context, so it might just sound like im blabbering on right now.

The reason I thought about this initially was that we might sometimes want to penalize the magnitude of the second derivative of a function as a method of regularization, or to identify the trend in seasonal-trend decomposition, for example. But this doesn’t really allow us to recognize exponential trends as well, even though they are quite smooth! On the other hand, it is difficult to penalize based on the mathematician’s notion of smoothness, since for digital signals, we could either have a interpolation which is smooth, or a piecewise linear and completely not smooth interpolation. The mathematician’s definition only makes sense when we have some kind of notion of “continuity” in th first place.

For mathematicians who believe in “continuous differentiability” instead of just differentiability for smoothness, I think this more closely matches the idea from statisticians. On compact sets at least, this would mean that a mathematician’s nn-smoothness would imply the statistician’s nn-smoothness, and it would then be interesting to consider the constant which bounds the derivative.



As a fun fact, it might seem like this website is flat because you're viewing it on a flat screen, but the curvature of this website actually isn't zero. ;-)

Copyright © 2024, Aathreya Kadambi

Made with Astrojs, React, and Tailwind.