Optimizing for happiness

[latexpage]
Let $f(x)$ be a convex mood function, with happiness at its minimum. With all the swings of moods, $f(x)$ is not necessarily differentiable, and although it may be steep at parts, we assume it is continuous.

Then, we wish to solve the minimization problem
\[
\min_x f(x)
\]

We propose to use a subgradient method. The intuition is that you may pick a direction for your mood to change. Any subgradient at your current point $x$ will point upwards of the curve (less happy), so we take a step towards the opposite direction. There are a variety of ways to select a time step, e.g. exact line search, backtracking. Without loss of generality and for simplicity, we use a constant step size.

Bottom line: If you just smile a little more, you’ll end up happier.

Subgradient method for convergence on happiness

given a starting point $x \in \text{dom } f$
given an error parameter $\epsilon \ll 1$
$\text{stop} = \text{false}$
while $! \text{ stop}$ do

  • $\Delta x \leftarrow -\partial f(x)$ % Select a subgradient
  • $t \leftarrow \epsilon$ % Line search
  • if $x + t\Delta < x$ and $\abs{t \Delta x} \leq \epsilon$ then $\text{stop} = \text{true}$
  • $x \leftarrow \min(x, x + t\Delta x)$ % Update

end while

(Thanks, Pranjal, for the inspiration.)

Curiosity

2 months into the PhD now, and we are very much still exploring this grand academic environment at Berkeley. Here are a few of the questions that many of us are asking ourselves and one another. And even though we fully realize that our answers will develop, warp, and combust over the course of the next half decade, we at least have some established prior from which we can begin our journey. The discussions have been extremely insightful and provocative, and I look forward to many more.

About the past

  • How did you get here? Why are you here, at Berkeley? Perhaps differently, why do you think they admitted you?
  • How do you value money? What is your cost for agreeing to not pursue a PhD? 20 million vs 500 billion?

About the future

  • What do you care about? What is your big problem/idea/area?
  • What would you consider to be the biggest problem for society?
  • Do you consider your role in society? What do you consider it to be? Do you feel an obligation to serve society in the way that you are best suited? How does happiness factor in?
  • Do you think your time is best spent via a career in academia? Via research? In industry? As a parent?
  • Do you want to become a professor?

And about the present, quite literally

  • How many projects are you working on now? Which of them with professors?
  • How many group meetings of different professors are you attending?
  • What’s your plan for this semester? For the first year?

The 20 Smartest Things Jeff Bezos Has Ever Said AMZN

“When [competitors are] in the shower in the morning, they’re thinking about how they’re going to get ahead of one of their top competitors. Here in the shower, we’re thinking about how we are going to invent something on behalf of a customer.”

"Invention requires a long-term willingness to be misunderstood. You do something that you genuinely believe in, that you have conviction about, but for a long period of time, well-meaning people may criticize that effort. When you receive criticism from well-meaning people, it pays to ask, ‘Are they right?’ And if they are, you need to adapt what they’re doing. If they’re not right, if you really have conviction that they’re not right, you need to have that long-term willingness to be misunderstood. It’s a key part of invention."

via The 20 Smartest Things Jeff Bezos Has Ever Said AMZN.

Privacy Collision: Driver Monitoring Tech Also Great For Tracking Movement | The Security Ledger

With knowledge just of the origin of a trip, they found, they could accurately predict the destination of the journey absent any GPS data. They accomplished this using a strategy they called “stop-point matching,” on the theory that the pattern of stop points from a known origin will be more or less unique for any location, unless the layout of streets is very regular (such as Manhattan’s grid layout.)

via Privacy Collision: Driver Monitoring Tech Also Great For Tracking Movement | The Security Ledger.

HT Geza