pystats.dnorm ============= .. py:module:: pystats.dnorm Functions --------- .. autoapisummary:: pystats.dnorm.dnorm Module Contents --------------- .. py:function:: dnorm(x, mean=0, sd=1) Calculates the Probability Density of the normal distribution at a given point. :param x: The point at which to evaluate the PDF. :type x: float :param mean: The mean (average) of the normal distribution. Default is 0. :type mean: float, optional :param sd: The standard deviation of the normal distribution. Default is 1. :type sd: float, optional :returns: **result_df** -- A DataFrame containing the input value and the corresponding PDF value. :rtype: pandas.DataFrame :raises ValueError: If `sd` is zero or negative, as the standard deviation must be a positive number. :raises TypeError: If any of the input parameters (`x`, `mean`, `sd`) are not numerical. .. rubric:: Example >>> dnorm(1.96, mean=0, sd=1) x PDF 0 1.96 0.058440 >>> result_df = dnorm(1.96, mean=0, sd=1) >>> result_df x PDF 0 1.96 0.058440