I'm trying to calculate the hazard function for a type of mechanical component, given a dataset with the start and failure times of each component. In the dataset, all components eventually fail.
First, I calculated the percentage of components that survived greater than 3 months as $s = 0.458$.
Second, I calculated the hazard function, assuming that the hazard function for failure is constant over each period, like this:
\begin{align} h(t) &= (1-s)^{t} \\ &= (1-0.458)^3 \\ &= 0.15922 \end{align}
where $t$ is the length of each period (in this case, 3 months, although I'm unsure about this).
However, the notes I'm following calculate the hazard function like this:
\begin{align} h(t) &= 1-0.458^{1/3} \\ &= 0.2292 \end{align}
The lack of parentheses and the different power confuse me. Am I, my notes, or both of us incorrect?