Someone asked an interesting question on MathOverflow: given an odd number, can you always flip a bit in its binary…

Continue Reading# number

## How to compute the square root of a complex number

Suppose you’re given a complex number z = x + iy and you want to find a complex number w…

Continue Reading## Are Tera Operations Per Second (TOPS) Just hype? Or Dark AI Silicon in Disguise?

By Ludovic Larzul, Founder and CEO, MipsologyIt is natural for humans to try to simplify how we compare things. People…

Continue Reading## Recursive Feature Elimination (RFE) for Feature Selection in Python

Recursive Feature Elimination, or RFE for short, is a popular feature selection algorithm. RFE is popular because it is easy…

Continue Reading## Linear Discriminant Analysis for Dimensionality Reduction in Python

Last Updated on May 14, 2020Reducing the number of input variables for a predictive model is referred to as dimensionality…

Continue Reading## Singular Value Decomposition for Dimensionality Reduction in Python

Reducing the number of input variables for a predictive model is referred to as dimensionality reduction. Fewer input variables can…

Continue Reading## Principal Component Analysis for Dimensionality Reduction in Python

Reducing the number of input variables for a predictive model is referred to as dimensionality reduction. Fewer input variables can…

Continue Reading## Prime plus power of 2

A new article [1] looks at the problem of determining the proportion of odd numbers that can be written as…

Continue Reading## How to Generate Random Numbers in Python?

The world is governed by chance. Randomness stalks us every day of our lives. …

Continue Reading## Basic Data Cleaning for Machine Learning (That You Must Perform)

Data cleaning is a critically important step in any machine learning project. In tabular data, there are many different statistical…

Continue Reading## Extended floating point precision in R and C

The GNU MPFR library is a C library for extended precision floating point calculations. The name stands for Multiple Precision…

Continue Reading## When is round-trip floating point radix conversion exact?

Suppose you store a floating point number in memory, print it out in human-readable base 10, and read it back…

Continue Reading## Covid-19, your community, and you — a data science perspective

By Jeremy Howard and Rachel Thomas, fast. ai Co-FoundersWe are data scientists—that is, our job is to understand how to…

Continue Reading## ChaCha RNG with fewer rounds

ChaCha is a CSPRING, a cryptographically secure pseudorandom number generator. When used in cryptography, ChaCha typically carries out 20 rounds…

Continue Reading## A new take on the birthday problem

Vitalii Tymchyshyn and Andrii Khlevniuk posted a new paper here entitled “On the average number of birthdays in birthday paradox…

Continue Reading## Any number can start a factorial

= 2019…000 The factorial of 3177 is a number with 9749 digits, the first of which are 2019, and the…

Continue Reading## Splitting lines and numbering the pieces

If you want to see line numbers, use your editor. ” That way of thinking looks at the tools one…

Continue Reading## Predicted distribution of Mersenne primes

We’ll construct a plot below using Python. Note that the conjecture is asymptotic, and so it could make poor predictions…

Continue Reading## More bc weirdness

Actually no. It assumes that any single letter that could be a hex number is one. But in numbers with…

Continue Reading## Estimating vocabulary size with Heaps’ law

Heaps’ law says that the number of unique words in a text of n words is approximated byV(n) = K nβwhere…

Continue Reading## Proving that a choice was made in good faith

This is something I’ve helped companies with. It may be impossible to prove that a choice was not deliberate, but…

Continue Reading## Detecting a short period in an RNG

The last couple posts have been looking at the Cliff random number generator. I introduce the generator here and look…

Continue Reading## Fixed points of the Cliff random number generator

I ran across the Cliff random number generator yesterday. Given a starting value x0 in the open interval (0, 1),…

Continue Reading## Data breach trends

This post gives a crude, back-of-the-envelope calculation to address the question. We won’t look at number of breaches per se…

Continue Reading## Number of feet in a mile

Here are a couple amusing things I’ve run across recently regarding the number of feet in a mile. Both are…

Continue Reading