Data Science, Data Visualization, Data Analysis, Rust, Programming.
trials.into_iter().zip(y_iter).collect() }; Each pair of values (e.g. (0.5, 0.5)) in each Beta::new method represents different values of the distribution’s shape α and β. Notice the dist.pdf function invocation which computes the Beta distribution pdf for a given sample. Now we can plot this