Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
walchko committed Apr 19, 2015
1 parent b0f0f92 commit d18994b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.todo',
'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath','sphinx.ext.extlinks'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
32 changes: 8 additions & 24 deletions docs/engineering/statistics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,14 @@ Statistics
Expected Value
--------------

The predicted value of a variable, calculated as the sum of all possible
values (
The predicted value of a variable, calculated as the sum of all possible values (:math:`x_i`) each multiplied by the probability (:math:`p_i`) of its occurrence.

.. math:: $x_i

\ :math:`) each multiplied by the probability (`\

.. math:: p_i

\ $) of its occurrence.

.. math:: E(x) = x_1p_1 + x_2p_2 + ... + x_np_n

.. math:: E(x) = \mu

The expected value is the mean of a random variable (greek letter

.. math:: $\mu

\ $).
.. math::
E(x) = x_1p_1 + x_2p_2 + ... + x_np_n
E(x) = \mu
The expected value is the mean of a random variable (greek letter :math:`\mu`).

Example
~~~~~~~
Expand All @@ -44,11 +32,7 @@ Variance

Variance describes how far a set of numbers are spread out from each
other from the mean. It is the average of the *squared* differences from
the mean. It is also the covariance of

.. math:: $x

\ $ with it self.
the mean. It is also the covariance of :math:`x` with it self.

.. math:: var(x) = E[(x-\mu)^2] = (x_1-\mu)^2p_1 + ... + (x_n-\mu)^2p_n = cov(x,x) = E[(x-\mu)(x-\mu)]

Expand Down
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Contents:
.. toctree::
:maxdepth: 2


engineering/statistics
raspbian/test

Indices and tables
==================
Expand Down

0 comments on commit d18994b

Please sign in to comment.