Stat Mania Logo. Stat Mania Logo. Stat Mania
  • Home
  • Tags
  • Categories
  • Language
    • R
    • C
    • Python
    • Shell
  • Portal
  • About
Categories
AI
algorithm
anova
Beginners
Blogging
business
C
CLI
DevOps
discrete distributions
dispersion
Excel
Explainer
GIS
Git
imaging
LaTeX
Learning
Linux
Machine Learning
Mathematics
ML
package
poisson
Probability
probability
Programming
Python
Quarto
quarto
R
reading
recreational-math
regression
research
Robotics
Shell
Statistics
statistics
Teaching
Tech
technology
theory
time-series
Tips
Tools
Troubleshooting
Tutorial
Visualization
Workflow
writing

Statistics, Mathematics, and Data Science, explained with code

crbeginnerscommand-linevisualizationmore ›

Tutorials, theory and dev notes on statistics, mathematics, and computer science, with particular emphasis on Linux, C, R, and Python.116 posts43 topicsupdated Nov 2026RSS

Count Cells with Partial Text Matches in Excel Using COUNTIF
3 min
Excel
Tutorial

Learn how to use wildcards with COUNTIF to count cells that contain, start with, or end with specific text — plus how to reference a cell for the search term and handle…

Abdullah Al Mahmud
Nov 7, 2026

Area Charts in Statistics: Probability, Proportions and Cumulative Totals
6 min
R
Statistics
Visualization

Why statisticians use area charts: shading regions under a probability curve for p-values and intervals, stacked areas for parts of a total over time, and cumulative totals.…

Abdullah Al Mahmud
Nov 4, 2026

When Are Bar Charts Useful? Six Cases with R Examples
7 min
R
Statistics
Visualization

Bar charts shine for comparing categories, ordered survey answers, discrete time blocks, parts of a whole, grouped comparisons and long labels. Each case is drawn in R with…

Abdullah Al Mahmud
Nov 4, 2026

Choosing a Chart by Data Type: Categorical, Quantitative or Both
5 min
R
Statistics
Visualization

A guide to picking the right chart from the type of data: bar and pie charts for categories, histograms, box plots, line graphs and scatter plots for numbers, and box plots…

Abdullah Al Mahmud
Nov 4, 2026

Can a Discrete Variable Have Fractional Values? Examples
3 min
R
Statistics

Yes. A variable is discrete when its possible values are separate and countable, even if they are fractions or decimals. Examples include shoe sizes, old stock prices…

Abdullah Al Mahmud
Nov 4, 2026

Is the Poisson Distribution Memoryless? Poisson vs Exponential
5 min
R
Statistics
Probability

Strictly, no: the memoryless property belongs to the exponential waiting time between Poisson events, not to the Poisson count. We define the property, compare the two…

Abdullah Al Mahmud
Nov 4, 2026

Multi-Line Comments in LaTeX: Three Ways to Comment Out a Block
3 min
LaTeX
Tools
Tutorial

LaTeX only has the percent sign for single-line comments. Here are three ways to hide a whole block: an editor shortcut, the comment package and the iffalse trick, with a…

Abdullah Al Mahmud
Nov 4, 2026

List Files by Last Modified Time in Linux with ls -lt
4 min
Linux
Tools
Tutorial

How to sort files by modification time with ls, show only the newest files, reverse the order, use other timestamps (ctime and atime), and what changes in the fish shell.

Abdullah Al Mahmud
Nov 4, 2026

Normal Approximation to the Poisson Distribution (with R)
5 min
R
Statistics
Probability

A Poisson distribution with a large mean looks like a normal curve. We give the rule of thumb, the matching parameters, the continuity correction and a worked example, and…

Abdullah Al Mahmud
Nov 4, 2026

Visualizing the Empirical Rule (68-95-99.7) in R
4 min
R
Statistics
Probability

The Empirical Rule says about 68%, 95% and 99.7% of a bell-shaped data set lie within one, two and three standard deviations of the mean. We check it with 10,000 simulated…

Abdullah Al Mahmud
Nov 4, 2026

Why Is the Poisson Distribution Used? Real-World Uses and Key Features
7 min
R
Statistics
Probability

The Poisson distribution models counts of random events in a fixed time or space. We start with real uses (website traffic, accidents, hospital arrivals, wildlife) with R…

