title: how to find a distribution of values in dataset and generate random values based on this distribution?
body: <p>I have a dataset of 100 cases. Each case has a class {I,II,III,IV,V} and a value A and V, each class appears exactly 20 times in the dataset: </p>
  
  <pre><code>Class   A   V
  5       2   3
  1       3   5
  3       2   3
  2       3   5
  3       2   3
  1       2   4
  1       2   4
  1       4   4
  2       3   3
  2       3   4
  </code></pre>
  
  <p>I want to generate another 100 cases based on this set. Am i correct in assuming that I should</p>
  
  <ol>
  <li>find the distribution of A and the distribution of V per class?</li>
  <li>calculate the joint distribution of A &amp; V per class</li>
  <li>get random numbers based on this joint distribution</li>
  </ol>
  
  <p>If so, any pointer to an application or library in java or python is appreciated!</p>