Difference between "hope" and "expectation"

Can you explain difference between “hope” and “expectation”.

Hi. You usually hope for something good but expect something either it’s good or bad. But when we use hope and expectation as nouns, I think their differences are very slight.

When you hope for something, you don’t know if it will happen or not. For example, you can hope for a miracle.

When you expect something, you are assuming that it will probably happen.