8000 Update box plots doc with precomputed quartiles and quartilemethod by jdamiba · Pull Request #2063 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

Update box plots doc with precomputed quartil 8000 es and quartilemethod #2063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 13, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding reference links
  • Loading branch information
Joseph Damiba committed Jan 13, 2020
commit 301e9293778a379c9acd91a2afa3303e1029ff34
8 changes: 6 additions & 2 deletions doc/python/box-plots.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ fig.show()

### Choosing The Algorithm For Computing Quartiles

By default, quartiles for box plots are computed using a linear algorithm method (see #10 listed on [http://www.amstat.org/publications/jse/v14n3/langford.html](http://www.amstat.org/publications/jse/v14n3/langford.html) for more details). However, you can also choose to use an `exclusive` or an `inclusive` algorithm to compute quartiles.
By default, quartiles for box plots are computed using a linear algorithm method (see #10 listed on [http://www.amstat.org/publications/jse/v14n3/langford.html](http://www.amstat.org/publications/jse/v14n3/langford.html) and [https://en.wikipedia.org/wiki/Quartile](https://en.wikipedia.org/wiki/Quartile) for more details).

However, you can also choose to use an `exclusive` or an `inclusive` algorithm to compute quartiles.

The *exclusive* algorithm uses the median to divide the ordered dataset into two halves. If the sample is odd, it does not include the median in either half. Q1 is then the median of the lower half and Q3 is the median of the upper half.

Expand Down Expand Up @@ -181,7 +183,9 @@ fig = go.Figure(data=[go.Box(y=[0, 1, 1, 2, 3, 5, 8, 13, 21],
fig.show()
```

### Choosing The Algorithm For Computing Quartiles
### Modifying The Algorithm For Computing Quartiles

For an explanation of how each algorithm works, see [Choosing The Algorithm For Computing Quartiles](#choosing-the-algorithm-for-computing-quartiles).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you link to the explanations given above, using the internal anchor link? (it would probably be "/python/box-plots/#difference-between-quartile-algorithms#)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, added a link to the explanations above.

```python
import plotly.graph_objects as go
Expand Down
0