Exercise 5: Random Linear Functions and Expected Values
Loading the math board and drawing, please wait…
This example demonstrates the process of generating random linear functions and calculating their slope and intercept expected values. Key mathematical concepts include linear functions, expected values, and probability & statistics. Using GeoGebra commands such as Random, RandomElement, and Textfield, dynamic generation of different linear functions and observation of their slope and intercept changes are achieved. Suitable for high school mathematics education and students learning probability & statistics.
GeoGebra Commands & Parameters
Random(-10, 10) → aRandom(-10, 10) → bRandomElement({-5, -4, -3, -2, -1, 1, 2, 3, 4, 5}) → cTextfield(h) → InputBox1RandomElement({-5, -4, -3, -2, -1, 1, 2, 3, 4, 5}) → a_1Random(-10, 10) → b_1RandomElement({-5, -4, -3, -2, -1, 1, 2, 3, 4, 5}) → c_1Random(-10, 10) → d_1Textfield(m) → InputBox2TableText({{A1_1, B1_1, C_1, D_1}, {-3, g(-3), h(-3), f(-3)}, {-2, g(-2), h(-2), f(-2)}, {-1, g(-1), h(-1), f(-1)}, {0, g(0), h(0), f(0)}, {1, g(1), h(1), f(1)}, {2, g(2), h(2), f(2)}, {3, g(3), h(3), f(3)}, {p, e, l, k}}, "|_") → text3_1