probnormal: Undertanding the probability of the normal distribution

View source: R/probnormal.R

probnormalR Documentation

Undertanding the probability of the normal distribution

Description

Using a graphical visualization, it is possible to understand the probabilities involved in a normal distribution.

Usage

probnormal(
  a = 1,
  b = 2,
  col = "lightblue",
  mean = 0,
  sd = 1,
  type = 1,
  rounding = 4,
  zang = 0,
  xang = 0
)

Arguments

a

lower limit. The default is 1.

b

upper limit. The default is 2, and b must be greater than a.

col

plot color. The default is col = "lightblue".

mean

parameter. The default is 0.

sd

parameter. The default is 1.

type

type of visualization of the probability region plot. Default is 1, others: 2, 3, 4, 5, 6. See Details.

rounding

Numerical object. Rounds the values in its first argument to the specified number of decimal places (default 4).

zang

Angle of the values on the Z-axis. Default is zang = 0.

xang

Angle of the values on the X-axis. Default is xang = 0.

Details

  • ⁠type = 1,2⁠: a and b must be greater than mean;

  • ⁠type = 3,4⁠: a and b must be less than mean;

  • ⁠type = 5,6⁠: a and b can be any real value.

Examples

## Not run: 
probnormal(type = 2)
probnormal(-1, 0, type = 3)
probnormal(-1, 0, type = 4)
probnormal(-1, 0, type = 5)
probnormal(-1, 2, type = 5)
probnormal(1, 2, type = 5)
probnormal(1, 2, type = 6)

## End(Not run)



leem documentation built on April 3, 2025, 6:04 p.m.

Related to probnormal in leem...