## Latest post

May 5, 2024, 00:51:44

I remember experiencing many rainy weekends and Mondays. To see whether this is a fact, I downloaded #weather data from #GHCND:USW00053152 from 2022-09-01 to 2024-05-01 and summed up the precipitations for each weekday.

It turns out that the total #precipitation for each weekday is (from Sunday to Saturday, in unit of mm): 239.0, 250.9, 212.9, 156.6, 172.0, 160.3, 219.8. Surprisingly we do have especially less #rain for Wed, Thur, and Fri.

## Articles

• ### I created Sunniesnow, a rhythm game similar to Lyrica

In order to build a better player community for the rhythm game Lyrica, I created a new rhythm game called Sunniesnow. Learn more about Sunniesnow by joining our Discord server.

• ### The distribution when indistinguishable balls are put into boxes

Suppose there are $n$ distinguishable boxes and $k$ indistinguishable balls. Now, we randomly put the balls into the boxes. For each of the boxes, what is the probability that it contains $m$ balls? This is a simple combanitorics problem that can be solved by the stars and bars method. It turns out that in the limit $n,k\to\infty$ with $k/n$ fixed, the distribution tends to be a geometric distribution.

• ### Labeled break, next, and redo in Ruby

Many languages support breaking out of nested loops, such as Perl, Java, JavaScript, C#, etc. Languages that have goto can also do this easily. However, in most other languages, it is not easy to break out of nested loops. I want to introduce a way to do this in Ruby.

• ### Free trade (single good case)

I set up a simple model to determine the production and consumption in free trade between nations.

• ### A measure-theoretic formulation of statistical ensembles (part 2)

For sake of rigor and generalizability, I feel it necessary to try to have a mathematical formulation for statistical ensembles. I chose measure spaces as the underlying mathematical structure of thermal systems and tried to justify the method of statistical ensembles by deducing them from some axioms.

• ### Summarizing my methods for studying

I summarized my methods for studying. This can be served as a guide for those who have started learning math and science.

• ### A measure-theoretic formulation of statistical ensembles (part 1)

For sake of rigor and generalizability, I feel it necessary to try to have a mathematical formulation for statistical ensembles. I chose measure spaces as the underlying mathematical structure of thermal systems and tried to justify the method of statistical ensembles by deducing them from some axioms.

• ### The core of a voting system is the intersection of Pareto sets

There is a very neat relation between the core (the set of proposals that defeats every proposal) of a voting system and the Pareto sets of the voters. Suppose there is a voting system of quota $q$, then the core is the intersection of all such sets: the Pareto set of $q$ of the voters.

• ### Relationship between the Gini coefficient and the variance

Both the Gini coefficient and the variance are measures of statistical dispersion. We are then motivated to find the relationship between them. It turns out that there is a neat mathematical relationship between them.

• ### Distinguishing all the letters in handwritten math/physics notes

Personally, I have the demand of handwriting math/physics notes, but an annoying fact about this is that I usually cannot distinguish every letter that may be possibly used well enough. In this article, I will try to settle this problem.