Abdullah Al Mahmud
Nov 4, 2026

When Can the Binomial Distribution Be Approximated by the Poisson?
7 min
R
Statistics
Probability

The binomial distribution B(n, p) is close to a Poisson(np) when n is large and p is small. We state the rule of thumb, work two examples, and check the approximation in R…

Abdullah Al Mahmud
Nov 3, 2026

The U-Shaped Probability Distribution: Meaning, Examples and R Code
5 min
R
Statistics
Probability

A U-shaped distribution piles its values at both extremes and leaves the middle nearly empty. We look at its key features, real examples, and the Beta(0.5, 0.5) model, with…

Abdullah Al Mahmud
Nov 3, 2026

Committing with Git While an AI Coding Agent Is Working
4 min
Git
Tools
Workflow

Why we should not commit while Claude Code or another AI agent is still editing files, and a safe workflow: let it finish, review the diff, run tests, then commit. Includes…

Abdullah Al Mahmud
Nov 2, 2026

Hex Color Codes Explained: How #FF8A3D Becomes a Colour
3 min
Programming
Explainer

How a hex color code works: the three RGB pairs, the base-16 number system, how to convert a pair to a 0-255 value by hand, common examples such as #FF0000 and #787878, and…

Abdullah Al Mahmud
Nov 2, 2026

Hybrid Stem-and-Leaf Plot: Stems of 5 for Finer Bins
4 min
Statistics
Visualization

A standard stem-and-leaf plot can leave us with only a few rows. Using stems of 5 (a hybrid of a stem-and-leaf plot and a histogram) gives more bins while keeping the raw…

Abdullah Al Mahmud
Nov 2, 2026

The Monte Carlo Method Explained: Estimating π with Random Points
5 min
R
Statistics
Probability

What the Monte Carlo method is, why random sampling can solve problems that have no simple formula, and a step-by-step estimate of π in R with ggplot2.

Abdullah Al Mahmud
Nov 2, 2026

Pie Chart in R with Many Categories (ggplot2)
5 min
R
Statistics
Visualization

Why a pie chart breaks down with many categories, and how to fix it in R: lump small slices into Other, label slices outside the circle with leader lines, or switch to a bar…

Abdullah Al Mahmud
Nov 2, 2026

RGB Color Codes Explained: rgb(), rgba() and Their Hex Equivalents
3 min
Programming
Explainer

How an RGB color code mixes red, green and blue from 0 to 255, how it matches a hex code, what the alpha channel in rgba() does, and how to convert between the two in R.

Abdullah Al Mahmud
Nov 2, 2026

Stem-and-Leaf Plot Keys: Seven Variants and When to Use Each
5 min
Statistics
Visualization

The key tells us how to combine stems and leaves into the original values. A guide to the integer, decimal, leaf-unit, large-number, negative, split-stem and hybrid keys…

Abdullah Al Mahmud
Nov 2, 2026

Stem-and-Leaf Plot vs Histogram: Differences, with R Examples
4 min
R
Statistics
Visualization

How stem-and-leaf plots and histograms are alike and how they differ: exact values versus counts, small versus large datasets, finding the median. Worked in R with stem()…

Abdullah Al Mahmud
Nov 2, 2026

POSIX Explained: The Rulebook Behind Linux, macOS and BSD
3 min
Linux
Programming
Explainer

What POSIX is, why it was created to end the Unix Wars, what it standardizes (files, utilities, streams, system calls, signals), and which operating systems follow it.

Abdullah Al Mahmud
Nov 1, 2026

C Libraries vs Python and R Packages: Is There a PyPI for C?
4 min
C
Programming
Explainer

C has no central package repository like PyPI or CRAN. How libraries work in C instead (headers and linking), a real -lm example, popular libraries by domain, and why NumPy…

Abdullah Al Mahmud
Nov 1, 2026

Create a Sequence of Numbers in Excel and Google Sheets
3 min
Excel
Tutorial

Three ways to generate 1, 2, 3, … in a spreadsheet: the SEQUENCE function, the fill handle, and the ROW function, with examples of custom starts, steps, descending series…

Abdullah Al Mahmud
Nov 1, 2026

Excel SUMIF Function Explained with an Example Table
3 min
Excel
Tutorial

How SUMIF adds up the values that meet one condition: syntax, and four worked examples (text, greater-than, a cell reference and wildcards) all based on one small sales…

