Are you "a"? positive or negative?

Are you "a" positive or negative?

In this article I will tell you what an Hessian Matrix is and why you should care about it. Actually, we already faced Hessian or a simple form of Hessian couple of times during our high school times. Do you still remember about the quadratic function which we learnt in 10th or 11th grade? 

Suppose you have a function,

The quadratic function

where a, b, and c are just numbers and x is your variable. If you can rewind back your memory a bit to the past, what was your teacher told you at that time about this function?

I believe he/she would say,

“If your value of "a" is positive, you will get a smiley graph and you will be happy for the rest of your day. But, if your "a" is negative, well your day will be bit gloomy because your graph is sad.”

Does it ring a bell to you? Have you heard something similar? These statement can be illustrated in the following figures.ey

Positive and Negative smiley graph

So, do you get the point? Since, we are no longer a high schooler and we want to look cool, so our x now is no longer a single variable but multivariable instead. We can call it a vector x. But, do you want to be cooler?

In order to be cool, let's transform our happy and sad smiley graphs up there to a 3D surface. They will look like:

3D surface of smiley graph

Now, the graphs have transformed, so does our x. It looks like this,

No alt text provided for this image

and our lovely function f(x) will also grow up and look like this 

No alt text provided for this image

in terms of vectors and matrix. Here x, b, and c are vectors and A a is matrix. If we take the first-order derivative of our function f(x), we will get what we called the gradient vector and the second-order derivatives will give us the Hessian! The gradient and Hessian can be presented as follows:

Gradient vector
Hessian

Let’s take a moment to relate back what we had learned in high school with this matrix-vector form of a function.

We had learned that in high school if the second-derivative of our function is positive, we will get a smiley graph or scientifically a concave upward curve. If the second-derivative of our function is negative, we will get a concave downward curve.

It is similar for the matrix-vector form of a function but now it is depending on the eigenvalues of the Hessian (Eigenvalues? Maybe I will cover it later).

In conclusion, Hessian is the second-order derivatives represents the curvature of the function or the objective function in optimization literature. The Hessian or the letter H is not something you should be afraid of since it just a letter. It would not bring you any harms though.

Yet, for those who are working in the data science, machine learning, and any related fields, you have no choice. Either to face your fear of this letter H or simply quit. But you will not quit, don’t you?

For someone like you, whom I believe will not simply quit, check out this links for more details:

https://en.wikipedia.org/wiki/Hessian_matrix


Peter Bailey

Delivery Driver at Top Secret - My contract forbids me to say who I work for.

5 年

Why can you not also be flat, and also variable (a wobbly), making your geometry , and indeed space-time, adaptable to best suit your position in the universe? Probably best if you do not bend yourself into a singularity because then you might become a black hole and suck yourself out of existence, unable to counter your own gravitational pull to return to our universe. Another technical question is whether or not you wish your curvature to be expressed in polynomial form or rational polynomial, or NURB (Non Uniform Rational B-Spline form)? Using sinusoidal curves might be neater, if not as flexible and adaptable. Which geometry would you wish to show for Brexit and the US China trade negotiations? Another technical question is to ask why you cannot also occupy imaginary (square root of minus 1) space- time - or is this too exotic for you? It looks like you like b--cubic patches in the pictures, implying that you have a piecewise continuous existence. Presumably you have to watch out for the sharp discontinuities in your derivatives at the patch boundaries.

要查看或添加评论,请登录

Dr. Izzatullah Mustafa的更多文章

  • The Green Blueprint: My Vision for a Domestic Carbon Market in Saudi Arabia

    The Green Blueprint: My Vision for a Domestic Carbon Market in Saudi Arabia

    In these pivotal times, as the world rallies to counteract climate change, one concept that stands at the forefront is…

    4 条评论
  • Fear and Determination

    Fear and Determination

    Have you ever thought about what you would do once death knocked at your door? Have you experienced that? I did. In at…

    2 条评论
  • Smart and Stupid Schools

    Smart and Stupid Schools

    "If you're not prepared to be wrong, you'll never come up with anything original." -- Sir Ken Robinson I always have a…

  • The Master and The Wanderer

    The Master and The Wanderer

    What is the biggest loss in one's life other than embarking on a journey as a wanderer. Quoted from the book "Man's…

    8 条评论
  • The Millionaire and The Student

    The Millionaire and The Student

    Robert Frost's "The Road Not Taken" is my favourite poem of all time. I feel like it was crafted beautifully for me as…

    9 条评论
  • Do you want a diamond?

    Do you want a diamond?

    Diamond is extremely expensive especially a big one with high number of carats. It is the same as life.

社区洞察

其他会员也浏览了