exercise:8cbe694d43: Difference between revisions

From Stochiki
(Created page with "<div class="d-none"><math> \newcommand{\NA}{{\rm NA}} \newcommand{\mat}[1]{{\bf#1}} \newcommand{\exref}[1]{\ref{##1}} \newcommand{\secstoprocess}{\all} \newcommand{\NA}{{\rm NA}} \newcommand{\mathds}{\mathbb}</math></div> Write a program to simulate the random variables whose densities are given by the following, making a suitable bar graph of each and comparing the exact density with the bar graph. <ul><li> <math>f_X(x) = e^{-x}\ \ \mbox{on}\,\, [0,\infty)\,\, (...")
 
No edit summary
 
Line 1: Line 1:
<div class="d-none"><math>
Write a program to simulate the random variables whose densities are given by the following, making a suitable bar graph of each and
\newcommand{\NA}{{\rm NA}}
\newcommand{\mat}[1]{{\bf#1}}
\newcommand{\exref}[1]{\ref{##1}}
\newcommand{\secstoprocess}{\all}
\newcommand{\NA}{{\rm NA}}
\newcommand{\mathds}{\mathbb}</math></div> Write a program to simulate the random variables whose
densities are given by the following, making a suitable bar graph of each and
comparing the exact density with the bar graph.
comparing the exact density with the bar graph.
<ul><li> <math>f_X(x) = e^{-x}\ \  \mbox{on}\,\, [0,\infty)\,\,  
<ul style="list-style-type:lower-alpha"><li> <math>f_X(x) = e^{-x}\ \  \mbox{on}\,\, [0,\infty)\,\,  
(\mbox{but\,\,just\,\,do\,\,it\,\,on\,\,} [0,10]).</math>
(\mbox{but\,\,just\,\,do\,\,it\,\,on\,\,} [0,10]).</math>
</li>
</li>

Latest revision as of 01:12, 14 June 2024

Write a program to simulate the random variables whose densities are given by the following, making a suitable bar graph of each and comparing the exact density with the bar graph.

  • [math]f_X(x) = e^{-x}\ \ \mbox{on}\,\, [0,\infty)\,\, (\mbox{but\,\,just\,\,do\,\,it\,\,on\,\,} [0,10]).[/math]
  • [math]f_X(x) = 2x\ \ \mbox{on}\,\, [0,1].[/math]
  • [math]f_X(x) = 3x^2\ \ \mbox{on}\,\, [0,1].[/math]
  • [math]f_X(x) = 4|x - 1/2|\ \ \mbox{on}\,\, [0,1].[/math]