tichcode (@ngetichcode) profile picture

Student, Bsc Mathematics with Computing. Learning to code 👨🏿‍💻. Data Science and Machine Learning. Python for Data Science. https://nitter.cf/t.co/H1Um0EsHuS

Africa
Joined November 2021
Photo by tichcode (@ngetichcode)Photo by tichcode (@ngetichcode)
Correlation is the skill that has singlehandedly benefitted me the most in my career. In 3 minutes I'll compress what I learned in 10 years of using correlation to solve business problems. 1. Correlation: Correlation is a statistical measure that describes the extent to which two variables change together. It can indicate whether and how strongly pairs of variables are related. 2. Types of correlation: There are several types of correlation used in statistics to measure the strength and direction of the relationship between variables. The three most common types are: Pearson, Spearman Rank, and Kendall's Tau. We'll focus on Pearson since that is 95% of the time what I use. 3. Pearson Correlation: Measures the linear relationship between two continuous variables. The coefficient value ranges from -1 (perfect negative linear correlation) to +1 (perfect positive linear correlation), with 0 indicating no linear correlation. 4. Interpretation: Positive Correlation: This occurs when two variables move in the same direction. A positive correlation coefficient (closer to +1) indicates a strong positive correlation. Negative Correlation: This is observed when two variables move in opposite directions. A negative correlation coefficient (closer to -1) indicates a strong negative correlation. No Correlation: If there is no apparent relationship between two variables, this is referred to as no correlation or zero correlation. 5. Assumptions: Pearson correlation assumes that the variables are normally distributed and the relationship between the variables is linear. 6. Strengths: Pearson correlation is widely understood, easy to calculate, and easy to interpret. I use it as a preliminary step in every data analysis. 7. Weaknesses: Only detects linear relationships. Non-linear relationships, even strong ones, might go undetected or be poorly represented by the Pearson coefficient. Affected by Outliers: Pearson's correlation is sensitive to outliers, which can significantly distort the correlation coefficient, leading to misleading conclusions. Only works with numeric data. 8. How I Correct for Weaknesses: Non-linearity and lack of support for categorical data were big issues that led me to create an R package called Correlation Funnel. This corrects for non-linearity by binning numeric data and corrects for categorical data by one-hot encoding categorical data. === Ready to learn Data Science for Business? I put together a free on-demand workshop that covers the 10 skills that helped me make the transition to Data Scientist: learn.business-science.io/fr… And if you'd like to speed it up, I have a live workshop next week where I'll share how to use ChatGPT for Data Science: learn.business-science.io/re… If you like this post, please reshare ♻️ it so others can get value.
29
558
14
2,131
242,100
tichcode retweeted
Linear Regression is a powerful tool in machine learning. Read this 🧵 for the simplest explanation of Linear Regression. 🔽
20
192
13
1,098
365,196
tichcode retweeted
Here is what you learned by reading machine learning tutorials: 1. Load your dataset 2. Preprocess it 3. Split it (train, validation, and test sets) 4. Finally, build your model I want you to unlearn this process. There's a massive problem with it. I call it "foresight bias." To understand what happens, think about history books. Every historian knows how their stories end before they start writing about them. They suffer from hindsight bias, and they put history through that lens. History should be factual, but it isn't. Compare that to learning history from old newspaper scraps. Learning about World War II by reading how people felt during that time will give you a better, unbiased story. They didn't know what would happen the next day, so the stories were as real as they get. Foresight bias is the opposite. Imagine you have tabular data and want to scale a few numerical columns. For example, there's a column with values from 0 to 100 and another from 0 to 10,000. When preprocessing the data, you use min-max scaling to squeeze both columns between 0 and 1. To do this, you must compute both columns' smallest and largest values. You haven't split your data yet, so the minimum and maximum values will include soon-to-be test data. If you standardize the columns, the same will happen to the mean and standard deviations. You are using information about the future to affect the past. This is foresight bias. This is cheating. We call it "data leaks." Many people make this mistake every day. I teach a live program with around 100 students every month. I surprise 80% of them when I show you this problem. Historians can't rid themselves of hindsight bias. The same happens to us. It's difficult not to want to influence a model by using information we aren't supposed to know. Fortunately, there's a solution for this: 1. Split the dataset before you do anything else. Set aside the data you'll use to test the model. 2. To learn about your data, use the split you'll use to train the model. Leave the test data alone. Don't look at it. 3. When it's time to preprocess the data, do it on every split individually. Fit your transformation process on the train data. Use the same global statistics to process the rest of the dataset. 4. Evaluate your model on the test data as few times as possible. Ideally, use your test data only once. 5. If you reuse your test data, don't use the results of your model as feedback to improve it. The more you stick to this, the more you'll delay the inevitable overfitting.
12
90
6
605
134,061
• Work on carefully crafted practice questions • Get the link to join a group of devoted Data Analysts and also get answers to your pressing questions • Learn the following skills: Data cleaning, Data visualization and Analysis. Interesting right? 🥳
1
4
1
19
4,693
WEEK 1: MATHS AND BASIC STATISTICS This course will teach you the basics of statistics; samples, population, measures of central tendency, spread, correlation and regression. It’s an eight hour video so if you dedicate at least 2-3hrs everyday. You should finish by Sunday.
270
1,795
117
4,613
863,135
5️⃣ Important 🐼 Pandas Plotting Functions 📚 Pandas is famous data manipulation package used by many. It is famous because it is intuitive & easy to use. A Thread 🧵 – at Ghaziabad, India
1
14
1
34
3,919
Top free #DataScience resources : 1. CS109 Data Science cs109.github.io/2015/pages/v… 2. Data Science Essentials edx.org/course/data-science-… 3. Learning From Data from California Institute of Technology work.caltech.edu/telecourse
67
1,049
21
3,007
tichcode retweeted
Discover the power of K-means clustering in modern data science. 🛠️ This step-by-step #tutorial follows real-world examples in #R for grouping data and finding patterns in large datasets. Explore one of the most used clustering algorithms in data 👉 https://nitter.cf/t.co/edww4KwC99
21
81
12,245
I just published Introduction to Numpy — Advantages and Applications web3usecase.co/introduction-… #python #python3 #MachineLearning #DataAnalytics #dataScientist #programming
1
3
5
172
Developers, what do you do when: Stackoverflow doesn’t solve your problem? 😨
623
87
100
1,461
It’s happens almost every time when someone gets serious in Tech, we encounter some lifestyle changes, Some which may not be the best for us. Let’s share ideas about how we can manage Tech & Life the right way! Be sure to set a reminder & tune in ❤️ nitter.cf/i/spaces/1BdxYyBEPyYxX
5
22
1
172
How to Create Mathematical #Optimization Models with #Python: hubs.la/Q01nN3ZD0
3
27
150
Tech Twitter is the best community that one can be a part of. I'm learning a lot from everyone here.
68
104
6
1,082
tichcode retweeted
Learn Data Structure and Algorithms for free: 1. visualgo.net 2. algoanim.ide.sk 3. graphonline.ru 4. algorithm-visualizer.org 5. toptal.com/developers/sortin…
45
488
7
1,663
Tech has made me realize that there is nothing we can’t do, all we have to do is learn it! 😌
50
283
32
1,637
tichcode retweeted
What advice would you give to someone getting started with Pandas?
9
5
1
20
Python 101 is #1 in newly released #Python books today
35
81
5
620
What are you selling? Goods and services. Your buyers are waiting.
181
53
4
341