library

2023

[sympy] Probability and Statistics with SymPy

Uses SymPy to symbolically derive the binomial-to-Poisson distribution limit and perform maximum likelihood estimation with Fisher information for the normal distribution.

[sympy] Symbolic Mathematics with SymPy

Introduces the basics of SymPy, covering symbolic expansion, factorization, equation solving, differentiation, integration, and matrix operations with simple examples.

[sqlite3] How to Use EXISTS and IN

Explains when to use SQL's EXISTS versus IN using a customers and orders example, covering differences in NULL handling and query performance.

[sqlite3] Utilizing Self Join

Explains SQL self joins using an employee-manager hierarchy example, showing how to join a table with itself using aliases to look up related rows.

[sqlite3] Utilizing CASE Expressions

Explains how to use SQL's CASE expression to assign grades based on scores and combine it with aggregate functions to build conditional cross-tabulation queries.

[sqlite3] Common Table Expressions (CTE)

Explains SQL Common Table Expressions (CTEs) by comparing a subquery-based query with a CTE-based rewrite to show improved readability and reusability.

[sqlite3] Window Functions

Explains the differences between SQL window functions RANK, DENSE_RANK, and ROW_NUMBER for ranking data with tied scores, using a sample student scores table.

2022

[pytorch] Inverting Arrays

Explains how to invert 1D and 2D tensors in PyTorch using torch.flip and torch.fliplr, comparing them with NumPy's slice-based array reversal with code examples.

2021

2020