Refresh Your Home For Fall
To see product details, add this item to your cart. You can always remove it later.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
30-day refund / replacement
30-day refund / replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Causal Inference and Discovery in Python: Unlock the secrets of modern causal machine learning with DoWhy, EconML, PyTorch and more

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Causal Inference and Discovery in Python: Unlock the secrets of modern causal machine learning with DoWhy, EconML, PyTorch and more

4.4 out of 5 stars (162)

Purchase options and add-ons

Demystify causal inference and casual discovery by uncovering causal principles and merging them with powerful machine learning algorithms for observational and experimental data

Get With Your Book: PDF Copy, AI Assistant, and Next-Gen Reader Free

Key Features

  • Examine Pearlian causal concepts such as structural causal models, interventions, counterfactuals, and more
  • Discover modern causal inference techniques for average and heterogenous treatment effect estimation
  • Explore and leverage traditional and modern causal discovery methods

Book Description

Causal methods present unique challenges compared to traditional machine learning and statistics. Learning causality can be challenging, but it offers distinct advantages that elude a purely statistical mindset. Causal Inference and Discovery in Python helps you unlock the potential of causality.

You’ll start with basic motivations behind causal thinking and a comprehensive introduction to Pearlian causal concepts, such as structural causal models, interventions, counterfactuals, and more. Each concept is accompanied by a theoretical explanation and a set of practical exercises with Python code. Next, you’ll dive into the world of causal effect estimation, consistently progressing towards modern machine learning methods. Step-by-step, you’ll discover Python causal ecosystem and harness the power of cutting-edge algorithms. You’ll further explore the mechanics of how “causes leave traces” and compare the main families of causal discovery algorithms. The final chapter gives you a broad outlook into the future of causal AI where we examine challenges and opportunities and provide you with a comprehensive list of resources to learn more.

By the end of this book, you will be able to build your own models for causal inference and discovery using statistical and machine learning techniques as well as perform basic project assessment.

What you will learn

  • Master the fundamental concepts of causal inference
  • Decipher the mysteries of structural causal models
  • Unleash the power of the 4-step causal inference process in Python
  • Explore advanced uplift modeling techniques
  • Unlock the secrets of modern causal discovery using Python
  • Use causal inference for social impact and community benefit

Who this book is for

This book is for machine learning engineers, researchers, and data scientists looking to extend their toolkit and explore causal machine learning. It will also help people who’ve worked with causality using other programming languages and now want to switch to Python, those who worked with traditional causal inference and want to learn about causal machine learning, and tech-savvy entrepreneurs who want to go beyond the limitations of traditional ML. You are expected to have basic knowledge of Python and Python scientific libraries along with knowledge of basic probability and statistics.

Table of Contents

  1. Causality – Hey, We Have Machine Learning, So Why Even Bother?
  2. Judea Pearl and the Ladder of Causation
  3. Regression, Observations, and Interventions
  4. Graphical Models
  5. Forks, Chains, and Immoralities
  6. Nodes, Edges, and Statistical (In)dependence
  7. The Four-Step Process of Causal Inference
  8. Causal Models – Assumptions and Challenges
  9. Causal Inference and Machine Learning – from Matching to Meta- Learners
  10. Causal Inference and Machine Learning – Advanced Estimators, Experiments, Evaluations, and More
  11. Causal Inference and Machine Learning – Deep Learning, NLP, and Beyond
  12. Can I Have a Causal Graph, Please?

(N.B. Please use the Read Sample option to see further chapters)

Frequently bought together

This item: Causal Inference and Discovery in Python: Unlock the secrets of modern causal machine learning with DoWhy, EconML, PyTorch and more
$26.99
Get it as soon as Monday, Sep 21
In Stock
Ships from and sold by Amazon.com.
+
$45.00
Get it as soon as Sunday, Sep 20
Only 14 left in stock (more on the way).
Ships from and sold by Amazon.com.
+
$20.00
Temporarily out of stock.
Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we ship the item.
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Customers also bought or read

