Sums of sines and cosines

Aditya Dua
January 19, 2019

Introduction

In signal processing applications you will inevitably stumble across a summation of cosines (or sines), where the argument of the cosines form an arithmetic progression. Specifically, let's consider summations of the form:

$$S_N(\theta) = \sum_{n=0}^{N-1} \cos(n \theta)$$

This looks rather intractable a first, but . . .

Read More

Summing weighted geometric series

Aditya Dua
January 10, 2019

Introduction

In various applications you may be confronted with summing a series that takes on the form $$\sum_{n=0}^{\infty} np^n$$. In this post we will explore a couple different ways to sum up this series, along with some extensions. 

To warm up, let's start with the geometric series $$S = \sum_{n=0}^\infty p^n$$ (for . . .

Read More

Divisibility of a binary number by 3

Aditya Dua
January 01, 2019

In middle school you probably learned a simple "trick" to check whether a number is divisible by 3. Sum up the digits (recursively, if needed) and the original number is divisible by 3 if the computed sum is divisible by 3. Here is a twist: what if you only had access to the binary representation of the number? This could be the case in a . . .

Read More

Moments of the Exponential Distribution

Aditya Dua
January 01, 2019

The exponential probability distribution is very well understood and characterized. While there are many ways to derive the moments of the exponential distribution, there is one I enjoy in particular, so I am sharing it below. It relies on two simple concepts: integration by parts and recursion.

Problem setup

The exponential . . .

Read More

Min and Max of Independent Random Variables

Aditya Dua
December 28, 2018

When working with random variables, you might be confronted with the need to compute the distributions or statistics (e.g. mean) related to the $$\min$$ and $$\max$$ of those random variables. This could come up in the context of queuing theory, failure analysis, extreme value theory, etc. While you can find a large body of literature related . . .

Read More

Squaring a number that ends in 5

A simple math trick

Aditya Dua
December 27, 2018

This is a neat arithmetic trick to keep in your back pocket. I learned it back in high school and it stayed with me. It goes as follows:

Let's say you want to square a number that ends in 5. Separate the 5 from the remaining digits in the number. Let $$n$$ represent the number formed by those digits. For example, if the number you want to . . .

Read More

Archive
   Subscribe by email and never miss a post.

This update link alerts you to new Silvrback admin blog posts. A green bubble beside the link indicates a new post. Click the link to the admin blog and the bubble disappears.

Got It!