231 points · by ironSkillet · 4y ago · 161 comments
"Powell also said the Fed will slow the pace of increases [to interest rates] at some point"
This is referencing a 3rd derivative (loan obligation = base, interest rate = 1st derivative, change in interest rate = 2nd derivative, pace of changes in interest rate = 3rd derivative).
I was wondering if hackernews had any other interesting examples of higher order derivatives that one might encounter in everyday life.
I tried to understand some of their data but it was beyond my capacities - despite having access to some raw data. I do not think that the general population cared (the concern was rather on how to calculate 1 km from their house) but for someone who is allergic to bad statistics creating crappy results it was torture.
And indeed some companies report growth of up to 30%… and then the stock goes down because it is less than expected. I know it was going to be like that but it’s even more so than I expected it to be. It feels… annoying.
Same with Beyond meat, they strike some deal with McDonalds, feels like a big deal, the stock does… nothing :s.
1. base: how many Marines you have
2. dx: how many Marine-producers you have = X Marines / sec
3. d2x: how many Marine-producer-producers you have, your harvesting units = (X Marines / sec) / sec
4. d3x: how many harvester-producers you have, your bases
5. d4x: how many base-producers you have
Idle games also fall in this category: first you chop wood with a crap axe, then you use wood to upgrade to a better axe, eventually you assemble an axe factory.
Inverted pendulums use such advanced math as well: https://en.wikipedia.org/wiki/Inverted_pendulum
50 minerals per worker + 100 minerals per supply depot at some amortized rate.
You have a dampening term on workers/mineral patch which saturates between 2-3 workers. It’s pretty linear till then.
Then you get a new base and do it again.
The problem is you have both time and minerals (and supply, gas) as resources, which means there are multiple competing derivatives. I’d be interested in seeing if you can approximate the economy with derivatives alone but I think you’d have to have some discrete simulation.
https://en.wikipedia.org/wiki/Incremental_game
Universal paperclips is a famous one: https://www.decisionproblem.com/paperclips/index2.html
The faster you build construction units, the faster you can increase the amount of construction units you have available to build construction units more quickly.
Within a game, the "derivatives" start looping on themselves to keep the game balanced and interesting.
More generally, this is why I'm wary of indirect indicators. They never tell the whole story, and because of that they're used disingenuously in order to muddy the waters. You see this a lot in big scale PR campaings, such as climate change denialism, and pro-sugar and pro-alcohol disinformation (we had a lot of pro-tobacco as well, but it has subsided in the last two decades or so, at least in the West).
More precisely suppose that f is twice continuously differentiable and f'(x) < 0 and f''(x) ≥ 0 for all x greater than some K (for example K=0 in the examples given) then λ( (f'')^-1((a, ∞)) ∩ (K, ∞) ) < ∞ for all a > 0 where λ is the Lebesque measure.
If a function is analytic, then the derivatives at one point tell the whole story on the complex plane--the information is all encoded at (an arbitrarily small neighborhood around) a single point. But most smooth functions aren't analytic; indeed, a smooth function that is the trace of a process taking any stochastic external input will typically (probability 1) not be.
Generally speaking in finance things like price trajectories and timeseries like economic indicators are modelled as stochastic processes. Often a Wiener process with drift, and then jumps and jumps in volatility added as needed to capture the dynamics of the situation if required. So there's definitely no requirement to be smooth or diferentiable everywhere, and there is even less requirement for a positive 2nd derivative to lead to a positive slope/turnaround.
Cubic bezier curves (generally the most common type) are represented by cubic polynomials x(t) and y(t) (or just one polynomial P(t) where the coefficients are vectors). The first derivative gives you the tangent and normal. The second derivative gives you the direction the normal will gradually become as t increases. The third derivative gives you the change in this change (the fourth derivative is zero). Curvature is also computed from the first and second derivatives: K = det(P', P'')/||P'||^3
Other kinds of bezier curves are similar. In quadratic ones the first and second derivatives are normal and normal change but the third derivative is zero. In higher-polynomial bezier curves the third derivative changes over time as the fourth is non-zero, and so on.
Source is a really interesting video on bezier curves which I highly recommend: https://www.youtube.com/watch?v=aVwxzDHniEw.
Similarly, SVG supports both quadratic and cubic Bézier curves.
https://en.m.wikipedia.org/wiki/Jerk_(physics)
Even during driving, intuitively you don't yank the steering wheel to the desired position but produce a eased-in eased-out progressive movement that results in such a trajectory.
So pilots have to sort of double-integrate to set their heading.
So to put that into context, driving a car is only the 1st derivative right? The steering wheel angle corresponds (although nowadays non-linearly) to that of the wheels, a function of which is the driving direction.
Do you know whether the “angle rate” behavior is unique to airliners, or does it apply to other aircraft as well? Because my assumption (based mostly on imagination and videogame controls) would be that f''(x) handling can’t be reactive enough for the real-time type of flying done in helicopters or fighter jets…?
Fighter jets definitley have that same double-integration, although they can handle super fast control inputs, roll speeds etc. Not as familiar but I think helicopters too - the cyclic stick controls bank angle and pitch, which you'd use along with the pedals during turns in moving flight. But while hovering in place you could rotate with just the pedals (tail rotor) more like steering a car.
This is interesting, I always thought that it was linear. I was wondering about how speed impacts this (if at all) and now I will have to dig deeper :)
Suppose you're driving, and you keep your speed constant (no change in the accelerator or "gas" pedal). Keeping the steering wheel at a fixed orientation then moves you uniformly along a fixed circle == constant acceleration == constant force (you feel from car) to the left or right.
But when you move the steering wheel, you're changing the circle radius, and changing acceleration, which changes the force you feel. To a first order approximation (I think), the rate of change of steering wheel position is the rate of change of acceleration, or 3rd derivative of position.
It's not a surprise that a car ride feels smoother when move the steering wheel slower, but the speed of steering wheel motion is the simplest tangible example I can think of for controlling and experiencing a third derivative.
Jerk is also what triggers car/motion sickness. So for the comfort of your passengers, move the controls slowly. Roller coaster designers know this well and I think they even consider fourth and fifth derivatives when designing coasters.
If you hold a thin beam (say, a ruler or a stiff piece of paper) horizontally in the air by one end, and press down on the free end, it bends from a straight line into a third-order (cubic) polynomial.
To calculate this, one considers the beam as a number of little segments connected to one another. The vertical force on each segment due to the force pressing down is constant over the beam. The first integral of this is the torque ("moment") on each segment. The second integral is the slope of the beam, and the third integral is the actual shape of the bent beam. If you consider it the other way around, the force is the third derivative of the resulting beam shape. This is often visualized in a "shear force and bending moment diagram".
The best part is there's a stupidly simple approximation to calculate how much bending you get from a single force (Hooke's law [2]): the distance the beam moves is proportional to the force (by some constant you can get either with these derivative calculations or by experiment).
[1] https://en.wikipedia.org/wiki/Bending [2] https://en.wikipedia.org/wiki/Hooke%27s_law
Back in the pre-cad days, designers would bend a piece of thin, elastic spline-wood to draw curves. From the side it looks exactly like a Bézier curve, this is not a coincidence, Beziers are more or less same as the physical bending equation for such a spline.
https://tenmilesquare.com/resources/iot-connected-hardware/a...
"Note: In the past TinyG used 3rd-order “constant jerk” motion planning, similar to a form of controlled-jerk motion planning that is found in some commercial products. TinyG has since moved on to even smoother motion control that uses further derivatives “snap” (4th derivative), “crackle” (5th derivative), and “pop” (6th derivative). As far as we know, no commercial CNC products advertise that they use 6th-order motion planning."
It's also super relevant to roller coaster design.
Is there something specific about jerk that makes it important to optimize for, or are all position derivatives of order 3+ the same?
I think of it in terms of neck muscles. If your car is accelerating at a constant rate, you feel that as a force pushing your head back. Your neck muscles activate to compensate and keep your head still.
If the acceleration changes suddenly and aggressively (i.e. high jerk), so does the force on your neck. So either your neck muscles react quickly to counteract the new force, or your head bounces around.
Higher order derivatives also matter, but mostly inasfar as they act on the acceleration (and hence force) that you feel.
1) coffee is always under constant acceleration (g).
2) constant acceleration (say in the X direction instead of Y) would just mean a constant "tilt" within the cup. compare this to an airplane that is not "accelerating" and just at a constant X velocity, coffee would look "still/flat" in your cup.
3) its only the jerk that changes the "tilt" within the cup (and hence causes the spill)
If you move in a circle around a corner, you have constant acceleration, otherwise you would go straight (centripetal force needs acceleration to exist). yet it is possible to move a coffee cup in a corner, as long as you tilt it a little bit. So acceleration is not the issue
However if you suddenly change the direction of the coffee cup, you introduce jerk, because you accelerate the acceleration (you change the size of the circle means you change the acceleration, therefore you introduce jerk = coffee spilled on the floor)
https://web.archive.org/web/20180626030437/https://info.aiaa...
[1] "Control for precision mechatronics" https://doi.org/10.1007/978-3-030-44184-5_100044
[2] "Trajectory planning and feedforward design for electromechanical motion systems" https://doi.org/10.1016/j.conengprac.2004.02.010
Also see this paper[1] (also cited by 'jjgreen elsewhere in this thread) which discusses the perception of higher derivatives in the context of roller coaster rides.
[1]: https://iopscience.iop.org/article/10.1088/0143-0807/37/6/06...
So what is inertia, and what makes it interesting on its own?
I guess we could describe it as v(t) = v(t - d) if a(t - d) = 0 for small d (velocity remains constant unless a force, i.e. acceleration, is applied) but this seems to be a bit self referential since it's just a longer way to say a(t) is v'(t).
What makes inertia interesting compared to other derivatives? Isn't acceleration "inertial" wrt jerk by definition? Or rather, any derivable function is "inertial" wrt to its derivative. Even if we had velocity change without external forces we'd just introduce a "phantom force" like gravity to make it all work nicely.
Is inertia as a concept just an artifact of classical physics being framed in terms of position and forces?
You've got to deal X damage to win.
You could directly cast spells at an opponent each turn.
Or instead you can play units or destroy enemy units to affect the amount of damage being done each turn.
Certain cards even increase the amount you can increase your damage each turn, e.g. by reducing costs, drawing cards on future turns, or improving deck contents.
Ecgonine is a tropane derivative from coca leaves and is convertible 2-carbomethoxytropinone and then cocaine. Another example is making buprenorphine from thebaine which is used for making oxycodone, oxymorphone, buprenorphine, naloxone and other opiate agonists. US Controlled substances act in 1986 spelled out the number of steps was irrelevant.
https://pubs.acs.org/doi/10.1021/acsomega.0c00282
Another area we're seeing twice and third derivatives to get around regulatory & consumer purview is perfluoroalkyl chemicals ie PFOAs, PFAS, PFOS. Consumers and regulators start avoiding or banning some of them, let's just spin up some derivatives of the perfluorooctane sulfonic acids that they haven't cracked down on yet and put that in everything until the people become savvy and then we'll move on to newer harmful unbanned things!
Therefore, angular velocity is determined by jerk - the rate at which this thrust vector is changing.
The angular velocity cannot be changed instantaneously, because the quadrotor can only exert a finite torque about its rotational axes. So we need to design trajectories that do not attempt to change the angular velocity -- and hence, the jerk -- too quickly.
Therefore, we should try to minimize something like the maximum norm of the snap along the trajectory.
In practice we often minimize the integral of the squared norm of the snap, because it can be posed as a convex quadratic optimization problem with respect to the control points of a spline.
Just checking my understanding.
The Wikipedia page on Jerk also has a good explanation for the how people feel that: https://en.wikipedia.org/wiki/Jerk_(physics)
I'm unsure if we can really feel Snap and beyond.
when you calculate risk/exposure of your position, you want to consider Delta and its derivative, Gamma. But you also need to consider the rate of change of Gamma.
OTOH, I have never encountered PG in everyday life, so perhaps this doesn't count!
There are mechanical g-force meters you use when driving. The position of the needle is the acceleration (2nd derivative of position). The velocity of the needle would be the 3rd derivative. The acceleration of the needle would be the 4th.
A sound wave at a specific frequency is a cyclical difference in air pressure, so there's an infinite number of derivatives here. But let's take the Fourier Transform to keep it simple: a specific frequency is a constant. Music is made by having different frequencies together, ie multiple constants, and changing them over time ie first derivatives. You also want that change of rate to be smooth, which means there is an impact on the second derivative. I'm not sure what the third derivative would be, but I guess it would be the change in rhythm, tone, or even changing music.
It might be easier to think of it in terms of a bank deposit. If I put $100 in a bank account and the rate of interest is 5%/year, after a year my balance has grown by $5.
Of course, a loan works the exact same way in reverse. But as consumers normally we think of a loan as being paid off over a fixed length of time, so the rate of change is the rate at which you pay it off, and only second-order influenced by the interest rate.
https://www.coursera.org/lecture/robotics-flight/supplementa...
Age (base) -> Health (a large amount of the premium is based on age) (1st derivative) -> Premium (2nd derivative) -> Change in Premium (3rd derivative)
i.e. infected = base. New infection rate, spread, R0 etc = 1st derivative. R0 increasing or decreasing = 2nd derivative.
Environment, Metereology and Climate.
Climate/phenomenon (i.e. global warming) = base. Is it increasing/decreasing = 1st derivative. Is the rate of change increasing or decreasing (i.e. as carbon emissions start to enter the atmosphere after the industrial revolution) = 2nd derivative.
You could get really fancy and say that climate is a statistical function on localised individual weather observations which follow the above pattern. And that you can take a derivative on the numbers generated by these individual observations themselves measuring localised 1st/2nd derivatives. Does that make it a third derivative? Exercise left for the reader :)
Economics, Finance, Risk and Regulation.
Closely related to interest rates and equilibrium funnily enough. Lets take mortgage stock/book cause it's easy.
A percentage of mortages go into default. 1st derivative. Are the rate of defaults (or adverse events) increasing or decreasing: 2nd derivative. (am i right on that, i haven't thought too hard, just whipped it out).
Indeed, I imagine it would come up in a lot of places where things can transition between states of equilibrium. To observe equilbrium and transition to another state, you may need to first measure 1st derivative. 2nd derivative may then inform on whether the system is transitioning to a new equilibrium/state or not. Sorry if that's too abstract.
Engineering
I presume higher derivatives would come up anywhere there's possibly of feedback loops. 2nd derivative can tell you if the system is heading towards catastrophic failure.
Which brings us to...
Anything (or at least a lot) of fields that invovle practical or empirical measurements or estimations of exponential effects. Since in the real world most exponential effects have a natural limit or regulator, we're often interested in knowing when the phenomenon hits its natural limit. And this means observing the rate of change (2nd derivative) on the rate of change (1st derivative) to pinpoint where and when the exponential behaviour is breaking down.
Since the climate is far from equilibrium, temperature goes as something like the time-integral of excess carbon concentration.
CO2 concentration goes with the integral of total emissions. So emissions is roughly the second derivative of temperature.
But public policy discussions are often taking place on the level of slowing the rate of emissions growth. Which is about four derivatives up from temperature.
The real turbulence problem is figuring out ways to get around the computational complexity with cheaper models. Accurately modeling turbulence without using the full Navier-Stokes equations is really hard.
Also, contrary to what the science media says, the Navier-Stokes existence and uniqueness problem doesn't have anything to do with turbulence being hard aside from that both involve the Navier-Stokes equations. [3, 4] 2D Navier-Stokes, where existence and uniqueness has been proved, still has turbulence.
[0] Given accurate initial and boundary conditions.
[1] https://en.wikipedia.org/wiki/Kolmogorov_microscales
[2] https://en.wikipedia.org/wiki/Courant%E2%80%93Friedrichs%E2%...
The question has very strong analogies to thermodynamics. For example, one can average over microscopic motion to yield something like a diffusion equation, where transport of the (microscopically averaged) density is pushed from high to low concentrations, and all of the microscopic details get wrapped into a single number, the diffusion coefficient.
In fact, averaging over molecular dynamics works in so many contexts that the details end up not being terribly important. You will always end up with something like a diffusion equation.
It's very reasonable to think this ought to work more generally, averaging over the turbulence to produce a similar expression for the dynamics of the large-scale. But if you try to apply similar averaging techniques to the Navier-Stokes equations, the averages never end, no clear solution emerges, and the only hope to terminate the exercise is to insert some kind of "closure approximation".
Some consider a robust theory for such a closure approximation, or any method to resolve the impact of the turbulent flow on large-scale flow, to be an unsolved problem of turbulence.
These questions have been researched for many decades, and a great deal has certainly been learned, but a rigorous closure theory has been elusive. Meanwhile, the computers keep getting bigger and faster, to the point where the turbulence can in many cases be modeled reasonably well. And as the questions around turbulence become relegated to smaller and smaller scales, one starts to wonder if this is a problem that will even need to be solved in the future.
The most common example quoted is slowing the rise of the rate of increase in inflation. Inflation is change in price, i.e. first derivative.
Example: a simple change in position means that the object had to move or experience two changes in velocity (starting and stopping). And to change its velocity it had to accelerate, and in order to do that it had to change its acceleration (from 0 to whatever) and so on.
So it is with all deltas that require basically many derivatives to happen at the edges.
Useful as a monitor for the rate of change in data intensive applications that sometimes spill to disk. Spikiness is okay if it reverts towards the base within a certain timeframe, but not okay if the rate of change persists or increases over same timeframe.
For example, the Sobel and Prewitt operators (1st derivative) and the Laplacian operator (2nd derivative) can be used as filter kernels to detect edges in images.
G force is acceleration, so a second derivative.
Early looping roller coasters had big spikes in G force rather than a steady G force. This made them horrible to ride on, so no one did, and was a problem to be solved (later solved by a different loop shape).
Measure how spikey G forces are is the 3rd derivative.
y'(t) = income
y''(t) = raises
Perfectly explains grifters.
Delta, Gamma, Theta, Rho. And then some more obscure ones like Vega and even a thing called Vanna.
We also see this for car brakes (and is responsible for the "elevator feeling".)
If you've ever rode in (or drove) a Model S P85D, P90D, P100D, Performance AWD, or Plaid, you'll understand "jerk".
You can handle a surprising amount of lateral acceleration if the jerk is low. 0.5g is pretty much like standing on a steep hill.
Source: https://en.m.wikipedia.org/wiki/Fourth,_fifth,_and_sixth_der...
Affect people's decisions to go on longer trips to the country (2nd order)
Which affects growth and tourism of outlying towns in the country (3rd order)
Not found in English, but in original Russian - "ускорение темпов роста производительности труда" - about 4,090 results in Google.
"The acceleration of labor productivity growth" in English - about 11,700 results. But that's only a 5th derivative.
The quote in Russian also describes a 3rd derivative.
Rate - dt
Labor - dt
Productivity - dt
Growth - dt
Altogether d6(Work)/dt
The quote in Russian is an example of a 6th derivative.
It was often mentioned next to a proof that the party line was straight (каждая точка - точка перегиба).
“Labor productivity growth rate” is how much the first rate of change changes (2nd derivative): for example, “in 2019 one house was built, in 2020 two houses were built, in 2021 three houses were built”, the second derivative is 1 house per year per year. This is the second rate of change in that statement.
Finally, “acceleration of labor productivity growth rate” describes how the growth changes (the third rate of change): “in 2019 one house was built, in 2020 two houses were built, in 2021 four houses were built”. The 3rd derivative is 1 house per year per year per year. No other rates of change are mentioned in your statement.
Does this make sense?