Loading...

From the brand


From the Publisher

casual inference
Causal inference and discovery in python book

Why is causal inference such a key topic for data scientists to learn about?

When you look at some of the most successful companies out there, most of them use causal inference in one form or another to build the foundation for their business decision-making.

Think about Microsoft, Amazon, Booking.com, Spotify, Netflix, or BMW.

These companies realize that in order to make good business decisions, they need to model the outcomes of their actions rather than trying to simply predict how a system would behave in the future under the assumption that the future will be the same as the past.

The situation is similar for scientists.

Scientists might be interested in predictions, especially as a means of falsifying their hypotheses, but the true holy grail of science is to understand causal mechanisms underlying the phenomena we observe, and explain why things happen the way they do.

My goal when writing this book was to give the reader a toolkit to think about these problems and to demonstrate how to translate the groundbreaking theoretical results in modern causal inference into actionable Python code.

Table of Contents

  • Causality – Hey, We Have Machine Learning, So Why Even Bother?
  • Judea Pearl and the Ladder of Causation
  • Regression, Observations, and Interventions
  • Graphical Models
  • Forks, Chains, and Immoralities
  • Nodes, Edges, and Statistical (In)dependence
  • The Four-Step Process of Causal Inference
  • ...and more!
author Aleksander Molak

What was your objective in writing this book?

When I was starting my journey with practical causality, I could not find a comprehensive book on causality in Python.

Understanding the potential of causal machine learning and knowing how much effort it took me to build my skill set, I wanted to share my journey with others, so they can enter this dynamically evolving field easier and faster and start applying causal inference and causal discovery in their own projects.

image

What is your favorite part of the book and why?

I enjoyed working on all parts of the book, but I have a special fondness for chapters 7 and 11. The former introduces the idea of the 4-step process of causal inference. This is an idea that originates from the DoWhy package created by Amit Sharma and colleagues, and I believe it’s one of the most powerful ideas to help newcomers build a clear structure around the causal inference process.

In chapter 11, we discuss the intersection of causality and natural language processing (NLP), which lays the foundation for understanding fascinating recent research on causality and generative AI. My bet is that we’ll see dynamic growth in this area in the coming years, and so this chapter can prepare the reader to more easily grasp the new ideas in the field and apply them quickly.

image2

What are the key takeaways from this book for readers?

I see three main key takeaways for the readers. The first is general in its nature and it’s about causal thinking. Causal thinking is thinking in terms of the data-generating processes rather than statistical summaries of the data. I see it as one of the most powerful data skills in the upcoming 3 to 5 years and I am confident that it can help virtually anyone become a better data scientist, analyst or researcher.

The second takeaway is that working with causal models doesn’t have to be scary or exceedingly difficult. It boils down to a set of practical and mental skills that can be learned by anyone, and my hope is that the book does a good job in helping you achieve this. The last takeaway is that by giving ourselves a space for creativity, we can face and overcome even the most difficult challenges. I see practical causality as a beautiful example of this phenomenon.

Editorial Reviews

Review

“Despite causality becoming a key topic for AI and increasingly also for generative AI, most developers are not familiar with concepts such as causal graphs and counterfactual queries. Aleksander’s book makes the journey into the world of causality easier for developers. The book spans both technical concepts and code and provides recommendations for the choice of approaches and algorithms to address specific causal scenarios. This book is comprehensive yet accessible. Machine learning engineers, data scientists, and machine learning researchers who want to extend their data science toolkit to include causal machine learning will find this book most useful. Looking to the future of AI, I find the sections on causal machine learning and LLMs especially relevant to both readers and our work.”

--

Ajit Jaokar, Visiting Fellow, Department of Engineering Science, University of Oxford, and Course Director, Artificial Intelligence: Cloud and Edge Implementations, University of Oxford



