Model Visualization

The Data

Correlation

Correlation Matrix

Heatmap

Correlation

Generalized Linear Models

Coefficients

coefplot

coefplot

Two Models

Two Models

Two Models

Political Detour

Voter Data

Secret Weapon

Penalized Regression

Elastic Net

1

Coefficient Path

Coefficient Path

Coefficient Path

coefplot

Bayesian Regression

Bayesian Regression

\[ \color{red}{\pi(\theta|x)} = \frac{\color{blue}{f(x|\theta)}\color{green}{\pi(\theta)}}{\color{gray}{\int_\theta f(x|\theta)\pi(\theta)d\theta}} \]

coefplot

Coefficient Distributions

Trace Plots

Generalized Additive Models

Partial Dependence Plot

Partial Dependence Plot

Partial Dependence Plot

Partial Dependence Plot

Partial Dependence Plot

Derivative Plots

Decision Trees

Decision Tree

n= 22745 

node), split, n, loss, yval, (yprob)
      * denotes terminal node

 1) root 22745 4565 FALSE (0.7992965 0.2007035)  
   2) Insurance< 975 13909 1482 FALSE (0.8934503 0.1065497) *
   3) Insurance>=975 8836 3083 FALSE (0.6510865 0.3489135)  
     6) NumRooms< 6.5 2848  586 FALSE (0.7942416 0.2057584) *
     7) NumRooms>=6.5 5988 2497 FALSE (0.5829993 0.4170007)  
      14) Insurance< 1850 4002 1388 FALSE (0.6531734 0.3468266) *
      15) Insurance>=1850 1986  877 TRUE (0.4415911 0.5584089)  
        30) FamilyType=Female Head,Male Head 209   60 FALSE (0.7129187 0.2870813) *
        31) FamilyType=Married 1777  728 TRUE (0.4096792 0.5903208) *

Draw the Tree

Better Looking Tree

D3 Tree

Random Forest

Variable Importance Plot

Boosted Trees

All the Trees

Variable Importance

Partial Dependence Plots

Partial Dependence Plots

Time Series Forecasting

Time Series Data

Model Decomposition

Performance

K-Means Clustering

K-means Centers

Multidimensional Scaling

Multidimensional Scaling

Hierarchical Clustering

Dendrograms

Network Graphs

Network Graph

Wrapping Up

  • Coefficient Plots
  • Coefficient Paths
  • Coefficient Distributions
  • Partial Dependence Plots
  • Variable Importance Plots
  • Fitted Values
  • Multidimensional Scaling
  • Dendrograms
  • Social Network Plots

Thank You