I got a DataFrame
with 3 labels, and KDE was plotted with code below.
Theoretically, the three lines should plot gaussian distributions, and calculus to 1 independently. However, the plotting shows that their density may be estimated jointly.
How should I estimate them independently? And got three gaussian distribution lines with equal calculus?
df = pd.DataFrame(data=data, columns=['label', 'score'])
l = sns.displot(data=df, x="score",hue="label", kind="kde", rug=False)