“My exploration of causal analysis began roughly 5 years ago during a stimulating conversation with Vint Cerf. When questioned about the foremost challenge for ML in physics, my immediate response was - causality. In many areas of physics and materials science, we often grapple with multiple observations, yet opportunities for experimental intervention are sparse. While we can change reagents used in synthesis of material, we cannot experiment with the nature of physical laws controlling the interactions between atoms – even though we can visualize them. While classical ML primarily focuses on correlation, genuine insights in experimental domains are anchored in grasping the causal relationships between observables and their temporal dynamics. Vint pointed me towards Judea Pearl's pioneering work. While Pearl's contributions are profoundly enlightening, their pragmatic applications, especially in materials discovery or in interpreting microscopic observations, felt elusive to me and my colleagues. With an array of methods scattered across diverse publications, books, and fragmented GitHub repositories, finding a direct, actionable solution was akin to navigating a maze. The Aleksander Molak's book on Causal Inference and Discovery in Python emerged as a beacon. Molak masterfully intertwines theory with hands-on code implementations. His work represents the comprehensive causality guide I've sought for the past half-decade – a singular resource allowing me to delve into the text and immediately apply the code to tangible challenges in materials science. For this gem, my gratitude knows no bounds.”

--

Sergei V. Kalinin, Weston Fulton professor, Department of Materials Science and Engineering



“I got my start into the world of causal modeling through System Dynamics a couple of decades ago and that led to reading Pearl’s book and papers. I have seen very slow adoption of these ideas despite their tremendous promise, and I think this book will help a great deal. The first part has a lot of introductory material that is great for beginners, but you can skip if you are familiar with Pearl’s work. The second part is really the core of the book that covers a lot of Python packages and their use to do causal analysis, including LLMs. The third part gets into causal discovery that is very critical for solving practical problems and here again a lot of ideas and packages are covered. One thing that is missing is detailed practical examples, which are still needed for mainstream adoption. I look forward to the day when the author publishes this next book of examples. Overall, a must-read book for any data scientist.”

--

Bipin Chadha, VP Data Science - CSAA Insurance Group, a AAA Insurer

About the Author

Aleksander Molak is an independent machine learning researcher and consultant. Aleksander gained experience working with Fortune 100, Fortune 500, and Inc. 5000 companies across Europe, the USA, and Israel, helping them to build and design large-scale machine learning systems. On a mission to democratize causality for businesses and machine learning practitioners, Aleksander is a prolific writer, creator, and international speaker. As a co-founder of Lespire.io, an innovative provider of AI and machine learning training for corporate teams, Aleksander is committed to empowering businesses to harness the full potential of cutting-edge technologies that allow them to stay ahead of the curve.

This book has been co-authored by many people whose ideas, love, and support left a significant trace in my life. I am deeply grateful to each one of you.

Product details

  • Publisher ‏ : ‎ Packt Publishing
  • Publication date ‏ : ‎ May 31, 2023
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 456 pages
  • ISBN-10 ‏ : ‎ 1804612987
  • ISBN-13 ‏ : ‎ 978-1804612989
  • Item Weight ‏ : ‎ 1.71 pounds
  • Dimensions ‏ : ‎ 7.5 x 1.05 x 9.25 inches
  • Best Sellers Rank: #123,597 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.4 out of 5 stars (162)

About the author

Follow authors to get new release updates, plus improved recommendations.
Aleksander Molak
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Aleksander Molak is a Machine Learning Researcher and Consultant who gained experience working with Fortune 100, Fortune 500, and Inc. 5000 companies across Europe, the USA, and Israel, designing and building large-scale machine learning systems. On a mission to democratize causality for businesses and machine learning practitioners, Aleksander is a prolific writer, creator, and international speaker. As a co-founder of Lespire.io, an innovative provider of AI and machine learning training for corporate teams, Aleksander is committed to empowering businesses to harness the full potential of cutting-edge technologies that allow them to stay ahead of the curve.