Abdullah Al Mahmud
Nov 1, 2026

Frequency Polygons and Frequency Curves: How They Compare with Histograms and Ogives
7 min
R
Statistics
Visualization

What frequency polygons and frequency curves show, how they compare with histograms, ogives and bar charts, and how to draw each one in R with ggplot2, including comparing…

Abdullah Al Mahmud
Nov 1, 2026

Reading a Frequency Distribution: Insights from a Histogram and Polygon
3 min
R
Statistics
Visualization

A worked example using employee commute times: build a frequency table, draw a histogram with a frequency polygon in R with ggplot2, and read the mode, shape and…

Abdullah Al Mahmud
Nov 1, 2026

Pie Chart vs Bar Chart: When to Use Each (with ggplot2 Examples)
5 min
R
Statistics
Visualization

When a pie chart is appropriate, why a bar chart is usually the safer choice, and how to draw both in R with ggplot2: parts of a whole, near-equal slices, many categories…

Abdullah Al Mahmud
Nov 1, 2026

Timing C Code with clock(): A Benchmarking Guide
6 min
C
Programming
Tutorial

How clock() and CLOCKS_PER_SEC measure CPU time in C, how to use them to benchmark code, and the pitfalls: optimised-away loops, noisy single runs, and CPU time versus…

Abdullah Al Mahmud
Oct 29, 2026

Inline Functions in C: When They Help and What Happens Without Them
6 min
C
Programming
Tutorial

What inline means in C, five small functions that suit it, and measured examples of how leaving it out costs speed: a tight loop, a function defined in another file, and…

Abdullah Al Mahmud
Oct 29, 2026

Recursion in C: sum, factorial and fast power, Step by Step
8 min
C
Programming
Tutorial

How recursion works in C: base case, recursive case and the unwinding phase, traced step by step with sum, factorial and fast exponentiation, plus common pitfalls.

Abdullah Al Mahmud
Oct 29, 2026

Stack Overflow Explained, with Examples from C, R and Python
10 min
C
R
Python
Programming
Tutorial

What a stack overflow is, how C, R and Python each fail on runaway or very deep recursion, and seven ways to avoid it: loops, explicit stacks, halving, trampolines and more.…

Abdullah Al Mahmud
Oct 29, 2026

The Dots Argument (…) in R Functions
4 min
R
Programming
Tutorial

What the … argument does in R: passing extra arguments to an inner function, collecting any number of inputs with list(…), and why its position in the argument list…

Abdullah Al Mahmud
Oct 27, 2026

Fish vs Bash Syntax: A Practical Cheat Sheet
8 min
Linux
Shell
Tutorial

Side-by-side Bash and fish syntax for variables, loops, conditions, functions, arrays, strings and math, plus the behavioural differences that matter when switching shells.

Abdullah Al Mahmud
Oct 25, 2026

git mv vs. mv: Renaming and Deleting Files in a Git Repository
3 min
Linux
Tools
Tutorial

What git mv and git rm do that plain mv and rm do not, how to stage a manual rename, and how to stop tracking a file with git rm –cached.

Abdullah Al Mahmud
Oct 25, 2026

How Statistics Powers Machine Learning, AI and Robotics
4 min
Statistics
Machine Learning
Robotics

Regression, Bayesian inference, Kalman filters and language models all rest on the same statistical ideas. A tour of where statistics sits inside ML, AI and robotics.

Abdullah Al Mahmud
Oct 25, 2026

How to Charge a Laptop Battery Properly: The 20–80% Rule
3 min
Tech
Tips

When to plug in a laptop (and a phone), why partial top-ups are fine, and which built-in charge limits help the battery last longer.

Abdullah Al Mahmud
Oct 25, 2026

Adding giscus Comments to a Quarto Blog
4 min
Quarto
Blogging
Tutorial

Set up free, ad-free comments on a Quarto blog with giscus and GitHub Discussions: prepare the repository, get the IDs, add the config to posts/_metadata.yml, and turn…

Abdullah Al Mahmud
Oct 25, 2026

What Is Git? A Plain-English Explanation
5 min
Git
Tutorial
Beginners

Git explained without code: commits as save points, branches as parallel drafts, merges, and repositories, using the story of writing a book with friends.

Abdullah Al Mahmud
Oct 25, 2026

