# Regression example for one-dimensional input

For some educational purposes, I need a realistic regression example where the input space is one-dimensional, i.e. $x\in\mathbb{R}$.

I do not want to use any dummy approaches such as simulation from $\sin$ with some noise.

Are you aware of any publicly available data sets?

• Fisher's Iris data? – DataD'oh Sep 13 '17 at 14:05
• If you want something more interesting: kaggle.com/datasets simply delete all the features except for one. – lnathan Sep 13 '17 at 14:07
• Fisher's Iris is rather on classification. Isn't it? – Karel Macek Sep 13 '17 at 14:10
• Thank you for referring to kaggle, sounds not bad, but I would need an example where the single component is already known. – Karel Macek Sep 13 '17 at 14:10
• Just find any regression dataset and delete all but one of the explanatory variables and the outcome variable... – blacksite Sep 13 '17 at 14:43

d=MASS::Boston
plot(d$age,d$medv)