Effect of Interchanging x and y in Linear Regression

Effect of Interchanging x and y in Linear Regression
Loading the math board and drawing, please wait…
2012-07-17 04:27
This example uses a simple dataset to illustrate that the regression line for x on y is not the inverse of the regression line for y on x. Key mathematical concepts include linear regression analysis. Using GeoGebra commands, it demonstrates how to create these graphs. Suitable for high school mathematics, particularly statistics and probability courses.

GeoGebra Commands & Parameters

  1. Numeric A1(4.049)
  2. Numeric B1(581.0)
  3. Numeric A2(3.423)
  4. Numeric B2(582.0)
  5. Numeric A3(4.917)
  6. Numeric B3(580.0)
  7. Numeric A4(5.532)
  8. Numeric B4(580.0)
  9. Numeric A5(4.304)
  10. Numeric B5(603.0)
  11. Numeric A6(3.777)
  12. Numeric B6(604.0)
  13. Numeric A7(4.663)
  14. Numeric B7(611.0)
  15. Numeric A8(4.934)
  16. Numeric B8(611.0)
  17. Numeric A9(4.097)
  18. Numeric B9(614.0)
  19. Numeric A10(4.06)
  20. Numeric B10(615.0)
  21. Numeric A11(6.208)
  22. Numeric B11(615.0)
  23. Numeric A12(3.8)
  24. Numeric B12(618.0)
  25. Numeric A13(4.041)
  26. Numeric B13(618.0)
  27. Numeric A14(5.247)
  28. Numeric B14(625.0)
  29. Numeric A15(6.1)
  30. Numeric B15(625.0)
  31. Numeric A16(5.02)
  32. Numeric B16(626.0)
  33. Numeric A17(4.52)
  34. Numeric B17(627.0)
  35. Numeric A18(8.162)
  36. Numeric B18(628.0)
  37. Numeric A19(4.521)
  38. Numeric B19(629.0)
  39. Numeric A20(6.554)
  40. Numeric B20(638.0)
  41. Numeric A21(5.338)
  42. Numeric B21(639.0)
  43. Numeric A22(4.483)
  44. Numeric B22(641.0)
  45. Numeric A23(4.772)
  46. Numeric B23(644.0)
  47. Numeric A24(5.128)
  48. Numeric B24(649.0)
  49. Numeric A25(3.28)
  50. Numeric B25(650.0)
  51. Numeric A26(5.515)
  52. Numeric B26(657.0)
  53. Numeric A27(7.629)
  54. Numeric B27(657.0)
  55. Numeric A28(6.413)
  56. Numeric B28(658.0)
  57. Numeric A29(5.41)
  58. Numeric B29(660.0)
  59. Numeric A30(5.477)
  60. Numeric B30(661.0)

AI Drawing Prompt Reference

Draw a scatter plot with two sets of data points, and show the linear regression lines for predicting x from y and y from x, to illustrate their relationship. Start by plotting the scatter points, then add the two regression lines with distinct colors or styles.
The prompt above was compiled from the original drawing commands and is for reference only.