1

I have created a density plot with ggplot for the predictions of Logistic regression (probabilities). enter image description here

I do not understand the y - axis. Why the range is not 0-1?

lola
  • 139
  • Are you asking why the probability density is not in $[0, 1], $ is it? – User1865345 Jan 26 '23 at 09:07
  • Yes! It seems that it is 0-10 – lola Jan 26 '23 at 09:08
  • On the y axis you read the estimated densities, not probabilities. – laurab Jan 26 '23 at 09:10
  • 1
    The area under the density should be 1. If the probability is focused in a narrow range the height must be large, or the area would be less than 1. e.g. consider a uniform distribution on (0, 0.1) -- what must the height be? Many questions on site already cover this issue in some detail – Glen_b Jan 26 '23 at 11:16

0 Answers0