diff --git a/.nojekyll b/.nojekyll index 796047ecf..c95b8ac77 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -55f3eddd \ No newline at end of file +f37b9049 \ No newline at end of file diff --git a/Linear-models-overview.html b/Linear-models-overview.html index 94bd64fe8..00c0e6ab5 100644 --- a/Linear-models-overview.html +++ b/Linear-models-overview.html @@ -3926,7 +3926,7 @@
coef(cvfit, s = "lambda.1se")
#> 4 x 1 sparse Matrix of class "dgCMatrix"
#> s1
-#> (Intercept) 34.2044
+#> (Intercept) 34.1090
#> age .
-#> weight -0.0926
-#> protein 0.8582
Definition 5.1 (Survival function)
The survival function \(S(t)\) is the probability that the event time is later than \(t\). If the event in a clinical trial is death, then \(S(t)\) is the expected fraction of the original population at time 0 who have survived up to time \(t\) and are still alive at time \(t\); that is:
+Given a random time-to-event variable \(T\), the survival function \(S(t)\) is the probability that the event time is later than \(t\). If the event in a clinical trial is death, then \(S(t)\) is the expected fraction of the original population at time 0 who have survived up to time \(t\) and are still alive at time \(t\); that is:
\[S(t) \stackrel{\text{def}}{=}\Pr(T > t) \tag{5.1}\]
ggplotly(HL_plot)
wcgs_response_resid_plot |> ggplotly()
We can see a slight fan-shape here: observations on the right have larger variance (as expected since \(var(\bar y) = \pi(1-\pi)/n\) is maximized when \(\pi = 0.5\)).
@@ -3992,8 +3992,8 @@|> ggplotly() wcgs_resid_plot1
Theorem B.7 (Density function is derivative of CDF) The density function \(f(t)\) or \(\text{p}(T=t)\) for a random variable \(T\) at value \(t\) is equal to the derivative of the cumulative probability function \(F(t) \stackrel{\text{def}}{=}P(T\le t)\); that is:
\[f(t) \stackrel{\text{def}}{=}\frac{\partial}{\partial t} F(t)\]
Theorem B.8 (Density functions integrate to 1) For any density function \(f(x)\),
+\[\int_{x \in \mathcal{R}(X)} f(x) dx = 1\]
+Definition B.10 (Hazard function) The hazard function for a random variable \(T\) at value \(t\) is the conditional density of \(T\) at \(t\), given \(T\ge t\); that is:
\[h(t) \stackrel{\text{def}}{=}p(T=t|T\ge t)\]
If \(T\) represents the time at which an event occurs, then \(h(t)\) is the probability that the event occurs at time \(t\), given that it has not occurred prior to time \(t\).
Definition B.11 (Expectation, expected value, population mean ) The expectation, expected value, or population mean of a continuous random variable \(X\), denoted \(\mathbb{E}\left[X\right]\), \(\mu(X)\), or \(\mu_X\), is the weighted mean of \(X\)’s possible values, weighted by the probability density function of those values:
\[\mathbb{E}\left[X\right] = \int_{x\in \mathcal{R}(X)} x \cdot \text{p}(X=x)dx\]
@@ -864,7 +875,7 @@Theorem B.8 (Expectation of the Bernoulli distribution) The expectation of a Bernoulli random variable with parameter \(\pi\) is:
+Theorem B.9 (Expectation of the Bernoulli distribution) The expectation of a Bernoulli random variable with parameter \(\pi\) is:
\[\mathbb{E}\left[X\right] = \pi\]