Skip to content

Update contingency_tables.rst - #4865

Closed
amirmasoudabdol wants to merge 2 commits into
statsmodels:masterfrom
amirmasoudabdol:fix-borken-maths
Closed

amirmasoudabdol wants to merge 2 commits into
statsmodels:masterfrom
amirmasoudabdol:fix-borken-maths

Conversation

@amirmasoudabdol

Copy link
Copy Markdown
Contributor

Fix broken .. math:s by adding the missing tab before each equation.

Fix broken `.. math:`s by adding the missing tab before each equation.
@coveralls

coveralls commented Aug 9, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.06%) to 83.598% when pulling ab0cfc0 on amirmasoudabdol:fix-borken-maths into d7b1ac0 on statsmodels:master.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4865 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4865   +/-   ##
=======================================
  Coverage   81.14%   81.14%           
=======================================
  Files         581      581           
  Lines       89927    89927           
  Branches    10043    10043           
=======================================
  Hits        72968    72968           
  Misses      14677    14677           
  Partials     2282     2282

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7b1ac0...af23474. Read the comment docs.

@kshedden

kshedden commented Aug 9, 2018

Copy link
Copy Markdown
Contributor

@amirmasoudabdol Thanks for this. Is there a way to see how this renders? I trust that this is the right thing to do, but I don't know the rst syntax myself very well.

@amirmasoudabdol

Copy link
Copy Markdown
Contributor Author

In this case, the formula was completely broken, now it's been shown correctly.

@josef-pkt

Copy link
Copy Markdown
Member

a horizontal space in before forall would be useful
(in general I prefer to spell for all out in text except in math journals.)

@amirmasoudabdol

Copy link
Copy Markdown
Contributor Author

I agree. The spacing is rather off. We can do with these two, which one can we agree on?

screenshot 2018-08-10 at 00 53 32

or

screenshot 2018-08-10 at 00 52 22

@josef-pkt

Copy link
Copy Markdown
Member

horizontal space is fine, but the first version is a hybrid
I meant, dropping the forall symbol to have something like
math ... text{for all} i, j

@amirmasoudabdol

Copy link
Copy Markdown
Contributor Author

I see. Except for the hybrid one, all is fine I guess. But I've tried to find a documentation on numpy or scipy to see what's their preferred method, but I couldn't recall anything with a similar formula. Do you have an example?

@josef-pkt

josef-pkt commented Aug 9, 2018 •

Copy link
Copy Markdown
Member

I don't find an example browsing around in docs and notebooks.
I don't remember where I might have used this in documentation or whether at all. For simplicity I also might drop the for all i, j completely or put it in the surrounding text.

I think using text for all is good as a general rule for our documentation, when we actually want to add it to be "cleaner".

@amirmasoudabdol

Copy link
Copy Markdown
Contributor Author

I've honestly confused now what'd be the final version. This:

.. math::

    P_{ij} = \sum_k P_{ij} \cdot \sum_k P_{kj} \quad \text{for all  i, j}

@josef-pkt

Copy link
Copy Markdown
Member

@amirmasoudabdol
yes, that looks fine
If or when I want to be picky, then I keep math rendering for the final i and j.

@amirmasoudabdol

Copy link
Copy Markdown
Contributor Author

This should be good then 👍

screenshot 2018-08-12 at 04 47 10

@josef-pkt

Copy link
Copy Markdown
Member

Sorry, this got lost.

Can you rebase? then I will merge.
(If needed, I can do the rebase)

@josef-pkt josef-pkt added this to the 0.10 milestone Sep 7, 2018
@jbrockmendel jbrockmendel mentioned this pull request Sep 8, 2018
31 of 32 tasks
@bashtage bashtage mentioned this pull request May 1, 2019
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants