πŸ”₯ Matt Dancho (Business Science) πŸ”₯ Profile picture
Aug 30 β€’ 12 tweets β€’ 4 min read β€’ Read on X
Linear Regression is one of the most important tools in a Data Scientist's toolbox.

Yet it's super confusing for beginners.

Let's fix that: 🧡 Image
1. Ordinary Least Squares (OLS) Regression

Most common form of Linear Regression. OLS regression aims to find the best-fitting linear equation that describes the relationship between the dependent variable (often denoted as Y) and independent variables (denoted as X1, X2, ..., Xn).Image
2. Minimize the Sum of Squares

OLS does this by minimizing the sum of the squares of the differences between the observed dependent variable values and those predicted by the linear model. These differences are called "residuals." Image
3. Best Fit

"Best fit" in the context of OLS means that the sum of the squares of the residuals is as small as possible. Mathematically, it's about finding the values of Ξ²0, Ξ²1, ..., Ξ²n that minimize this sum.
4. Coefficients (Ξ²1, Ξ²2, ..., Ξ²n):

These coefficients represent the change in the dependent variable for a one-unit change in the corresponding independent variable, holding other variables constant. Image
5. R-squared (RΒ²):

This statistic measures the proportion of variance in the dependent variable that is predictable from the independent variables. It ranges from 0 to 1, with higher values indicating a better fit of the model to the data. Image
6. t-Statistics and p-Values:

For each coefficient, the t-statistic and its associated p-value test the null hypothesis that the coefficient is equal to zero (no effect). A small p-value (< 0.05) suggests that you can reject the null hypothesis.
7. Confidence Intervals:

These intervals provide a range of plausible values for each coefficient (usually at the 95% confidence level).
8. There's a new problem that has surfaced -- Companies NOW want AI.

AI is the single biggest force of our decade. Yet 99% of data scientists are ignoring it.

That's a huge advantage to you. I'd like to help.
Want to become a Generative AI Data Scientist in 2025 ($200,000 career)?

On Wednesday, Sept 3rd, I'm sharing one of my best AI Projects: How I built an AI Customer Segmentation Agent with Python

Register here (limit 500 seats): learn.business-science.io/ai-registerImage
That's a wrap! Over the next 24 days, I'm sharing the 24 concepts that helped me become an AI data scientist.

If you enjoyed this thread:

1. Follow me @mdancho84 for more of these
2. RT the tweet below to share this thread with your audience
P.S. I create AI + Data Science tutorials and share them for free. Your πŸ‘ like and ♻️ repost helps keep me going.

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with πŸ”₯ Matt Dancho (Business Science) πŸ”₯

πŸ”₯ Matt Dancho (Business Science) πŸ”₯ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @mdancho84

Aug 31
🚨 Google published a 69-page prompt engineering masterclass.

This is what's inside: Image
Table of Contents:

- Prompt Engineering
- LLM Output Configuration
- Prompting Techniques
- Best Practices Image
Important concepts:

1. One-shot versus multi-shot

Google does a great job examining both approaches and demonstrating when to use them and how they work. Image
Read 8 tweets
Aug 28
Came across this new library for LLM Prompt Management in Python.

This is what it does: Image
The Python library is called Promptify.

It combines a prompter, LLMs, and pipeline to Solve NLP Problems with LLM's.

You can easily generate different NLP Task prompts for popular generative models like GPT, PaLM, and more with Promptify. Image
Don't understand what that means? Let's take an example:

This is an NLP Classification Task.

The prompt combines a model, prompter, and pipeline to perform a Medical classification of the patient's symptoms. Image
Read 7 tweets
Aug 28
🚨BREAKING: New Python library for agentic data processing and ETL with AI

Introducing DocETL.

Here's what you need to know: Image
1. What is DocETL?

It's a tool for creating and executing data processing pipelines, especially suited for complex document processing tasks.

It offers:

- An interactive UI playground
- A Python package for running production pipelines Image
2. DocWrangler

DocWrangler helps you iteratively develop your pipeline:

- Experiment with different prompts and see results in real-time
- Build your pipeline step by step
- Export your finalized pipeline configuration for production use Image
Read 8 tweets
Aug 27
Understanding P-Values is essential for improving regression models.

In 2 minutes, I'll crush your confusion. Image
1. The p-value:

A p-value in statistics is a measure used to assess the strength of the evidence against a null hypothesis.
2. Null Hypothesis (Hβ‚€):

The null hypothesis is the default position that there is no relationship between two measured phenomena or no association among groups. For example, under Hβ‚€, the regressor does not affect the outcome.
Read 15 tweets
Aug 27
Logistic Regression is the most important foundational algorithm in Classification Modeling.

In 2 minutes, I'll crush your confusion.

Let's dive in: Image
1. Logistic regression is a statistical method used for analyzing a dataset in which there are one or more independent variables that determine a binary outcome (in which there are only two possible outcomes). This is commonly called a binary classification problem.
2. The Logit (Log-Odds):

The formula estimates the log-odds or logit. The right-hand side is the same as the form for linear regression. But the left-hand side is the logit function, which is the natural log of the odds ratio. The logit function is what distinguishes logistic regression from other types of regression.Image
Read 9 tweets
Aug 25
This guy built an entire AI Data Science Team in Python.

100% Open Source

This is how to get it (for FREE) 🧡 Image
1. What is it?

An AI-powered data science team of agents to help you perform common data science tasks 10X faster.
It has AI agents that can help with:

- Churn Modeling
- Employee Attrition
- Lead Scoring
- Insurance Risk
- Credit Card Risk Image
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(