Skip to content
Advertisement

Verify Median Value with Area Under the Curve Calculation

I want to calculate the area under this curve for confirmation that the size is correct. How would one go about doing this?

I have a frequency plot below. The package utilized for this median calculation is here: https://github.com/nudomarinero/wquantiles

JavaScript

I started with thinking the trapezoid method could be utilized to verify that value

JavaScript

How can I write something so when Area_t = 0.5(total) print corresponding x and y values??

Advertisement

Answer

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement