I have a distribution but it is differentially private - which means I can't access individual points themselves or pass the distribution itself to plt.boxplot or sns.boxplot.
The only thing I have is calculating the critical info about the distribution:
- Q1
- Q2
- Q3
- Minimum
- Maximum
- Mean
I want to display a boxplot using only those. I am guessing this might involve drawing the actual rectangles, the lines for mean and median and the whiskers manually. Or not?
I would love some suggestions.
Ps. I don't care about outliers. The whisker lengths can be set regularly with combination of Q1/Q3 +/- 1.5 * IQR. But I need to show the minimum and max with single dots.
see this code. It should work for you.