You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not an issue - just a question
Is there a function in your library that can get Frequency distribution of grouped data?
This is, return data to fill a Frequency Distribution table of grouped data.
Calculating class intervals, interval width (indicating the interval width), mean for grouped data, median for grouped data and mode for grouped data.
Currently there are basic frequency distributions. You can use them like this:
useMathPHP\Statistics\Distribution;
$grades = ['A', 'A', 'B', 'B', 'B', 'B', 'C', 'C', 'D', 'F'];
// Frequency distributions (frequency and relative frequency)$frequencies = Distribution::frequency($grades); // [ A => 2, B => 4, C => 2, D => 1, F => 1 ]$relative_frequencies = Distribution::relativeFrequency($grades); // [ A => 0.2, B => 0.4, C => 0.2, D => 0.1, F => 0.1 ]// Cumulative frequency distributions (cumulative and cumulative relative)$cumulative_frequencies = Distribution::cumulativeFrequency($grades); // [ A => 2, B => 6, C => 8, D => 9, F => 10 ]$cumulative_relative_frequencies = Distribution::cumulativeRelativeFrequency($grades); // [ A => 0.2, B => 0.6, C => 0.8, D => 0.9, F => 1 ]
If there is something more you think would be useful, please let us know and describe what the input and output would be. If there are other libraries where this is implemented as a reference, like R or Excel, for example, that is useful too.
Not an issue - just a question
Is there a function in your library that can get Frequency distribution of grouped data?
This is, return data to fill a Frequency Distribution table of grouped data.
Calculating class intervals, interval width (indicating the interval width), mean for grouped data, median for grouped data and mode for grouped data.
This links explains what I mean:
https://www.onlinemathlearning.com/make-frequency-table.html
https://www.toppr.com/guides/maths/statistics/frequency-distribution/
Thanks!
The text was updated successfully, but these errors were encountered: