Suppose I have data like this:

x y
5 10
10 12-30
15 45
20 50
25 55-60

I want to visualize it graphically. How can I do it? I googled how to describe intervals graphically, but didn't find anything. And I also want to do regression analysis on the data.

  • $\begingroup$ What have you tried so far? What tools are you familiar with or hoping to use? $\endgroup$
    – WBM
    Apr 21, 2021 at 14:54
  • $\begingroup$ I just googled it. Nothing else. I want to do it (i.stack.imgur.com/UzK0M.png) on Python,but not with time series. Is it possible? $\endgroup$ Apr 21, 2021 at 16:32
  • $\begingroup$ Related: 52351 $\endgroup$
    – Edmund
    Apr 25, 2021 at 17:56

1 Answer 1


You can visualize intervals using histograms. For regression, try out OLS. Or you can reframe it as a classification task.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.