Could anybody help to build charts like in the picture?
This is the furthest I can go. Specially blocked in the charts with jumps and curved:
\documentclass[tikz,border=3mm,preview]{standalone}
\usetikzlibrary{arrows.meta,positioning,quotes}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}[>={Triangle[]}
]
% coordinate
\draw[->] (-0.1,0) node[below left] {0}
-- (3,0);
\draw[->] (0,-0.1) -- (0,3.5);
% horizontal line
\draw (-0.1,3.5) node[above] {$_{t}p_{x}^{'^{(1)}}$} -- + (0,0);
\draw (3.3, 0) node[left] {$t$} -- + (0,0);
% vectors
\path[draw=red, fill=red, ultra thick]
(0,2) to [pos=0.5] + (2,-0.3)
(2,1.7) to [pos=0.9] + (3,-0.7);
\end{tikzpicture}
\end{document}
Thanks for your support!!!
Updating*
Next step would be to draw the following graph:
and I was almost able to do for both figures it with the following code:
\documentclass[tikz,border=3mm,preview]{standalone}
\usetikzlibrary{arrows.meta,decorations.pathreplacing,positioning,quotes}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}[
>={Triangle[]}
]
% axes
\draw[->] (-0.1,0) -- (3.5,0.0) node[right] {$t$};
\draw[->] (0,-0.1) -- (0,3.5) node[above] {$_{t}p_{x}^{'^{(3)}}$};
\node[below left] at (0,0) {0};
% curve
\path[draw=red, ultra thick]
(0,2) node[left] {$1$} -- ++ (1,0.0) -- + (0.0,0.0)
(1,1.69) -- ++ (1,0) -- + (0,0)
coordinate[midway,pin=above:$1-\frac{1}{2}q'^{(3)}_x$] (a)
(2,1.4) -- ++ (0.5,0) -- + (0,0)
coordinate[midway,pin=right:$1-q'^{(3)}_x$] (b);
% dashed line
\draw[densely dashed]
(0,1.7) -| (1,0) node[below] {$1/2$}
(2,1.4) |- (1,0) %node[below] {$1$};
\end{tikzpicture}
\begin{tikzpicture}[>={Triangle[]}
]
% axes
\draw[->] (-0.1,0) -- (3,0.0) node[below] {$t$};
\draw[dashed] (0.75,0) -- (0.75,1.5) node[below] {$1/2$};
\draw[dashed] (1.55,0) -| (1.55,0.93) node[below] {$1$};
\draw[->] (0,-0.1) -- (0,3.5) node[above] {$_{t}p_{x}^{'^{(\gamma)}}$};
\node[below left] at (0,0) {0};
% curves
\path[draw=red, ultra thick]
(0,1.9) node[left] {$1$}
.. controls + (2mm,-1mm) and + (1mm,-0.5mm) .. (0.7,1.65)
coordinate[midway,pin=above right:$p'^{(1)}_xp'^{(2)}_x$ (1)] (a)
(0.75,1.5) .. controls + (2mm,-2mm) and + (2mm,-1mm) .. (1.5,1.15)
coordinate[midway,pin=right:$p'^{(1)}_xp'^{(2)}_x\Big(1-\frac{1}
{2}q'^{(3)}_{x}\Big)$] (a)
(1.65,0.95) .. controls + (-2mm,1mm) and + (-3mm,0.5mm) .. (1.9,0.9)
coordinate[midway,pin=below right:$p'^{(1)}_xp'^{(2)}_x(1-q'^{(3)}_{x})$](b);
% dashed line
\draw[densely dashed]
%(0.75,0) -- (0.75,1.5) node[below] {$1/2$}
%(1.55,0) -| (1.55,0.93) %node[below] {$1$};
% brace
%\draw[decorate,decoration={brace,mirror,raise=0.5mm}]
%(0,2) -- coordinate[left=2mm,
%pin=below left:$q^{(\gamma)}_x$] (a) (0,1);
\end{tikzpicture}
\end{document}
However two problems arised:
1) The x-axis, as I am not able to place the coordinates properly because in one of them I am able to place it where needed but the dashed line has to be only vertical, whereas in the other despite of having the vertical dashed line, the coordinate is not possible to place it in the x-axis properly.
2) In the original charts can be seen a dot at the beginning of each piecewise function which I am not able to reproduce it.
3) Finally in the curved chart, I am having problems to make them exactly and proportionally curved one with the following as can be seen with my code. Also the position of the equations cannot be placed but above, above-right, above-left, right, left or below, without playing with them around (in any case this is a minor issue not very important)
Hope it is clear what I am trying to get.
Thanks for your support!!!