Are C Pointers Unreliable When Array Addresses Change Between Runs?
6 min
C
Programming
Tutorial

Why the addresses printed with %p differ from run to run while the gaps between array elements never do, and why pointers stay reliable anyway.

Abdullah Al Mahmud
Oct 24, 2026

What void Means in C: Return Type vs. Parameter List
4 min
C
Programming
Tutorial

void appears in two places in a C function and means something different in each: no return value, or no parameters. Learn when to use each and why int f(void) is safer than…

Abdullah Al Mahmud
Oct 24, 2026

git add -A, git add . or git add *: Which One?
3 min
Linux
Tools
Tutorial

What git add -A, git add . and git add * stage, how they differ in a subfolder, and why the shell wildcard * misses deletions and hidden files.

Abdullah Al Mahmud
Oct 24, 2026

Line Breaks in LaTeX: Which Command to Use
3 min
LaTeX
Tools
Tutorial

How to start a new line in LaTeX, how the double backslash, newline, linebreak and par commands differ, and what happens inside tables.

Abdullah Al Mahmud
Oct 24, 2026

Create Multiple Files at Once in the Linux Terminal
2 min
Linux
Tools
Tutorial

Use touch with brace expansion to create many files in one command: fixed names, numbered and lettered ranges, zero-padded names, and files inside new folders.

Abdullah Al Mahmud
Oct 24, 2026

Convert PowerPoint (PPT, PPTX) to PDF from the Command Line, in Bulk
3 min
Linux
Tools
Tutorial

Convert one or many PowerPoint files to PDF from the terminal with headless LibreOffice, including a recursive loop for whole folder trees, plus unoconv, Win2PDF and…

Abdullah Al Mahmud
Oct 24, 2026

Printing Array Elements in C: Labels, Commas, and Clean Output
6 min
C
Programming
Tutorial

Why a label inside a printf loop repeats before every element, and how to print it once with clean commas and no trailing comma: label before the loop, a first flag, a…

Abdullah Al Mahmud
Oct 21, 2026

3D Arrays in C: Layers, Rows and Columns
4 min
C
Programming
Tutorial

How a three-dimensional array works in C: declaring int a[layers][rows][columns], initialising it, reading one element with three indices, and printing it with three nested…

Abdullah Al Mahmud
Oct 20, 2026

Printing a 2D Array in Matrix Form in C
3 min
C
Programming
Tutorial

How to print a two-dimensional array in C as a neat matrix: nested for loops, a newline after each row, and the %4d width specifier (or a tab) to line the columns up.

Abdullah Al Mahmud
Oct 20, 2026

Why an Uninitialized C Array Prints Garbage (and How to Avoid It)
6 min
C
Programming
Tutorial

Why reading an array slot we never set gives a strange number like -1328874616 in C, and six ways to avoid it: initialise with {0}, partial and designated initialisers…

Abdullah Al Mahmud
Oct 20, 2026

Why Critical Thinking Matters More in the AI Age
4 min
Learning
AI

AI can be confidently wrong, biased and easy to over-trust. Six reasons critical thinking has become a survival skill: hallucinations, bias, asking the right questions…

Abdullah Al Mahmud
Oct 20, 2026

Why Use break in a while Loop If the Condition Already Stops It?
4 min
C
Programming
Tutorial

If a loop runs while i < 10 but breaks at 4, why write i < 10 at all? The condition is the planned exit and break is the exit for a special case. Four short examples…

Abdullah Al Mahmud
Oct 19, 2026

Printing a Comma-Separated List in C (No Trailing Comma, Clean Line Breaks)
6 min
C
Programming
Tutorial

How to print 0, 1, 2, … with commas in C: why a plain printf glues the numbers together, four ways to avoid the trailing comma, and how works in nested loops for rows…

Abdullah Al Mahmud
Oct 19, 2026

Shortcut Ways to Write if in C: the Ternary Operator and More
7 min
C
Programming
Tutorial

Shorten an if to one line by dropping the braces, write an if-else with the ternary operator ?:, and use other shortcuts: testing a value directly and using a comparison as…

Abdullah Al Mahmud
Oct 19, 2026

How to Write a Multiline Git Commit Message (4 Methods)
5 min
Git
DevOps
Tutorial

Four ways to write a commit message with a subject and a body: the default editor, several -m flags, quotes that span lines, and a message file. Plus the conventions that…

