Calculating a correlation matrix can very quickly consume a vast amount of computational resources. Fortunately, correlation (and covariance) calculations can be intelligently split into multiple processes and distributed across a number of computers.
In this article, we will use Dask for Python to manage the parallel computation of a large correlation matrix across a number of computers on a Local Area Network.
A correlation matrix shows the linear statistical relationship between two variables. Famously, correlation does not imply causation, but we still regularly make use of it as part of our efforts to understand the datasets we work with.
Part I — How to retrieve the stock holdings of Hedge Funds automatically using Python and store these in an SQL database.
Hedge Fund and other investment managers with over $100m in Assets under Management (AUM) are required to file a quarterly document in the US showing the securities that they hold. These documents, known as a 13F filing, are keenly watched by markets to understand what top hedge funds are thinking and how they are allocating their money.
Unfortunately for most investors, simply mimicking the investments you see in a 13F is unlikely to yield you much better than…
Send timely alerts to users even when your app isn’t running. In this example, we will send a daily notification showing the most-read story of the day on the Novella app using Firebase Cloud Messaging.
We are going to be using the Firebase SDK for PHP which you can download here: https://github.com/kreait/firebase-php/. The first step will be to install this using Composer.
Installing Firebase SDK
Automatically saving content as it’s written is an essential part of the user experience. It’s used everywhere from Medium to Microsoft Word. Here’s how to implement this in Kotlin for Android.
To create a seamless user experience, we want to save content as user types. Rather than saving after every character that is typed, it would be best to wait for a pause in the typing and save each time the typing stops.
To do this we need three things. Firstly, a user content form. Secondly, a way of determining when the user is typing and thirdly a way of…
Build a responsive UI that shows or hides the toolbar in response to user clicks whilst allowing undisturbed user scrolling.
Kotlin has a fantastic ability to detect user gestures on Android systems. This is important for creating smooth, functional user interfaces that respond in a consistent and intuitive way. However, it can sometimes be difficult to differentiate between similar user actions. For example, when a user scrolls down a window of text this is detected as both a click and a scroll activity. …
Markets and Technology