Regions_of_probability: Regions of probability

Regions_of_probabilityR Documentation

Regions of probability

Description

These binary operators return a vector of length 2, describing the desired probability region.

Usage

a %>x>% b

a %>X>% b

a %<X<% b

a %<x<% b

a %>=X>=% b

a %>=x>=% b

a %<=X<=% b

a %<=x<=% b

a %>=X>% b

a %>=x>% b

a %>X>=% b

a %>x>=% b

a %<=X<% b

a %<=x<% b

a %<X<=% b

a %<x<=% b

Arguments

a

scalar. when referring to a discrete random variable, use the syntax "L" after the number.

b

scalar. when referring to a discrete random variable, use the syntax "L" after the number.

Value

A vector of lenght 2.

Examples

# Example 1 - Discrete
2L %>x>% 5L
2L %>X>% 5L
2L %<X<% 5L
2L %<x<% 5L
2L %>=X>=% 5L
2L %>=x>=% 5L
2L %<=X<=% 5L
2L %<=x<=% 5L
2L %>=X>% 5L
2L %>=x>% 5L
2L %>x>=% 5L
2L %>X>=% 5L
2L %<=X<% 5L
2L %<=x<% 5L
2L %<X<=% 5L
2L %<x<=% 5L

# Example 2 - Continuous
2 %>x>% 5
2 %>X>% 5
2 %<X<% 5
2 %<x<% 5
2 %>=X>=% 5
2 %>=x>=% 5
2 %<=X<=% 5
2 %<=x<=% 5
2 %>=X>% 5
2 %>=x>% 5
2 %>x>=% 5
2 %>X>=% 5
2 %<=X<% 5
2 %<=x<% 5
2 %<X<=% 5
2 %<x<=% 5


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