brownplt / pyret-lang

The Pyret language.
Other
1.07k stars 110 forks source link

Pearson's Chi-Sq test comparing predictor fn and histogram #1380

Open schanzer opened 6 years ago

schanzer commented 6 years ago

Advanced DS request from Steve Ornburn, a teacher in Houston: image

"I’d like to be able to superimpose the [graph of a function] over a histogram of the data used to estimate the parameters. The stretch request, I’d like to do a Pearson’s chi-square test to evaluate the it between the histogram and the PDF. "

sorawee commented 6 years ago

Yeah, Google Charts currently don't have this ability. Bar charts, line charts, and scatter plot can be super imposed together, but histogram is not in the family.

(See https://developers.google.com/chart/interactive/docs/gallery/combochart)