Abdullah Al Mahmud
Oct 19, 2026

Why Learn a Programming Language in the AI Age?
6 min
Programming
Learning
AI

AI can write code in seconds, so why bother learning to code? Eight reasons it still matters: directing the AI, knowing how the system works, emergencies, saving tokens for…

Abdullah Al Mahmud
Oct 19, 2026

pdfLaTeX vs XeLaTeX: Which LaTeX Engine Should We Use?
5 min
LaTeX
Tools
Tutorial

pdfLaTeX is fast and compatible with almost every package; XeLaTeX uses system fonts and native Unicode. How they differ, how to switch in the terminal, Overleaf and…

Abdullah Al Mahmud
Oct 18, 2026

5 for Loop Practice Problems in C (with Hints and Solutions)
7 min
C
Programming
Tutorial

Five for-loop exercises in C, from a multiplication table to a star triangle: each with a task, expected output, a step-by-step hint, a tested solution, and a harder…

Abdullah Al Mahmud
Oct 17, 2026

5 Nested for Loop Practice Problems in C (with Hints and Solutions)
8 min
C
Programming
Tutorial

Five nested for-loop exercises in C: a rectangle, a multiplication grid, a number triangle, a centred pyramid and a checkerboard. Each has expected output, a hint and a…

Abdullah Al Mahmud
Oct 17, 2026

Declaring Multiple Variables in One Line in C
5 min
C
Programming
Tutorial

How to declare several C variables in one statement (int a, b, c;), initialise them, and avoid the traps: partial initialisation, the pointer asterisk, mixed types and…

Abdullah Al Mahmud
Oct 15, 2026

Why Programming Counts from Zero (and Why R Counts from One)
10 min
Programming
C
Python
R
Explainer

Why C and Python start indexing at 0, why R starts at 1, with everyday analogies, tested code in C, Python and R, and a table of advantages and disadvantages of both.

Abdullah Al Mahmud
Oct 15, 2026

Handy Linux Shell One-Liners for Everyday File Tasks
6 min
Linux
Shell
Tutorial

Short, tested Linux shell commands: clean up text with sed, count files with find, rename files in bulk (sequential numbers, hyphens, lowercase), and convert mp4 to mp3 with…

Abdullah Al Mahmud
Oct 14, 2026

Recursion in R: Functions That Call Themselves
4 min
R
Programming
Tutorial

How recursion works in R: base case and recursive case, indirect recursion, Recall(), recursion on nested lists, R’s depth limits, and memoisation, with tested examples.

Abdullah Al Mahmud
Oct 14, 2026

How to Test a Small C Snippet Quickly
3 min
C
Programming
Tips

The fastest ways to try a few lines of C: online compilers, a one-line gcc build-and-run command, editor shortcuts, and feeding input from a file.

Abdullah Al Mahmud
Oct 13, 2026

Pre-Increment vs Post-Increment in C: ++i vs i++
3 min
C
Programming
Tutorial

The difference between ++i and i++ in C: when the value changes, what the expression returns, with compiled examples, and why it only matters inside larger expressions.

Abdullah Al Mahmud
Oct 11, 2026

Checking User Input in C: Is It Really a Number?
3 min
C
Programming
Tutorial

How to check that user input is a valid integer in C, using scanf’s return value and a stricter fgets + strtol check, with a factorial example.

Abdullah Al Mahmud
Oct 11, 2026

How to Reduce Fan Noise in a Linux Laptop Microphone
3 min
Linux
Troubleshooting

Why the internal microphone picks up the cooling fan on Linux, and five practical fixes: lower the gain, enable noise suppression, tame power profiles, clean the vents, or…

Abdullah Al Mahmud
Oct 10, 2026

How to Save Loop Results in an Array in C
4 min
C
Programming
Tutorial

Declare a fixed-size array, fill it with a for loop using the loop index, and grow it with malloc() and realloc() when the number of values is not known in advance.

Abdullah Al Mahmud
Oct 7, 2026

5 while Loop Practice Problems in C (with Hints and Solutions)
8 min
C
Programming
Tutorial

Five while-loop exercises in C, from printing even numbers to reversing a number: each with a task, expected output, a step-by-step hint, a tested solution, and a harder…

Abdullah Al Mahmud
Oct 4, 2026

