syscalls
Last edited: August 8, 2025syscalls are public functions that allow user land operations to access system-level services (such as reading a sector) which otherwise is locked in kernel mode because they require special privileges.
These functions are called completely isolated to another function: 1) private stack frame 2) private memory, etc.
open
, close
, read
, write
kernel mode
kernel mode allows superuser function access such as reading sectors, etc. which would be dangerous if public.
file
open
int open(const char *pathname, int flags, mode_t mode);
Flags are a bitwise OR operations: you have to open with O_RDONLY
(read only), O_WRONLY
(write only), or O_RDWR
(both read and write). This returns \(-1\) if the reading fails.
System Modeling
Last edited: August 8, 2025Goal: model systems such that we can simulate them for off line validation.
Procedure for Building Models
- select a model class
- select the parameters for the model class
- validate the model
System Specification
Last edited: August 8, 2025Metric
Sometimes we can just get a specification easily from just a metric, like (“the aircraft can’t be more than 50 meters apart”)
value at risk
see value at risk
composite metrics
weighted sum method
depends on how you care about each value, perform weighted sum and optimizes over a single metric \(\sum_{i=1}^{n} w_{i}f_{i}\qty(\tau) = w^{T}f\qty(\tau)\)
But, coming up with the weights is a bit hard! So we get them by asking pairwise questions with Preference Elicitation
T twiddle
Last edited: August 8, 2025Suppose \(T \in \mathcal{L}(V,W)\). Define a \(\widetilde{T}: V / (null\ T) \to W\) such that:
\begin{align} \widetilde{T}(v+ null\ T) = Tv \end{align}
so \(\widetilde{T}\) is the map that recovers the mapped result from an affine subset from the null space of the map.
\(\widetilde{T}\) is well defined
Same problem as that with operations on quotient space. We need to make sure that \(\widetilde{T}\) behave the same way on distinct but equivalent representations of the same affine subset.
t-statistics
Last edited: August 8, 2025confidence intervals, a review:
\begin{equation} statistic \pm z^*\sigma_{statistic} \end{equation}
Frequently, we don’t have access to \(\sigma\) and hence have to guestimate. When we have a sample means and a proportion, we have ways of guestimating it from the standard error (available on the single-sample section of the AP Statistics formula sheet.)
However, for means, the standard error involves! \(\sigma\). How do we figure \(\sigma\) when we don’t know it? We could use \(s\), sample standard deviation, but then we have to adjust \(z^*\) otherwise we will have underestimation. Hence, we have to use a statistic called \(t^*\).