--- myst: substitutions: bloc: stocha: python: 6-12 cpp: 5-11 trunc: python: "14" cpp: "13" --- ```{include} /../core/dataserver/attribute/introducing_tstochastic_attribute/student_title.md ``` ```{warning} This distribution is available only if the {{root}} "mathmore" feature has been installed when your {{root}} version was brought (you can check this by running `root-config --has-mathmore`. If not found, this law cannot be used. ``` ```{include} /../core/dataserver/attribute/introducing_tstochastic_attribute/student_equation.md ``` {{ uranie }} code to simulate an student random variable is: {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/attribute/" + language + "/student." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc["stocha"][language] + "\n" + "```" }} ```{include} /../core/dataserver/attribute/introducing_tstochastic_attribute/student_figure.md ``` Is it also possible to set boundaries to the infinite span of this distribution to create a truncated Student law. This can be done by calling the following method: {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/attribute/" + language + "/student." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc["trunc"][language] + "\n" + "```" }} The resulting PDF, CDF and inverse CDF, with and without truncation, can be seen, in this case, in {numref}`dataserver_tstudent_trunc_distribution` for a given set of parameters and various boundaries. {{ "```{" "figure" "} " + parent_dir + "/roottest/build/uranie/doc/dataserver/attribute/python/TStudentTruncatedDistribution.png\n" ":align: center\n" ":name: dataserver_tstudent_trunc_distribution\n" + figure_scale + "\n" "\n" "Example of PDF, CDF and inverse CDF for a Student truncated distribution.\n" "```" }}