Hello,
I want to create a dataset (e.g., N = 20) based on the following polynomial regression:

The only condition that should be met is y= 0 for x = 1, 3, or 7. I don’t care about the epsilons for the moment, but I would be very happy to find a solution on how to generate the corresponding x values.
Thank you!