Well, you shouldnt really be using p values as the solo measure of your test. The ASA has quietly kind of disavowed the use of p values because of how misleading they can be
But ultimately the p value doesn't directly say anything about the hypothesis itself, it measures how compatible the data is with the hypothesis
I like to explain it as a measure of compatibility between the null and the data so that the implications of small and large values makes sense. If the null (which we just made up) and the data are incompatible, we reject the null and go with what the data tell us. If they are compatible, the data provide no evidence against the null.
I once asked my data science team to provide me with p values, t scores, or 95% CIs for their coefficients of relationships they were claiming. I knew they weren't great at that stuff so I just wanted to keep it as simple as possible.
Instead they gave me a table that described the fits as "good" "great" "not so good"
This is honestly not terrible when you need to communicate with stakeholders who need simple yes/no answers to make decisions. I think the problem is when as a data scientist you’re not aware of what these things are.
It’s the period of time between me finishing my coffee in the morning and feeling drag-arsey after lunch where I’m motivated and feel like I can accomplish anything. This is followed shortly thereafter by a period of epistemic uncertainty.
When interviewing I start with easier questions, like "what's the difference between an average and a median", usually 70% of the candidates can't answer this even with a lot of help...
Well, acknowledging that they can be different, a little bit of explaining why, then this become an intro to skewed data and how to handle them (that's probably problem/industry specific, but if we reach that point of the discussion, you reached a good mark :) )
You can tier this. If their explanation is relatively simple but also talks about different measures of centrality, they understand the concept. If they start talking about L1/L2 norms, they can code it.
Me obsessing over how the Pearson and Spearman coefficients work over the last week and people around me blindly using correl() in Excel and saying they did a correlation analysis (they spent a week on using a function over a few columns)
Not a data science.. but I am a business intelligence analyst and need to regularly explain these concepts to people that dont normally deal with stats (usually they took a class a million years ago)... A p value tells you how likely an observed effect happened by random chance.. so smaller values means less likely it was random chance. Confidence intervals give you a range of values (to whatever confidence you like. usually 95% is calculated) where you are fairly certain the TRUE average exists... I'll go onto a brief synopsis of the central limit theorem from there if they look interested
Let me nitpick here. It is impossible to know, in absolute terms, how likely an observed effect is to happen by random chance, because we don't know a probability distribution for what happens in the world. A p-value gives the probability of the data, conditional on the null hypothesis. A lot of people miss the "conditional on the null hypothesis" part, and think you're showing how likely the null hypothesis is to be true. I think it's crucial to communicate that this isn't true.
To me it's implied that the confidence value exists because it is conditional on the null hypothesis. Of course the confidence interval would change if the hypothesis changes.
Yes and no. On the one hand.. yes you are more right.. a more accurate way to explain it could be to say something like "the smaller the p value, the less likely the observed difference is due to random chance, assuming the null hypothesis is true"...but I guarantee you will instantly lose two-thirds of the room the moment you say "null hypothesis".. It ultimately boils down to precision vs practicality. From a BI perspective I'll draw that shit out in crayon if i think it will help the executives actually understand what the hell I am saying.... and I can't tell you the number of times I've had to explain that statistical significance does not necessarily mean practical significance...
You don’t have to say it like that. They will understand “if we live in a world where [statement of null hypothesis], data like this probably wouldn’t happen. So this data suggests our world is different.” Avoid the terminology, but provide a logically correct meaning.
Python is a ""beginer"" language for data science. Often people who started with it (since it is ""easy"") are attracted by thé Idea of doing programmation to make machine learning etc... But they do not bother to check thé "boring" maths before...
As someone who got into programming/Python after I had already reached a relatively advanced level of statistics edication, it always tickles me how little about statistics some of the people who are "into" machine learning know.
I'm the first to admit I'm a shitty programmer though. A person needs a good balance.
Everyone comes in from different backgrounds, and there are tradeoffs to specializing in different skill sets, but there some fundamental concepts that can should be understood by most people in the field
In my opinion, it is normal to not know this on top of your head, specially when talking about statistics.
The more you study statistics, the more you need to double check.
I think people like OP are just trying to say that some people say they are a professional of this area when they are not...
OP should help their partners with discussions, so both of them have a better understanding of what a confidence interval really is. Instead, at the time of post, he is just acknowledging that fact to others so he can reaffirm that there is more complex doubts in the area of statistics that should be discussed so he can provide more profit to his boss.
The confidence interval is a range calculated around a model's estimate, where the size of the range is determined by the standard error, indicating how much the estimate might vary due to sampling variability. -chatgpt
Why? It’s incredibly useful to give you some fast code to get cold starts going. It can help with pair programming / talking to someone when you have no one else to talk to. I’ve also learned a ton of good python practices from it.
Does it give bad results? Oh yeah. But it’s just a tool. And it provably sped up my coding by a lot.
A tool that gives bad results is a bad tool. A tool that gives bad results that someone without deep knowledge can even tell are bad is a horrific tool.
Don't get me wrong, it's cool, but it's too prone to fail spectacularly and silently. Anything chatgpt can regurgitate is out on the Internet already anyway. You could have just looked up good programming practices from countless reputable sources that teach them and read better information.
I know the X% confidence interval is supposed to be the interval in which you would find the test statistic X% of the time, were you to draw new samples from the population. Apparently that's not the same as saying the population value has an X% chance of being in that interval. What I don't understand is if it's not telling us anything about the population statistic, then why do we care about it?
So I am thinking of learning data science can anyone give me a brief roadmap where to start and can someone suggest some free courses related to data science and I know python so suggest me some free courses like zero to hero
confidence interval is like telling your brah, yo imma 95% confident I'll finish this pizza in 20 to 25 minutes, but there's a 5% chance I might get distracted by cat videos and extend it to an hour 🍕😅 😹
338
u/[deleted] Oct 17 '23
If answered ask what's a p value
8
u/Hackerjurassicpark Oct 17 '23
OP are the one who posted the harmonic mean post several months back?
161
u/Hellkyte Oct 17 '23
I once asked my data science team to provide me with p values, t scores, or 95% CIs for their coefficients of relationships they were claiming. I knew they weren't great at that stuff so I just wanted to keep it as simple as possible.
Instead they gave me a table that described the fits as "good" "great" "not so good"
159
u/Vegetable_Carrot_873 Oct 17 '23
Inside my brain, "I believe one of the Python lib already have this feature, if I am lucky enough, Pandas might have implemented it already. "
80
u/lifesthateasy Oct 17 '23
This is why I'm telling everyone I'm an ML engineer. So I can get away with the trifecta of loss, RMSE and F1 score
258
u/thefringthing Oct 17 '23
virgin confidence interval vs chad credible interval
136
u/[deleted] Oct 17 '23
It’s the period of time between me finishing my coffee in the morning and feeling drag-arsey after lunch where I’m motivated and feel like I can accomplish anything. This is followed shortly thereafter by a period of epistemic uncertainty.
67
u/DoctorBotcod Oct 17 '23
Its a 95% chance that you wont find a date using tinder
36
u/TheRealGizmo Oct 17 '23
When interviewing I start with easier questions, like "what's the difference between an average and a median", usually 70% of the candidates can't answer this even with a lot of help...
40
u/WillingnessNice3033 Oct 17 '23
Is there an LLM for that tho?
13
u/Better-Macaroon1690 Oct 17 '23
So ur telling me I can become a data scientist with my Econ major cause ik basic stats
15
u/[deleted] Oct 17 '23
Me obsessing over how the Pearson and Spearman coefficients work over the last week and people around me blindly using correl() in Excel and saying they did a correlation analysis (they spent a week on using a function over a few columns)
11
u/[deleted] Oct 17 '23
Not a data science.. but I am a business intelligence analyst and need to regularly explain these concepts to people that dont normally deal with stats (usually they took a class a million years ago)... A p value tells you how likely an observed effect happened by random chance.. so smaller values means less likely it was random chance. Confidence intervals give you a range of values (to whatever confidence you like. usually 95% is calculated) where you are fairly certain the TRUE average exists... I'll go onto a brief synopsis of the central limit theorem from there if they look interested
12
u/[deleted] Oct 17 '23
Haha, this is too real.
2
u/Longjumping_Ad_7053 Oct 17 '23
I don’t get the joke 😭
2
u/[deleted] Oct 17 '23
In my mind, I think there's a possibility that a Python library might already offer this feature, and if I'm fortunate
2
u/belaGJ Oct 17 '23
I do not bow to the false idols of frequencionists! /s
2
u/[deleted] Oct 17 '23
'R'aughs
2
u/TheTjalian Oct 17 '23
Pfft, of course I know what that is.
It's the gap between days where I am confident I can do my role properly. Rest of the time it's just anxiety and imposter syndrome.
2
u/Interesting_Sail3947 Oct 18 '23
Confidence interval means I’m not confident in my answer
2
u/[deleted] Oct 18 '23
One of these two is employed. You know which one.
2
u/blurry_forest Oct 18 '23
Are you supposed to know what this is off the top of your head?
I am constantly double checking definitions and how to apply something…..
5
u/[deleted] Oct 17 '23
Hate the fucking fancy nomenclature. Its simpler than you think
1
u/beinggintrovertt Dec 15 '23
💀💀💀
1
u/abhi2307 Mar 14 '24
Math basics are important!
1
u/EmptySeesaw Mar 27 '24
I feel like I learned a lot of the math used in data science in my introductory Stats class lol
1
u/eskin22 BS | Data Scientist | eCommerce Mar 30 '24
Test
1
u/Few_Smell_9216 Apr 01 '24
😂
1
u/mathCSDev Oct 17 '23
95 ci means 95 percent probability of finding true value /s
1
u/[deleted] Oct 17 '23
This cant be true… is it?
1
u/jooglyp Oct 17 '23
The confidence interval is a range calculated around a model's estimate, where the size of the range is determined by the standard error, indicating how much the estimate might vary due to sampling variability. -chatgpt
1
u/emzak Oct 17 '23
Impostor syndrome intensifies
1
u/Cerulean_IsFancyBlue Oct 17 '23
The 3rd frame demonstrates the confidence interval, in which someone is confident for a while.
1
u/Deto Oct 18 '23
I know the X% confidence interval is supposed to be the interval in which you would find the test statistic X% of the time, were you to draw new samples from the population. Apparently that's not the same as saying the population value has an X% chance of being in that interval. What I don't understand is if it's not telling us anything about the population statistic, then why do we care about it?
1
u/Spicy_Phoenix Oct 18 '23
Funny story, I actually used Python for a MC simulation project a few weeks ago.
1
u/TheRealStepBot Oct 18 '23
Jokes on you, I’m not frequentist scum.
1
u/Snoo43790 Oct 18 '23
and now I am offended!
1
u/TraditionalSnow6914 Nov 01 '23
Help pls
So I am thinking of learning data science can anyone give me a brief roadmap where to start and can someone suggest some free courses related to data science and I know python so suggest me some free courses like zero to hero
1
u/Bradstewart23 Nov 02 '23
hahah
1
u/delzee363 Nov 10 '23
confidence interval is like telling your brah, yo imma 95% confident I'll finish this pizza in 20 to 25 minutes, but there's a 5% chance I might get distracted by cat videos and extend it to an hour 🍕😅 😹
1
u/SnooBeans7856 Dec 02 '23
A rare occasion
1
u/Outrageous_Top_4861 Dec 05 '23
Interesting
1
u/rehansheikh139 Jan 12 '24
Lol
1
u/[deleted] Jan 30 '24
Lol pythonnnnn
1
u/charliebillek Feb 05 '24
Lol
1
u/shoesshiner Mar 04 '24
how confident i am that my code is wrong
0
u/sapperbloggs Oct 17 '23
CI95=(SD/SQRT(N))*1.96