liveBook · Manning

ExpNumStat() function

As explained in Statistics Slam Dunk

The ExpNumStat() function from SmartEDA computes descriptive statistics for numeric variables, optionally including outlier and quartile information.

ExpNumStat() computes descriptive statistics for numeric variables. With Outlier = TRUE, it adds lower and upper hinges, quartiles, and outlier counts; round = 2 limits displayed values to two decimal places. section 17.4.3

Analyzing NBA point-spread data

After preparing the oddsdf4 data frame and deriving margin = ptsR - ptsH, run ExpNumStat(oddsdf4, Outlier = TRUE, round = 2). The output reports sample size, missing values, minimum, maximum, mean, median, standard deviation, negative/zero/positive counts, and outlier information. For example, margin is negative in 729 of 1,230 games, while closespreadH is negative in 804.

How Statistics Slam Dunk covers it

How deep it goes
Explains summary measures, quartile hinges, outlier counts, and sign counts, but does not detail the underlying algorithms.
Examples
Uses NBA scores, betting spreads, margin, and spread-difference variables across 1,230 regular-season records.
What it assumes
Assumes a prepared data frame containing numeric variables and derived measures such as margin.
What you can do after
Evaluate/understand numeric distributions, missingness, sign patterns, quartiles, and potential outliers in a data frame.
How it connects
Connects descriptive statistics with exploratory data analysis, outliers, quartiles, missing values, and derived variables.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Slam Dunk. The section links point to the parts of the book it draws on.