Surprising Python Behaviors

This blog is a learning diary from satwikkansal/wtfpython:https://github.com/satwikkansal/wtfpython CPython optimization (called string interning) tries to use existing immutable objects in some cases rather than creating a new object every time. The decision of when to implicitly intern a string is implementation dependent. There are some facts that can be used to guess if a string will be … Continue reading Surprising Python Behaviors

Mobility ETFs – XKST

The SPDR Kensho Smart Mobility ETF (XKST) was launched to the market at the end of last year/2017, "it focuses on smart transportation firms, which the index provider fines as those companies advancing products or services in the following areas: autonomous vehicle technology, drone transportation technology, and advanced transportation tracking and transport optimization systems. Each … Continue reading Mobility ETFs – XKST

Simulation of Simple Gambling and Kelly’s Criterion

Many people would dream to go to Las Vegas, or buying lotteries, thinking one day, their life can be changed entirely by gambling. Is it true? What're the chances they can pull it off?  A simple simulation of flipping coins in Python gives good answer without risking real money. Assuming there are 10 people all … Continue reading Simulation of Simple Gambling and Kelly’s Criterion

Key To Success Is To Find A Secret, And Then Capitalize On It

"The key to success is to find a secret" - when I read this pithy point of view, I resonate whole-heartedly. It's not the prosaic admonition we heard along growing up that you have to be hard - working, be persistent, be disciplined etc. to achieve success. No, the actual secret is to find a … Continue reading Key To Success Is To Find A Secret, And Then Capitalize On It

Views From David Einhorn, Nassim Taleb, And Jim Rogers Regarding Quantitative Easing Are Opposed to Ray Dalio and Warren Buffet

The 2007-2011 unprecedented financial crisis finally has been gone for ten years now - a fair amount of time for us to make some wise judgment in terms of who was right who was wrong. Mentioning "beautiful deleveraging" numerous times in his new book - The Great Debt Crisis-, Ray Dalio clearly demonstrated his view … Continue reading Views From David Einhorn, Nassim Taleb, And Jim Rogers Regarding Quantitative Easing Are Opposed to Ray Dalio and Warren Buffet

How The Economic Machine Works – Learn from Ray Dalio_Archetypal Template

This blog is to reiterate the key message from Ray Dalio's new book A Template For Understanding Big Debt Crisis. The causal - effect is that "lending naturally creates self-reinforcing upward movements that eventually reverse to create self-reinforcing downward movements that must reverse in turn." "Managing debt crises is all about spreading out the pain of the … Continue reading How The Economic Machine Works – Learn from Ray Dalio_Archetypal Template

How The Economic Machine Works – Learn from Ray Dalio_US 1928-1937

80 years ago, the famous "great depression" occurred in the U.S. It took ten full years to recover, however, the stages it went through is same as the crisis in 2008. The early signal displayed in 1927 is : Then in 1928,  Ray Dalio wrote that "the Fed started to tighten monetary policy. From February … Continue reading How The Economic Machine Works – Learn from Ray Dalio_US 1928-1937

How The Economic Machine Works – Learn from Ray Dalio_US 2007-2011

To understand this most recent crisis, let's depict the major parts of the story first. home prices: home sales: "Borrowers and lenders had severe asset/liability mismatches, which left them especially vulnerable in a downturn. This is a classic ingredient of a severe debt crisis. Most commonly these mismatches come in the following forms: 1) Borrowing short-term and lending … Continue reading How The Economic Machine Works – Learn from Ray Dalio_US 2007-2011