Skip to contents

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
#> [1] 1 6
2L %>X>% 5L
#> [1] 1 6
2L %<X<% 5L
#> [1] 3 4
2L %<x<% 5L
#> [1] 3 4
2L %>=X>=% 5L
#> [1] 2 5
2L %>=x>=% 5L
#> [1] 2 5
2L %<=X<=% 5L
#> [1] 2 5
2L %<=x<=% 5L
#> [1] 2 5
2L %>=X>% 5L
#> [1] 2 6
2L %>=x>% 5L
#> [1] 2 6
2L %>x>=% 5L
#> [1] 1 5
2L %>X>=% 5L
#> [1] 1 5
2L %<=X<% 5L
#> [1] 2 4
2L %<=x<% 5L
#> [1] 2 4
2L %<X<=% 5L
#> [1] 3 5
2L %<x<=% 5L
#> [1] 3 5

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