[simulations] improved univariate data exercise
This commit is contained in:
@@ -29,8 +29,12 @@ simulates repeated measurements of some quantity (e.g., weight of
|
||||
tigers or firing rate of neurons). Doing so we must specify from which
|
||||
probability distribution the data should originate from and what are
|
||||
the parameters (mean, standard deviation, shape parameters, etc.)
|
||||
that distribution.
|
||||
that distribution. How to illuastrate and quantify univariate data, no
|
||||
matter whether they have been actually measured or whether they are
|
||||
simulated as described in the following, is described in
|
||||
chapter~\ref{descriptivestatisticschapter}.
|
||||
|
||||
\subsection{Normally distributed data}
|
||||
For drawing numbers $x_i$ from a normal distribution we use the
|
||||
\code{randn()} function. This function returns normally distributed
|
||||
numbers $\xi_i$ with zero mean and unit standard deviation. For
|
||||
@@ -44,28 +48,32 @@ numbers:
|
||||
|
||||
\begin{exercise}{normaldata.m}{normaldata.out}
|
||||
First, read the documentation of the \varcode{randn()} function and
|
||||
check its output for a some (small) input arguments. Write a little
|
||||
check its output for some (small) input arguments. Write a little
|
||||
script that generates $n=100$ normally distributed data simulating
|
||||
the weight of Bengal tiger males with mean 220\,kg and standard
|
||||
deviation 30\,kg. Check the actual mean and standard deviation of
|
||||
the generated data. Do this, let's say, five times using a
|
||||
for-loop. Then increase $n$ to 10\,000 and run the code again. It is
|
||||
so simple to measure the weight of 10\,000 tigers for getting a
|
||||
really good estimate of their mean weight, isn't it?
|
||||
really good estimate of their mean weight, isn't it? Finally plot
|
||||
from the last generated data set of tiger weights the first 1000
|
||||
values as a function of their index.
|
||||
\end{exercise}
|
||||
|
||||
Other pdfs (rand(), gamma).
|
||||
\subsection{Uniformly distributed data}
|
||||
\code{rand()}
|
||||
|
||||
randi()
|
||||
\subsection{Other distributions}
|
||||
|
||||
plot random numbers
|
||||
\subsection{Random integers}
|
||||
\code{randi()}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\section{Static nonlinearities}
|
||||
|
||||
Example: mechanotransduciton!
|
||||
|
||||
draw (and plot) random functions
|
||||
draw (and plot) random functions (in statistics chapter?)
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\section{Dynamical systems}
|
||||
|
||||
Reference in New Issue
Block a user