@cfr How can I write the result in frac form of this list?
\documentclass[tikz,border=5pt,12pt]{standalone}
\usepackage[edges]{forest}
\usepackage{siunitx}
\sisetup{output-decimal-marker={,}}
\usetikzlibrary{shadows,arrows.meta}
\begin{document}
\forestset{%
probability tree/.style={%
TeX={%
\pgfmathsetmacro{\a}{1/3}%
\pgfmathsetmacro{\ab}{1/7} %
\pgfmathsetmacro{\notab}{1/6}%
\pgfmathsetmacro{\anotb}{1-\ab}%
\pgfmathsetmacro{\nota}{1-\a}%
\pgfmathsetmacro{\notanotb}{1-\notab}%
},
for tree={
% nodes
\documentclass[tikz,border=5pt,12pt]{standalone}
\usepackage[edges]{forest}
\usepackage{siunitx}
\sisetup{output-decimal-marker={,}}
\usetikzlibrary{shadows,arrows.meta}
\begin{document}
\forestset{%
probability tree/.style={%
TeX={%
\pgfmathsetmacro{\a}{1/3}%
\pgfmathsetmacro{\ab}{1/7} %
\pgfmathsetmacro{\notab}{1/6}%
\pgfmathsetmacro{\anotb}{1-\ab}%
\pgfmathsetmacro{\nota}{1-\a}%
\pgfmathsetmacro{\notanotb}{1-\notab}%
},
for tree={
% nodes