How This Blog Is Built: Quarto, One Python Hook and One Shell Command
7 min
Tools
Quarto
Tutorial

A tour of a static Quarto blog on GitHub Pages: the folder layout, a pre-render script that feeds a dynamic archive, tag cloud and related posts, a dark/light toggle, and a…

Abdullah Al Mahmud
Oct 4, 2026

How I Make Statistics Lecture Slides with Quarto and reveal.js
6 min
Tools
Quarto
Teaching

One shared config, one .qmd per chapter: how Quarto and reveal.js turn Markdown, LaTeX math and R code into lecture decks, with a custom theme, drawing on slides, and a…

Abdullah Al Mahmud
Oct 4, 2026

srand(time(NULL)) in C: Why Random Numbers Repeat and How to Seed Them
5 min
C
Programming
Tutorial

What srand(time(NULL)) really does: why rand() repeats the same numbers without a seed, how time(NULL) fixes that, the unsigned cast, the same-second trap, and why we seed…

Abdullah Al Mahmud
Oct 3, 2026

Tossing a Die in C Until We Get a 6
7 min
C
Programming
Tutorial

Track every roll of a die in C: print as we go, store the history in an array, tally frequencies, and list which steps produced each face.

Abdullah Al Mahmud
Oct 2, 2026

float vs double in C: Precision, Memory, and When to Use Which
5 min
C
Programming
Tutorial

How C’s float and double differ in precision, size, range, literals and format specifiers, with real compiler output showing where float goes wrong.

Abdullah Al Mahmud
Sep 26, 2026

The switch Statement in C: Syntax, break, Fall-Through and Examples
7 min
C
Programming
Tutorial

How C’s switch statement works: matching cases, break, default, deliberate fall-through, grouped cases, chars and enums, and when to choose switch over if / else if.

Abdullah Al Mahmud
Sep 26, 2026

10 Short Real-World C Programming Examples (if + Loop Patterns)
8 min
C
Programming
Tutorial

Ten compact C snippets — from an ATM PIN check to a vending machine — each pairing a loop for repetition with an if for decision-making, with the real-world problem and a…

Abdullah Al Mahmud
Sep 24, 2026

Modulus vs. Remainder: Why -5 % 3 Isn’t the Same Everywhere
3 min
C
Python
R
Mathematics

Modulus and remainder agree for positive numbers but diverge for negative ones. A walkthrough of the truncated vs. floored division rules behind C, Python, and R’s % and %%…

Abdullah Al Mahmud
Sep 24, 2026

if-else in C, Python and R: Syntax Compared Side by Side
5 min
C
Python
R
Programming
Tutorial

The same if / else if / else written in C, Python and R, with a comparison table, the R ‘else on a new line’ trap, truthiness rules, and R’s vectorized ifelse().

Abdullah Al Mahmud
Sep 21, 2026

Compiling and Running C Programs on Linux: A Practical Workflow
6 min
Linux
C
Programming

Faster ways to compile and run C on Linux — one-liners, aliases, and Makefiles — plus the warning flags, debugging tools, and practice routine every beginner should adopt.

Abdullah Al Mahmud
Sep 20, 2026

The Probability of Having Four Babies of the Same Sex
3 min
statistics
probability

A binomial-distribution proof that a family of 4 children has exactly a 1-in-8 (12.5%) chance of all four being the same sex.

Abdullah Al Mahmud
Sep 16, 2026

Nested if in C, Explained with Real-Life Examples
5 min
C
Programming
Tutorial

What a nested if statement is in C, when the inner check runs, and two worked examples (a store discount and an ATM withdrawal) with flowcharts, code and common pitfalls.

Abdullah Al Mahmud
Sep 15, 2026

The Best Order to Write a Research Paper
3 min
research
writing

Why writing a paper top-to-bottom causes writer’s block, and the inside-out sequence experienced researchers use instead.

Abdullah Al Mahmud
Sep 11, 2026

Batch-Converting PDFs to Markdown with MarkItDown
2 min
Tools
Python
CLI

Microsoft’s MarkItDown CLI only converts one file at a time — here’s how to batch an entire folder of PDFs with a shell loop (Bash, Zsh, fish or PowerShell) or a short…

Abdullah Al Mahmud
Sep 11, 2026

Why Dispersion Matters as Much as Central Tendency
3 min
statistics
theory
dispersion

