instruction stringlengths 9 38.7k |
|---|
I have some data that I would like to use to do some predictions. The data is some value over time and I want to predict the occurrence or not of some behavior. So for example I have the data d_t1, d_t2, d_t3, d_t4 and treating these as four features I would like a binary classification: A happens,A does not happen.
N... |
I've been running some Monte Carlo simulations in R to determine the impact on $MSE$ of rotating Pearson's $r$ (the sample statistic, not its data) by itself at various angles, for multiple levels of population correlation and $n$. To be clear, I'm generating the samples using mvrnorm with empirical = FALSE, rotating u... |
After concluding the d-separation procedure (ancestral graph -> moral graph -> removing directed links), I am left with two nodes that are connected and a conclusion that they are "not necessarily conditionally independent". Does that mean they are dependent?
|
Context:
I am using a transformer for time series prediction.
The target and predicted tensors are both of size (8, 10, 181) which represents (batch_size, number of predictions, no. of elements in vector), where the last dimension is a 181-element vector representing the energy distributed across angles from 0-180. It ... |
For independent samples $X_1,\cdots,X_n $from $\textit{Bernoulli }(p_1)$
and $Y_1,\cdots,Y_m$ from $\textit{Bernoulli }(p_2)$,where $n$ and $m$ are large.
Then,the Central Limit Theorem tell us $\frac{\bar X_n-p_1}{\sqrt{\frac{p_1(1-p_1)}{n}}}$ converges in distribution to $\textit{Normal }(0,1)$ and $\frac{\bar Y_m-p_... |
I want to find the maximum of my multidimensional optimization surface, but I want to find not just the local maximum (highest), but the maximum that seems to me the most stable from my point of view. He should be not only tall but also wide
I will explain in the picture with one-dimensional space
The picture shows tw... |
I have paired data (from a pre/post-test) for which I assume that the variance differs between groups (again between pre/post). Visually, this assumption appears to check out and there is less variance in the post-test group than there is in the pre-test group. How would I go about constructing a statistical test for t... |
I am trying to create new variables after multiple imputation.
I have the following variables:
data: mydata
total number of observations=500
HDL: continuous (no missing values)
Physical activity: factor (63 case are missing)
Smoking: binary (90 case are missing)
CVD: binary (no missing values)
My predictor is HDL and a... |
I have a training dataset (95 840 rows) with:
str(train)
$ NUM_DEVICE_ID_COUPON : Factor w/ 9 levels "8647","8666",..: 3 4 5 8 9 1 2 3 4 6 ...
$ TEMPERATURE_AIR : num 6.29 6.13 6 7.05 8.16 ...
$ MonthNumber : Factor w/ 12 levels "1","2","3","4",..: 10 10 10 10 10 10 10 10
$ HOURS ... |
I want to compare two means.
The first one is the mean over several questions, in which people had to decide how they would split a hundred euro between two different persons.
The second mean is the same one, but with one additional question added in the mean!
Now I want to test for significant differences in these two... |
I'm reading about Design of Experiments via various textbooks (e.g. Montgomery's), and powerful global optimization methods (such as Ant Colony Optimization) are not used. They rely only on a basic sampling scheme in the search space; full factorial or otherwise, and then fit a linear model (perhaps with quadratic and ... |
How Contrastive Learning based on (SimCLRv2 approach) is compared to regular classification (VGG, Resnset, etc) with Data Augmentation.
It seems to me, that it should have very similar performance.
I'm wrong?
What are the advantages of Contrastive learning (SimCLR approach) ?
Big Self-Supervised Models are Strong Se... |
This is probably a very basic question. But I spent a good part of 2 weeks trying to understand this (by reading textbooks, searching on internet, listening to lectures) but haven't gotten anywhere close:
When I do a NNM to determine the causality of a treatment, would I not just get every treatment element matched wit... |
I am working on an unsupervised anomaly detection project and used the Isolation Forest and AutoEncoders (a normal one and a VAE) to detect anomalies. The AutoEncoders' prediction are identical but are different than the Isolation Forest's prediction.
Since I a have One-Hot-Encoded dataset which has 200 features I wan... |
Let $X=[X_1...X_n]$ be some random variables in which $X_i$ are not independent. For example, you may envision the observations came from some stochastic process. Let $\ell(\theta; X)$ be the log-likelihood, whose scores are $s=\nabla\ell$. It is easy to show that even if $X_i$ are not independent, $\mathbb{E}s=0$ stil... |
I have been trying to assign weights to set of objects. The problem that I have is as following.
I have a set of objects ordered either ascending or decending.
. Each object shall be provided a weight that is in between 0 and 1, either ascending or decending corresponding to the order of the objects.
. The weights cann... |
Portfolio analysis is being conducted using R.
We use the neweywest function belonging to the sandwich package, and the brief description is as follows.
j <- lm(Y ~ 1)
coeftest(j, vcov.=neweywest (j, adjust=T, prewhite=F))
How do I apply lag in neweywest test?
There are five portfolios in the same time series and ... |
Let the "ordinary-least-squares regression of $Y$ on $X$" be given by
$$\hat{y}_i = \hat{\beta}_0 + \hat{\beta}_1 x_i\text{.}$$
Suppose I run the following:
The OLS regression of $Y$ on $X$
The OLS regression of $Y$ on $Z$
The OLS regression of $X$ on $Z$
and in all three cases, their slope coefficients $\hat{\beta}_... |
I have a low dimension (only 8 dimension) Time Series dataset of simple z-score standardized numerical data. Number of raw data point is about 2000 x 8.
I tried running PCA on the dataset by splitting the data into 10 periods of time, and I got 8 PCs obviously for each 200 data points.
My goal is not to reduce the dime... |
I am using a linear regression model with 465 datapoints to predict crop yield of wheat. The data points are spilt into training and testing sets in 80:20 ratio. Initially, I tried linear regression without removing the outliers. This is the result I got -
{'mae': 872.8597882968111,
'mse': 1416762.85492493655,
'rmse'... |
I wonder how to interpret this plot. I know, in general, that a qqplot depicts the quantiles of the data against the quantiles of the normal function.
How do I apply this to this plot?
|
I have a large sample of values, bounded in $[0, 1]$, divided into two conditions A and B, and I want to test the significance of one condition A having higher value than condition B.
For the details, these values are bootstrap scores for a given relationship (A or B) of species taxa in many different phylogenetic gene... |
I'm trying to find the Z score from a confidence level, for a Z test. I found posts with questions pretty close to this, but I'm still not sure of the general solution.
These are the data I have:
A car battery manufacturer has a 5 year warranty. The engineer supposes the battery will break before 5 years. At 2% signifi... |
Branching off this question: How to project a new vector onto PCA space?
Let's say our input matrix is of dimensionality, e.g. 90 samples and 10000 features.
If we run PCA on this high-dimensional data we get:
# Sudo Code in an R like language.
data = read.csv("highdimdata.csv")
dimensions(data) # Ret... |
I'm convinced that homoscedasticity (of errors) is not an assumption (at least not explicit) for OLS regression. Also, even though WLS is advocated for heteroscedastic errors, OLS is not particularly bad, at least when the heteroscedasticity is limited as has been discussed by Gung in his answer. However, let's say tha... |
Suppose I want to compare the performance of several classification algorithms on a data set to choose the best algorithm to use with that data set. To do this, I run logistic regression, k-nearest neighbors, and naive Bayes using k-fold cross validation on the data set. Based on the results from the k-fold cross valid... |
Find the Generalized likelihood ratio test (GLRT) for $H_0: \lambda = \lambda_0$ when $H_A: \lambda \ne \lambda_0$ for $X_1 ... X_n$ taken from $X \sim Exp(\lambda;x)$, with a test size of $0.06$, obtain the critical region.
Here's what I have tried:
$L(\lambda_0;x) = \prod_{i=1}^nf(x_i;\lambda_0) = \prod_{i=1}^n\lambd... |
You have risks $X_1$, $X_2$, ...
(they are assumed to be independent, but not necessarily identically distributed)
and
$S_n= X_1 + X_2 + \cdots +X_n$
QUESTION: under what reasonable conditions do we have that
$\mathbb{E}[Xi | S_n]$ converges to $\mathbb{E}[Xi]$?
|
Lavaan newbie here. I've been trying to specify a latent growth curve model in R for a few days now and been going through all the tutorials on the Lavaan website. The theoretical path is reasonably clear to me, however I am failing to translate my theoretical ideas (as in the attached path diagram) into a working lav... |
Lets' say we have 2 models and we train both of them on the same data for the same number of epochs. When we monitor the validation loss, we realize that the point where the validation loss stops decreasing and starts increasing for model 1 shows up at epoch 5 while this point shows up at epoch 25 for model 2. What cou... |
I've come across numerous tables published online categorizing Cramér's V effect sizes for categorical tables with degrees of freedom $\leq$ 5, for example:
$$
\begin{array}{c|lcr}
\text{Degrees of freedom} & \text{Negligible} & \text{Small} & \text{Medium} & \text{Large}\\
\hline
\text{1} & \lt 0.10 & [0.10, 0.30) & [... |
I'm involved in a study where we want to examine the effects of two different types of implant on a variety of health outcomes. We've collected a ton of data on about 200 patients who received either type of implant and we were about to examine outcomes but we realized that our patient populations for each implant typ... |
I want to analyze my data with a regression of certain scores on age, but I have two age clusters: a small group of younger participants (age 20-30, n=70) and a large group of middle aged - older participants (age 50-90, n=1000). The data looks a bit like in the attached image. Intuitively I don't think a single regres... |
In Ali, Richardson and Spirtes (2009) (open copy here) and many other papers in the causal DAG literature, there is the notion of a "discriminating path". The definition is:
A path $\pi = ⟨x,q_1,...,q_p,b,y⟩$ $(p \ge 1)$ is a discriminating path for $b$ in a DAG $G$ if:
$x$ is not adjacent to $y$,
$b$ is not an end-p... |
I'm not really used to VERY small samples, so I'm wondering what to do in the following situation:
I have 3 groups, A, B and C. Each of them consists of 3 observations. I want to test whether there is a difference, so actually a classical ANOVA problem, followed by some post-hoc analysis (I would like to use Tukey's te... |
I have a time series dataset geenrated from some electrophysiological data. I have a frequncy dataset and the matrix is quite sparse but huge, like it contains 0.005 s time bins for 2000+ neurons recorded over an hour so the matrix is huge. I am using this to train regressions in sklearn and I was wondering if there ... |
Neural networks are usually trained by calculating gradients using backprop and then performing gradient descent. I am not sure what are difficulties in training a neural network using alternating minimization?
Also, what is the order of computing gradient using backprop vs. naive gradient computation in neural network... |
A mixture of two distributions has density which is the weighted sum of the components:
$$f_{mix}(x) = p f_{1}(x) + (1-p) f_{2}(x).$$
What if the mixture weight is allowed to vary with the sample point?
$$f_{mix}(x) = p(x) f_{1}(x) + (1-p(x)) f_{2}(x).$$
That is, you need to know the sample $x$ before you can determine... |
Is anomaly detection only done using deep learning? Or can you use something like a random forest model to detect anomalies? For reference, I'm performing classification with a binary response. My dataset is fairly large (several million rows) with about 99.6% and 0.4% in each of the binary classes. I'm curious to see ... |
This question asks about a way to calculate the standard deviation of a standard deviation. The answer with most votes derives a formula for an unbiased estimator of $\text{SD}[s]$, which confuses me a bit, since $\text{SD}[s]$ denotes the standard deviation of the sample standard deviation. But then, what would an est... |
I want to perform a clustering on data with ~40 binary features. I was recommended the two-step approach by Chiu et al.. They basically use a BIRCH variant to determine pre-clusters and then perform agglomorative clustering on these. However, I cannot find an implementation of this two-step approach and generally strug... |
Sequential Probability Ratio Testing (SPRT) compares the log-likelihood ratio of the observed data under the null and alternative hypotheses to thresholds based on desired alpha and beta levels.
I am new to using this method and want to confirm that the null and alternative hypotheses should reflect the observed data r... |
I am not able to reproduce my Random Forest rfsrc results despite setting a seed. Each time I run the code below I see a different ordering to variables listed by order of importance.
set.seed(415)
fit1sjl <- rfsrc(Social_Jetlag_Comp ~ ., data=df, importance="permute",
ntree=2000)
What am I doing incorrectly? I... |
Log-log seems more conventional to plot a probability distribution to look for evidence of a heavy tail. Why is this the case? For data with a heavier tail than an exponential distribution, wouldn't log-linear be best, i.e., $log(f(x))$ vs. $x$? On that plot, an exponential function would be linear.
|
I have a dataset with nominal (unorderable categories), ordinal (orderable categories), and continuous/numerical variables. I am performing Cox Proportional Hazard Regression using the scikit-survival package in Python.
I have one-hot encoded the nominal variables (values are 0's and 1's). I have ordinal encoded the or... |
I am reading the Yoshua Bengio et al, Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation. After read this paper, I wonder how to establish a GFlowNet if I don't know all the States?
That is, I only have goals, such as maximum likelihood estimation or some generation models similar to MC... |
Adam optimizer is an adoptive learning rate optimizer that is very popular for deep learning, especially in computer vision.
I have seen some papers that after specific epochs, for example, 50 epochs, they decrease its learning rate by dividing it by 10.
I do not fully understand the reason behind it.
How do we do that... |
Let $X$ is a binary variable and $X = \{A, B\}$. The pdf of $X$ is $p(X = A) = .3 \ \ \ p(X=B) = .7$
So it's easy to calculate the entropy of $X$
$$.3 \times \log_2(1/.3) + .7 \times \log_2(1/.7) = 0.88$$
If someone tells me that $X = A$, how much is the information of this message?
Two understandings of information m... |
Suppose I have a survival data with the variables time: follow up time, event: event indicator(1 or 0) with 1 as an event and 0 as censored, treatment: treatment group (0 or 1) and covariates X1, X2, X3 AND X4.
First, I fit a logistic regression model to obtain the propensity scores. The outcome of logistic regression ... |
Let X be an N-dimensional multivariate normal, $X \sim N(\mu,\Sigma)$ where $\mu$ is Nx1 and $\Sigma$ is NxN. If we take a draw of $X$ from this distribution and then sort $X$ from largest to smallest, what is the distribution of the $k^\text{th}$ entry?
|
I have a dataset of customers and some of their characteristics, including the total worth of goods purchased. Essentially, I have transaction line items. My data looks something like this:
customer_ID char1 char2 char3 total_purchase
1 4 3 6 450
1 ... |
Bayes' Optimal Classifier is known to achieve the minimum error rate for a dataset $x_1, \ldots, x_n, x_i \in \mathbb{R}^d$. Suppose that each error had a cost associated with it. For example, in a binary classifier, classifying $y_i = 1$ when $y_i = 0$ would have a cost $\alpha$ and classifying the other way would hav... |
I'm looking for the pseudocode of fitting a random intercept model but haven't found it. Can you explain what is the procedure used to fit a random intercept model?
I'd like to know how each parameter's mean and variance estimates are obtained.
I'd also like to know how, given the fitted model, predictions are done on ... |
There is a popular Kaggle dataset on airline CSAT. It is a customer satisfaction survey using features of inflight services and travel procedures such as Gate Location, WiFi Quality, Flight Distance, Cabin Class etc. No one knows for sure, but it's believed to be taken from Delta, American and Alaska.
Since these type... |
I tried using nls() in R to fit the following expression to a set of data:
where g=9.8, alpha & B_0 are unknown, a = 0.01, z_0 = 0.3 such that:
theory <- as.formula(V~-(9.8)ab*(pi)(0.02^2)(T)(0.3-(0.5)(9.8)(T^2))exp(-a(0.3-(0.5)(9.8)*(T^2))^2))
where T = t and V = E(t) from the theory model
I was expecting a cubic-l... |
In Cryer and Chan the book Timer Series with Application in R. We find the following piece.
Consider the first-order autoregressive process, abbreviated AR(1), in detail.
Assume the series is stationary and satisfies.
$Y_{t} = \phi Y_{t - 1} + e_{t}$
Where $e_{t}$ is a white noise process.
We assume that the process m... |
I'm applying PCA and LDA on my gene expression microarray data to reduce dimensionality. It has ~20,500 features. I tried to visualize the first 3 components from both the methods in a 3d scatter plot and both the methods yielded well separated clusters for the 5 classes of cancer. My goal is to make a classification m... |
Could you highlight useful examples when it makes sense to use mixed models in physics / engineering?
I still wonder when I should use a mixed model and when not.
|
There are 4 actions available. Each action has its own varying number of categories.
The target is to predict an action along with the category of action, given input data.
Assume actions are a,b,c,d
Assume categories:
(1)under a: a1,a2,a3,a4.
(2)under b: b1,b2.
(3)under c: c1.
(4)under d:d1.
Example prediction:1)( act... |
I have trouble understanding the regression output that I created for my beginners class of R. I use two binary variables and ask whether the fact that someone volunteers raises hers or his life satisfaction.
I am familiar with the interpretation of numeric variables as "increase in X leads to decrease in Y". But how d... |
Firstly, please allow me to preface this by saying that perhaps I do not as yet have sufficient data, hence why I am observing what I am actually observing. I am looking to address this issue.
Now on to what I am actually observing.
I am trying to determine whether the stock holdings of "skilled" managers contain info... |
For a random vector $X=(X_1, ..., X_n)^\intercal$ the expectation value can be written as $\mathbb{E}[X] = (\mathbb{E}[X_1], ..., \mathbb{E}[X_n])^\intercal$ according to equation 2 in https://en.wikipedia.org/wiki/Multivariate_random_variable
My question is now how this would look like if we have a conditional expecta... |
I measured a physiological performance of a specie (n=16) at 8 different temperatures, the same animal was used for each temperature and are identified by their "ID".
I want to model the non-linear effect of temperature on this physiological performance, taking into account the sex of the animal (6 females and 10 males... |
I have a data set on student performance on various courses. The dependent variable is the grade of the student. The independent variables include "total study time ", "number of absences", and "access to Internet" which can be changed by the student.
What analysis methods are appropriate to analyze the effect of chang... |
Actually the whole question is in the title.
Can I somehow restore and build an optimization surface after optimization with a heuristic algorithm ...
Probably, you must first fill / interpolate those values that the algorithm did not calculate in the fitness function, and then reduce the dimension
I'm wondering if t... |
I am interested in the moderating effect of a voter's political knowledge on the effect of a voter's candidate evaluations on vote choice. I am trying to estimate conditional logit models to analyze this. At least that is what they are called in political science, I have already noticed that the terminology here is not... |
I am using neural networks (created in R: neuralnet) to predict county-level food insecurity. I want to use Olden's connection weight approach to analyze relative variable importance (NeuralNetTools::olden). However, the relative variable importance metrics vary quite wildly from trial to trial, due to the existence of... |
$$ Fa = \{f_w(x) =< w, x > +w0, w ∈ Rd \} $$
$$ Fb = \{f_i,θ(x) = 2 × {\mathbb{1}}x_i >θ − 1, i ∈ [1, d], θ ∈ R \} $$
$$ Fc = \{f_µ,_r(x) = 2 × 1||x−µ||2<r − 1, µ ∈ R
d
, r ∈ R \} $$
$$Fe = \{f_w,_{w0}(x) =< x, w > + < w0
, x >, w, w0 ∈ R
d \}$$
Here are 4 families of classifiers. I am suppose to identify their ability... |
I am interested in determining the covering number of a 1-layered neural network with a Lipschitz function $\sigma~:~\mathbb{R}^{d} \to [0,1]^{d}$ of Lipschitz constant 1. That is, consider a function space
$\mathcal{A} = \Big[{a(x) = \sigma(Wx + b)~:~\|W\|_{F} \leq 1, \|b_{0}\|_{2} \leq 1, W \in \mathbb{R}^{d \times ... |
A methodological question without data attached. I've been looking into applying joint models to survival analysis with time-dependent variables. Mainly I've been reading about Dr. Rizopoulos JM package in R, and I have some questions about using the joint model approach. I understand that it is frequently used when yo... |
I understand target encoding, which is the average of the target value by category using out-of-fold mean within each fold. although you get slightly different means for the same value of a categorical variable among different folds. An example (source):
Let's say we have 20-fold cross validation. we need somehow to
c... |
I would like a method that generalized metrics for multiclass. Including imbalanced classes.
This metric should be all against all.
I thought of Generalizing the Mathew's coefficient but not in the Cramer V fashion
|
I have some samples that move on a rail for a few minutes. During this time, some forces act on these samples.
For example, I have M samples, for each sample, I have N features that are measured L times for each sample. The dimension of my data is(M*L, N).
I want to do anomaly detection to predict the anomaly before it... |
I am evaluating a PCA on a set of 45 financial time series where EWMA (exponentially weighted moving averages) has been applied.
A small intro. An EWMA statistic has a form
$$
\hat{y}_t = \sum_s \lambda^s y(x_{t-s}) \big/\sum_s \lambda^s
$$
You can check here for more description.
First, I compute the EWMA mean and sta... |
I am currently working through Stef van Buuren's book Flexible Imputation of Missing Data and I am currently at Chapter 3.2: https://stefvanbuuren.name/fimd/sec-linearnormal.html.
The setup consists of a univariate imputation target $y$ and predictors that are collected in $X$. $X_{obs}$ contains the subset of $n_1$ ro... |
I am using machine learning to approach a balanced binary classification task.
Some of rows are more important/valuable than others, so getting them right is extra important. Therefore, to accommodate this, I decided to do two things.
Sample weighting (to emphasize more important points in the training process)
Custom... |
I have data for a simple 2-arm RCT, that looks as follows:
library(wakefield)
df <-
fabricate(
N = 50,
treatment = draw_binary(prob = 0.5, N = N),
age = age(n = N),
income = income(n = N),
female = draw_binary(prob = 0.5, N = N))
I am estimating the average treatment effect using linear... |
I am working with a dataset containing ~300 predictors and ~3000 observations and building a predictive model using elastic net (and hoping to generalize to an external validation set). While the majority of observations are complete cases, there are some observations with missing values in either some of the predictor... |
While studying KNN, I have come to see "Adaptive K-Nearest Neighbor algorithm" and I understand KNN but I wonder how "Adaptive K-Nearest Neighbor" work. I tried to find some materials but have failed to find a reasonable one, on the Internet, that I can approximately understand. Hope to hear some explanations.
|
This is a statement made in Rubin's Causal Inference Sec 12.5.1. I would take it under assumption of unconfoundedness framework.
"If the superpopulation covariate distributions are identical in two treatment groups, then true propensity score must be constant and vice versa."
Consider unconfounded experiment. Let $f(W|... |
I am trying to determine whether there is statistical significance from two groups of data. I have the data in terms of counts and proportions or percentages.
There are two columns which show the frequency of visits to their personal trainer based on receiving notifications about their fitness.
There are different noti... |
I am searching for a reference or proof for the following situation:
Let t_df denote a t-test statistic for given degree of freedom df. The null hypothesis being tested is H_0: $\delta$ <= 0. Typically, this hypothesis is tested on the edge of the null hypothesis, hence it is tested for $\delta = 0 $. Now, let $\Psi$(t... |
I'm looking for the formula to calculate the statistics and the significance level of Leemis's m. Wikipedia reports the statistics as
$$m = \sqrt{N}\cdot\max_{i=1}^9 \left\{ \left|\Pr (X \text{ has FSD}=i)-\log_{10}
\left( 1 + \frac 1 i \right) \right| \right\}\,$$
but I need to calculate the significance associated wi... |
Can someone help me understand the order of operations for this formula?
Lets say:
y_estimated = 10, 14, 11 #three different estimates that will be subbed into the formula
y_true= 12
R=3
I think it is supposed to be ((10-12)^2 + (14-12)^2 + (11-12)^2) > sqrt(ans) > ans/R > ans/y_true > *100
But I'm not really confid... |
Most statistics packages allow for generating samples from a prescribed distribution; usually, by applying the inverse CDF on a sample generated uniformly on [0,1].
Now, imagine that I would like to generate a sample following a distribution, but only if the sample is weighted (with arbitrary positive weights). Are the... |
I am doing hierarchical time series forecasting using fable package in R. I am using the optimal reconciliation method to reconcile the forecast. Here is the example code.
agg_sw <- df %>%
aggregate_key(productcategory/brand/sku, sales = sum(sales))
# Fit the model
ets_fit <- agg_sw %>%
model(ets = ETS(sales)) %>%... |
I am not sure how to handle calculating the standard deviation in my situation.
Four researchers (i.e., R1, R2, R3, and R4) are taking independent measurements of the same variable—the time that a subjects talks in a conversation. Let's say there are 6 subjects. Each subject can be grouped into one of 2 roles: A or B.
... |
I am currently going through the SVD intuition provided here. In the section "From intuition to definition", It says that,
First, note that any vector $\textbf{x}$ can be described using the
basis vectors $\textbf{v1}$ and $\textbf{v2}$ in the following way,
$$\textbf{x} = (\textbf{x}.\textbf{v1})\textbf{v1} + (\te... |
I am having a two armed clinical trial where I would like to measure the difference between restricted mean survival times for placebo and treatment arms.
If the difference is atleast "5" units, I will conclude that the treatment is effective.
So, my question is what should be my hypothesis like ?
I am thinking that a ... |
I'm trying to calculate the value of $E[\min(X^2, 1)]$ with $X \sim N(0,1)$.
My attempt is that
\begin{align}
\begin{split}
E[\min(X^2, 1)] &= E[1 | X^2 \geq 1] \cdot P(X^2 \geq 1) + E[X^2 | X^2 < 1] \cdot P(X^2 < 1) \\
&= P(X^2 \geq 1) + (E[X^2] / P(X^2 < 1)) \cdot P(X^2 < 1)
\end{split}
\end{align}
but obviously this... |
I'd like to derive the covariance matrix that defines a given ellipse.
Information I have:
length of major axis $\lambda_1$
length of minor axis $\lambda_2$
angle of rotation of the ellipse is $\theta$ degrees
determinant of the desired covariance matrix is $ = 1$
Given the four sets of the information above, is ther... |
Can you add regularization terms to any likelihood function you're trying to maximize? (e.g. L2/Tikhonov, Lasso terms)
I'm used to seeing this done with simple quadratic loss functions (e.g. for Tikhonov regularization, $Loss=(Y-\beta X)^T (Y-\beta X) + \alpha ||\beta||^2$), but can this be done during MLE? (even when ... |
I've compiled some data on how long sleep episodes are across 4 seasons. This is easy to visualize as a probability histogram (Y is probability, X is sleep episode duration). For example, there are 450 sleep episodes in the 12-15 minute duration bin for Spring, and 350 for Autumn. It's unclear to me if I can say that t... |
I was trying to understand the difference between Principal Component Analysis (PCA) and Canonical Covariate Analysis (CCA), and noticed that if you write them down to look as similar as possible, there's a generalization of the PCA that pops out:
$\DeclareMathOperator{\Var}{Var}$
$\DeclareMathOperator{\Cov}{Cov}$
$\ne... |
Consider the therapist data described in https://rpsychologist.com/r-guide-longitudinal-lme-lmer. We have patients ($j$) clustered with respect to therapists (i).
Let $u_{0ij} $ be patient-specific random intercept and $v_{0i} $ be therapist specific random intercept such that:
$u_{0ij} \sim \mathcal{N}( 0, \tau_u^2) \... |
Let $A_n$ be an event whose success probability $P(A_n)$ depends on the size, $n\in \mathbb{N}$, of a given sample.
Let $d$ be a fixed positive integer.
For the problem I am working on I can assume a sequential sample and derive - via a geometric argument - the following recurrence relation:
$$ P(A_{n+1}) = P(A_{n+1}|... |
I was given a database with prostate cancer patients measured for PSA (continuous) at two time points, prior and after treatment, using three drugs (categorical), including information about age (continuous) and tumor size (continuous).
The task is to propose a linear model for analyzing the data using PSA as an endpoi... |
A nice description of leverage in the sense that I am using it is given here so I will not repeat it.
Who originally defined leverage scores to be the diagonal elements of $X(X^TX)^{-1}X^T$?
|
I have been trying to understand the mechanics behind YOLO v3. I got stuck at the section which defines the calculation of bounding box.
Going through various blogs, I found that
The dimensions of the bounding box are predicted by applying a log-space transform to the output and then multiplying with an anchor.
Howev... |
The Gauss-Markov theorem considers "best" as "lowest mean square error (MSE)" and a recent version of the theorem shows OLS is not only BLUE but also BUE: https://www.ssc.wisc.edu/~bhansen/papers/gauss.pdf
When the "best" becomes "lowest mean absolute error (MAE)", is it the case that the best estimator is no longer OL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.