Multivariate Sample Simulator

Multivariate Sample Simulator
Loading the math board and drawing, please wait…
2012-06-23 17:59
This example demonstrates the variance and covariance of multivariate data by dragging points and sampling. Core math concepts include variance, covariance, sample mean, and geometric constructions. It uses GeoGebra commands like Sequence, MeanX/Y, Segment, Variance, and Covariance. Suitable for high school and above in probability & statistics education.

GeoGebra Commands & Parameters

  1. Sequence((Element[A1perm, i], Element[B2perm, i]), i, 1, Length[A1perm]) → list1
  2. Sequence(RandomElement[list1], i, 1, samplesize) → list3
  3. MeanX(list3) → a
  4. MeanY(list3) → b
  5. Sequence((Element[list2, i], -i), i, 1, samplesize) → list5
  6. Segment(B, (x(B), -100)) → c
  7. Sequence(Segment[Element[list5, i], (a, -i)], i, 1, samplesize) → list6
  8. Sequence((-i, Element[list4, i]), i, 1, samplesize) → list7
  9. Segment(C, (-100, y(C))) → d
  10. Sequence(Segment[Element[list7, i], (-i, b)], i, 1, samplesize) → list8
  11. Variance(list2) → e
  12. Sequence(Element[list2, i] - a, i, 1, samplesize) → xmeancorrected
  13. Sequence(Element[list4, i] - b, i, 1, samplesize) → ymeancorrected
  14. Covariance(xmeancorrected, ymeancorrected) → covar
  15. Variance(list4) → varoflist4

AI Drawing Prompt Reference

Draw a set of multivariate data points and observe variance and covariance by dragging points and sampling. First, create a series of random points, calculate their means, then draw line segments from these points to the mean point to show the relationship between data points and the mean point. Finally, compute variance and covariance to observe the distribution of data points.
The prompt above was compiled from the original drawing commands and is for reference only.