The mean or median only tells half the story — measures of spread like variance, standard deviation, and IQR reveal risk and consistency that averages hide.

Abdullah Al Mahmud
Sep 9, 2026

How to Recover a Frozen Linux Desktop
2 min
Linux
Troubleshooting

Two escalating fixes for a hung Linux graphical session, from restarting the display manager over TTY to a safe REISUB reboot.

Abdullah Al Mahmud
Sep 9, 2026

The Ultimate Guide to Making Fish Your Default Shell
3 min
CLI
Linux
Tutorial

How to install Fish and set it as your default shell on Ubuntu, Fedora, Arch, and Pop!_OS — including the terminal-profile workaround GNOME-based distros need.

Abdullah Al Mahmud
Sep 7, 2026

Reading Papers in the AI Age: A Hybrid Workflow
3 min
research
reading

Why the best strategy for reading research today isn’t AI summaries or full reads alone, but a 3-pass hybrid workflow that combines both.

Abdullah Al Mahmud
Sep 5, 2026

What’s New in qdraw: Shapes, Pages, and a Smarter Eraser
3 min
Tools
quarto

A tour of the latest qdraw features — a Quarto reveal.js extension for drawing and annotating directly on slides during a live presentation.

Abdullah Al Mahmud
Aug 29, 2026

Structs in C: Grouping Related Data (with Python and R Comparisons)
8 min
C
Programming
Tutorial

How C structs group different types into one unit: student records, arrays of structs, points, linked-list nodes, typedef, ->, padding, and how structs compare with Python…

Abdullah Al Mahmud
Aug 20, 2026

How to Run Python Inside RStudio with reticulate
3 min
R
Python
Tutorial

