Data Generation with Requirement

  • Thread starter Thread starter awaludin
  • Start date Start date
  • Tags Tags
    Data Generation
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
awaludin
Messages
2
Reaction score
0
Dear All
I need to generate data for my research. Let I have a linear equation with 3 independent variables and 1 dependent variable
a0x0 + a1x1 + a3x3 = y
I want each of my variable(x0, x1, x2) has a defined R2 (r square) with y. Let x0-y = 0.8, x1-y = 0.9, x2-y = 0.85. Any reference how to do this? Thank you.
 
Physics news on Phys.org
What are your thoughts on the matter? You need to show that you've attempted the problem first!
 
My first thought was to create a data of a line and add some disturbance on it. Different disturbance, different variable. Let say that the line data + random disturbance = x0, the line data + sine disturbance = x1. I can get a different r square, but I still don't know how to control the value of r square.