This book is for anyone concerned about human and fiscal costs of jails and prisons. It shows how properly-developed algorithms can force the adoption of more legally sophisticated bail and sentencing practices that reduce incarceration minimize racially biased decision-making and maximize the use of resources without sacrificing public safety.