Set up RStudio to run Python code alongside R — configure the interpreter, install reticulate, and use three different workflows (scripts, mixed Quarto/R Markdown chunks…

Abdullah Al Mahmud
Aug 18, 2026

10 Real-World if / else Examples in C
5 min
C
Programming
Tutorial

Ten real-world C snippets, from grade calculators to ATM checks, each showing a different if/else pattern and when to use it.

Abdullah Al Mahmud
Aug 10, 2026

Why Use the Geometric Distribution?
2 min
probability
discrete distributions

The geometric distribution models the number of trials until the first success in independent Bernoulli trials. This post explains when and why to use it, with a real-world…

Abdullah Al Mahmud
Aug 5, 2026

C’s “Hello, World!” Explained Line by Line (for R & Python Users)
5 min
C
Programming
Tutorial

A line-by-line breakdown of the classic C Hello World program — what each part does, why C requires it, and how it compares to Python and R.

Abdullah Al Mahmud
Jul 21, 2026

The do-while Loop in C: Run First, Check After
4 min
C
Programming
Tutorial

How C’s do-while loop works: the body always runs at least once before the condition is tested. Two PIN-entry examples, plus do-while vs while and common pitfalls.

Abdullah Al Mahmud
Jul 16, 2026

How to Reset a Bootable USB Drive Using the Linux Command Line
2 min
Linux
Tutorial
CLI

A step-by-step guide to safely wiping a bootable Linux live USB and converting it back into a standard storage drive.

Abdullah Al Mahmud
Jun 2, 2026

How to Save Git Credentials on Windows, macOS, and Linux
2 min
Git
DevOps

A quick guide to configuring Git credential helpers so you never have to re-type your password or token.

Abdullah Al Mahmud
Jun 1, 2026

Understanding the Negative Binomial Distribution
4 min
probability
discrete distributions

The negative binomial distribution models the number of trials needed to achieve a fixed number of successes. This post explains its formulation, real-world applications…

Abdullah Al Mahmud
May 12, 2026

Be Impressive with Mathematics
1 min
Mathematics
recreational-math

A satirical note showing how (1+1=2) can be obscured using complex identities to appear more impressive for academic reviewers.

Abdullah Al Mahmud
Apr 23, 2026

SVM vs ANN: relative power, and usage guidelines
4 min
statistics
theory
ML
algorithm

Here’s a clear comparison of SVM vs ANN, their relative power, and usage guidelines.

Abdullah Al Mahmud
Jan 5, 2026

How to Make Git Ignore a Folder
1 min
Git
DevOps
Tutorial

Two ways to stop Git from tracking a folder — depending on whether it’s already been committed or not.

Abdullah Al Mahmud
Jan 5, 2026

Poisson Regression: A Simple Example
3 min
regression
statistics
poisson

Poisson regression is a statistical model for analyzing count data (e.g., number of events, calls, clicks) that occur in a fixed interval, using the Poisson distribution.

Abdullah Al Mahmud
Jan 2, 2026

Hyperspectral Imaging Explained
5 min
research
technology
imaging

Imagine your eyes (or a regular camera) see the world in only 3 colors: Red, Green, and Blue (RGB). By mixing these, you can create millions of perceived colors, but you…

Abdullah Al Mahmud
Dec 24, 2025

Understanding Mass Spectrometry Imaging
4 min
research
technology
imaging

Imagine you could take a photograph of a slice of tissue, a leaf, or a painting, but instead of seeing colors, you see a map of hundreds of different molecules—fats…

Abdullah Al Mahmud
Dec 22, 2025

Micro-XRF: super-powered, non-destructive chemical camera
4 min
research
technology
imaging

Micro-XRF is the super-powered, non-destructive chemical and super-sleuth chemical Camera.

Abdullah Al Mahmud
Dec 20, 2025

Interaction Effect in Regression Analysis
3 min
statistics
theory
regression

An interaction effect means the effect of one variable on the outcome depends on the level of another variable.

Abdullah Al Mahmud
Nov 19, 2025

Z-score: What it is and what it does
3 min
statistics
theory
probability

A z-score (also known as a standard score or z-value) measures how many standard deviations a data point is from the mean of a distribution. It’s a way of…

Abdullah Al Mahmud
Nov 19, 2025

A/B Testing: A Sample Analysis
2 min
statistics
theory
business

A/B Testing– A Sample Analysis. Scenario– Testing a new button color.

Abdullah Al Mahmud
Nov 18, 2025

IQR in Statistics
2 min
statistics
theory
dispersion

The Interquartile Range (IQR) is a measure of statistical dispersion that describes the spread of the middle 50% of data.

Abdullah Al Mahmud
Nov 5, 2025

From t-test to Anova
7 min
statistics
theory
anova

Let’s build this step by step, starting from a t-test and then showing how it generalizes naturally into ANOVA (Analysis of Variance).

Abdullah Al Mahmud
Oct 10, 2025

ARIMA and SARIMA Time Series Models
4 min
statistics
time-series
R

A clear, concise explanation of ARIMA, SARIMA, and related models — followed by minimal R examples..

Abdullah Al Mahmud
Oct 6, 2025

Spatio-temporal Analysis Workflow
2 min
R
GIS

A learning roadmap for spatio-temporal analysis, from spatial statistics foundations to R/Python tooling, datasets, and open-source contribution paths.

Abdullah Al Mahmud
Sep 10, 2025

clockplot: Plot Event Times on a 24-Hour Clock
1 min
R
package

The announcement of the clockplot package.

Abdullah Al Mahmud
Aug 30, 2025

CRAN Package Submission Checklist
4 min
R
package

A comprehensive checklist for a smooth R package submission to CRAN.

Abdullah Al Mahmud
Aug 29, 2025

R Package Development Workflow
1 min
R
package

The Workflow that you may follow while developing your own R package.

Abdullah Al Mahmud
Aug 29, 2025

Interpretation of an Auto SARIMAX model output in R
3 min
statistics
time-series
R

A comprehensive explanation of AR (AutoRegressive) and MA (Moving Average) models and their parameters.

Abdullah Al Mahmud
Mar 16, 2024

AutoRegressive and Moving Average Time Series Models with R Code
3 min
statistics
time-series
R

A comprehensive explanation of AR (AutoRegressive) and MA (Moving Average) models and their parameters.

Abdullah Al Mahmud
Feb 23, 2024

SARIMAX Time Series Models with R Code
5 min
statistics
time-series
R

A clear, concise explanation of ARIMA, SARIMA, and related models — followed by minimal R examples..

Abdullah Al Mahmud
Jan 20, 2024
No matching items

    R-bloggers

    R posts from Stat Mania are also shared on R-bloggers, a hub of R blogs.

    © 2026 Stat Mania

    Made with Quarto using the custom template blogkit by Stat Mania

    • Tags

    • Categories

    • About

    • Portal

    • RSS