instruction stringlengths 9 38.7k |
|---|
The aim of my question can be better illustrated by this quote extracted from the third chapter of Elements of Statistical Learning (link to book):
I'm trying to understand why, given that the error term follows a Gaussian distribution with mean 0 and constant and finite variance, do the coefficients also follow a Gau... |
I'm planning to run a regression analysis to estimate [adjusted] relative risk of a binary outcome data (essentially, analyzing the relative risk or risk ratio of an event happening), using a number of independent variables with values ranging from 0-7 (discrete), with survey weight; therefore, I suppose the "survey" p... |
This question was asked six years ago but figured it was worth an update.
I'm attempting to filter news data based on a set of keywords. I think the ideal process for this would be some form of:
Input keyword list ->
Identify additional words that commonly occur with this seed list in vector space. ->
Tag all articles... |
Lets say I have a collection of tensors, each tensor representing a time series with 64 points and 4 features. The dimension of each tensor would be [64,4]. I am trying to classify these series. For that I am first passing these tensors into a Transformer Encoder (having 2 attention heads and 2 encoder layers) that out... |
I am solving the Laplace equation $\nabla^2 u = 0$ on a 2D equispaced grid (spacing $ h $) with boundary conditions $ u(x=0) = 1 $ and $ u(x=L) = 0 $. My solver is approximate, yielding a solution $ u_{\text{approx}} $ with local errors at each grid point. I derive a parameter $ M $ from $ u_{\text{approx}} $ as follow... |
I am using the Python package giotto-tda to calculate persistence diagrams of certain 3d point clouds using a Vietoris Rips filtration and euclidean distance. I am especially working with 1 and 2-d persistence, i.e. cycles and voids.
Question: Do anyone know if there's a way to get representatives of a homology class f... |
I am new to this. My study has three conditions (between subjects - low coordination, high coordination, high coordination with ostensive cues) and three repetitions of a game (within subjects - Game 1, Game 2, Game 3). The outcome variable is binary (i.e., participant's left the game, they did not leave the game).
I'v... |
My definition of a random vector is a vector $(x_{1},...,x_{n})$ that maps from a sample space to ${R}^{n}$. An example of this (in my understanding) would be a random process such as drawing one card from a deck. Let us say all potential suits of the card are the sample space {hearts, clubs, diamonds, spades}. An exam... |
I am trying to understand the backpropagation algorithm in a multi-layer perceptron environment.
Algorithm 6.4 Backward computation for the deep neural network of
algorithm 6.3, which uses, in addition to the input $\boldsymbol{x}$,
a target $\boldsymbol{y}$. This computation yields the gradients on
the activations $\... |
I would like to do a placebo test to ensure the result of my main staggered DID results. I have a country-level mandate that goes into effect in different years during my sample period, and in some countries, there was no mandate. I examine the effect of this mandate on firms' outcomes in an international sample from 2... |
My outcome is a child cognition scores (y). I will skip the exposure for now. My covariates are regular features like , childsex, Mother's BMI, AgeAtAssessment, Mother's Alcohol consumption, Mother's Tobacco use and Centers where the subjects were recruited for study.
The general data distribution shows random missing... |
If you have a roulette table that has 7,000,000 places and you have 10 balls (and only one ball can fit onto each number at every roll), how many rolls would it likely take for a ball to land on every number?
|
I'm not completely sure if this question has been asked before, but I couldn't find one that suit my problem so far.
So basically I am doing single cell analysis, and I have roughly > 100000 cells or samples (rows), and I calculated the pearson correlation between 2 variables (columns), in this case is gene expression ... |
Question
You can read the Machine Shop example in the SimPy documentation, however I have tried to put it into its mathematical description below so that reading Python is not necessary.
Suppose a workshop with $n$ identical machines.
Any machine is either working or broken, and each machine begins in the working state... |
Say $\mathbf{Y} \sim \mathcal{N}(\mathbf{\mu}, \mathbf{D})$ where $\mathbf{D}$ is diagonal and $A$ is any real matrix, how could you calculate $\mathbb{P}(\mathbf{Y}^T\mathbf{A}\mathbf{Y}>0)$?
In the case $\mathbf{A}$ is diagonal I can see that it would be possible to write $\mathbf{Y}^T\mathbf{A}\mathbf{Y}$ as a non... |
I am currently working on an analysis project involving simultaneous testing of several hypotheses. I intend to use the multcomp R package, which calculates the family-wise error rate for multiple hypotheses based on the multivariate normal- / t- distribution, as I understand.
Before I use the multcomp package, I would... |
I have a count data, and most of my explanatory variables are binary (they represent different types of support given to a group). Three variables seem to be correlated with each other. I don't want to drop any of them as the categories are different and essential. So, I thought maybe I could create another variable co... |
One of the OLS assumptions concerning the $X$-matrix (with a constant) is that the columns $(1, x_{i1}, \ldots , x_{iK})$ are not linearly dependent. This looks intuitive to me, because of the dummy-variable trap.
In another text book I found the assumption is $E[x_i x_i']$ is positive definite and finite and that the ... |
I have two time series. One is an actual recording of physiological signals, the other is a binary representation of activations (0 or 1) based on a simulation of the process underlying the physiological signals. The simulations are not aligned with individual recordings of the physiological signals, nor can I assume t... |
The following is the precursor to the policy gradient algorithm
Why is the return $r(\tau)$ over the trajectory taken out of the gradient as if it is constant w.r.t the policy parameters $\theta$. Is it not that if the trajectory $\tau$ depends upon the parameters then the return should too
|
It is possible to find discrepancies between the results of ANOVA and post-hoc tests. The results of post-hoc tests are valid (with the exception of the Fisher LSD test) even if the overall P value for the ANOVA is greater than 0.05 (1, 2, 3, 4).
How should such results be presented and interpreted? There are some ques... |
Background
Ordinary HMM
Consider an ordinary Hidden Markov Model $\lambda = (\pi, A, B)$ with $N$ hidden states $\{1, 2, ..., N\}$ and $M$ observation symbols $\{v_1, ... v_m\}$. Let's denote a state $i$ at time $t$ as $q_t$. Then
$\pi$ is the initial distribution $\pi_i = \mathbb{P}(q_1 = i)$
$A$ is the transition ma... |
I have a dataset where the subjects are job contracts. It spans from the 80s to 2019.
Each contract has a start of contract and end of contract date, unless they were still active in 2019 in which case their end of contract date is "2099".
I want to use survival analysis for the duration of contracts during different t... |
I am using bootstrapping to estimate the standard error of a weighted estimate. The process to calculate the estimate is:
Sample from the population
Calculate a weight for each individual based on their and other individual's covariates (the goal is to have the sample marginal covariates better resemble those in anot... |
I have weekday data ($n = 1551$) from the past 5 years (2019-2023) with attendance at a large restaurant. I am just getting started, and for each weekday I calculated the mean and the variance as per (rounded to 0 decimals):
Weekday
Mean
Variance
Mon
48
1320
Tue
51
1505
Wed
49
1490
Thu
47
1531
Fri
44
13... |
I have 2 research questions, dependent variable of 1st question is a binary variable and I use logit regression to estimate it on STATA. The dependent variable of second research question is in percentage (proportional variable, between 0 and 1 including 0 and 1). I use fractional response regression on Stata. In both ... |
I have DNA and RNA counts of 4 time points with 4 replicates. I want to quantitate the change in RNA copy number relative to DNA copy number for each gene in the genome. I especially interested to test if there is a linear relationship between these two. I am thinking of using linear mixed effect regression model to ac... |
Let $(\mathsf{X}, \mathcal{X})$ be a measurable space, $\pi(dx)$ be a probability measure on it, and $K:X\times\mathcal{X}\to[0, 1]$ be a Markov kernel. I have the following property
$$
\int K(x, A) \pi(dx) = 0
$$
In the textbook then they say that this means that $\pi$-almost surely $K(x, A) = 0$.
I don't understand ... |
I have two independent samples 1 and 2, and want to test a null hypothesis that the median of sample 2 is lower or equal to the median of sample 1. Is there a non-parametric test for that?
|
I conducted a hierarchical cluster analysis in R on a pool of 20 words that have certain common traits. I used hclust(). After, I did multiscale bootstrap resampling using pvclust(). While smaller-level clusters have very similar or even the same AU and BP values, the more the cluster becomes general (the more subclust... |
I would like to use an Bayesian approach to compare a continuous non-normally distributed variable taking values between -1 to 1 between two populations. The measurements are not paired.
Overall my data is comparable to the example shown in fitting a distribution to skewed data with negative values (in the sense that i... |
I have some 1-D spatially distributed count data, and I'd like to model it as a function of a relatively smooth latent variable. I've managed to get a version of this to work using a Gaussian process in Stan, but I'm wondering if there might be a simpler, more appropriate or faster alternative, since my data differ som... |
Question: Suppose that $\boldsymbol{Y} = \boldsymbol{X}\boldsymbol{\beta} + \boldsymbol{\epsilon}$, and the errors have zero mean, and are uncorrelated with constant variance. Let $\hat{\boldsymbol{\beta}}$ be the least squares estimator of $\boldsymbol{\beta}$. Let $\boldsymbol{H} = \boldsymbol{X}(\boldsymbol{X}^T \bo... |
I am running a fixest effects regression of the following model.
$$Y_{it} = \beta_0 + X_{it}\beta_1 + T_{1it}\beta_2 +T_{2it}\beta_3 + X_{it}T_{1it}\beta_4 + X_{it}T_{2it}\beta_5 + \alpha_{it} + \epsilon_{it}$$
where, for simplicity, $Y_{it}$ is continuous while $X_{it}$ and $T_{jit}$ are categorical. (In fact, there a... |
I am running an ecological/environmental experiment in a salt marsh with 5 experimental treatments and 3 replicate soil samples taken from each treatment. I have been taking measurements from these treatments across three seasons, giving me three timepoints for my experimental variables. I want to run a mixed effect mo... |
I am trying to develop a linear mixed-effect model for a dataset with a somewhat complex nested structure. The scenario is roughly the following:
I am measuring the attention level of students at different points in a school year. The highest level of my hierarchy is District, which is marked as either Liberal (L) or C... |
I have the following variables: $\beta,\Omega,\tau$. $\tau$ is a hyperparameter for the prior on $\beta$.
For a fixed $\tau$, I have the conditionals:$p(\Omega|\beta),p(\beta|\Omega)$. To generate samples from the joint distribution, I would adopt the following Gibbs Sampling scheme at each time $t$.
Sample $\Omega^{t... |
I have not come across a contrast matrix like the one I would like to make. To put it in situation. I have the following model:
design_matrix <- model.matrix(~ factor1*factor2, data = data)
factor1: Has 4 different levels.
factor2: Has 3 different levels.
response: single cell log normalized count data
My data dimens... |
In Wooldridge's advanced book, on page 105, the F-statistic for 2SLS regression is introduced. Let me illustrate the computation step by step with the following concrete example:
\begin{equation}
\text{ln(wage)} = \beta_0 + \beta_1 exper + \beta_2 exper^2 + \beta_3 educ + \beta_4 kidslt6+ \beta_5 kidsge6 + u
\label{w... |
I am estimating a marketing mix model on sales using linear regression. My goal is to estimate the effect of marketing and branding on sales (not forecast the future). I have 4 years worth of monthly sales and media data and I want to use seasonality as a covariate in my analyses because there is a clear seasonal sales... |
If I have a dataset with cases and controls ( cases being people with colon cancer, control are people without colon cancer), and for each case or control, there are multiple relatives linked to them with their own variables. The rows are duplicated because one person can have multiple relatives. We would like to inves... |
1: If there is an overfitting risk in the ensemble technique whether random forest or boosting method, we can use the early stopping hyper parameter so that we can stop training if we feel like there is overfitting in the training set?
For random forest, we can still have overfitting if we have too many complex trees.... |
Say I have a population size of 1000 students from schools in different towns (assume they are in the same class year, of mixed gender, same country/state). The mean, variance and standard deviation of their height is M0, V0 and ST0.
From this, I create three subsets
Subset 1 (a random sampling of 100 students = M1, V... |
I am using data from the Medical Expenditure Panel Survey (MEPS) to create panel data. My question is whether it is appropriate to include dummy variables, a fixed-effect term, and a random-effects term in one model. I will be using R for this analysis.
For simplicity, my data is structured as follows
Person
Househ... |
I want to test/prove if two regressions are fundamentally the same thing.
But first, make this a reproducible example.
Create the levels for each factor variable
levels_a <- c("A1", "A2", "A3", "A4")
levels_b <- c("B1", "B2", "B3")
levels_c <- c("C1", "C2")
Generate all possible combinations of factor levels
combinati... |
I am interested in the effect of an intervention on an outcome. We have set up a quasi-experimental design where we are comparing participants that received certain inputs to participants that did not receive the inputs because there were not enough to go around but they would have wanted to if there was. However, not ... |
I am trying to conduct a sensitivity power analysis for a (2x2) ANOVA. The participants all received trials based on color or shape, and items could be either old or new. In G*Power I have the following information included into the analysis:
a err prob = 0.05
Power = .80
Total sample size = 15
Number of groups = 1
Num... |
I have a problem where I have to think of an example to explain a practical example of consistency and unbiased. The example I thought of is the sample mean.
Consistency is when the estimator (sample mean) reaches the population mean when the sample size becomes infinity.
Unbiasedness is when the estimator (sample mean... |
Suppose we've got a dataset with a very large number of samples (say, billions), and a smaller number of features (say, hundreds). To calculate the coefficients of a single a ridge regression model, all we need are $X_{train}^TX_{train}$ and $X_{train}^Ty_{train}$, which are small and can fit in memory.
However, it see... |
I am running a Poisson model using glmer to look at the effect of a treatment on fat scores (scale from 1-5, hence the Poisson) of an animal. There are multiple timepoints in which fat scores were taken, so since there are repeated measures, I have a random effect of Animal ID added to the model.
The model looks someth... |
Hello,
Would be nice if you could review my graph and tell me if there is something wrong or not. The context is that it uses a MLP.
|
I have an OLS model implemented in a rolling window scheme. The estimated params $\beta$ do change for each window, and the entire intention is to capture any structural change, but they should not be too "jumpy" either.
I looked into tests such as MOSUM, and more generalized Chow tests, but on those metrics, the scena... |
In the paper "Firms and Labor Market Inequality: Evidence and Some Theory" by David Card and coauthors (2018) I find this passage, where a logit choice probability is closely approximated by exponential probability in the case of a large number of possible choices. Can anyone explain the algebra behind this approximati... |
Consider the problem of performing dimensionality reduction from a vector space $V_{1}$ of dimension M to another one, $V_{2}$, of dimension N, where N<M.
Is there a technique or theory which guides how to map domain boundaries from $V_{1}$ to $V_{2}$?
For example, say that the data in $V_{1}$ must satisfy min and max ... |
Consider the following partially-defined Bayesian network:
We know the probability of C given A is True and B is False
We know the probability of C given A is False and B is True
We know that C can only be true if at least one of A or B is True
We do not know the probability of C given A and B are both True.
(To gro... |
I am testing my algorithm on 20 different datasets. So, as a result I derived 20 F1 scores based on precision and recall for each run (dataset). Is there any way to combine all these 20 F1 scores into one metrics or summary statistics to report how the algorithm performed on the 20 datasets?
|
Sorry if some of my terminology is off, I hope I can make the problem clear.
I have two (independent) time series on the same plane, one trending slightly upwards and one slightly downwards, towards each other. At some point t=x, I use a Gaussian process to predict the future trajectory of both these time series, givin... |
I am using dsrTest to calculate the directly-standardised rate and confidence intervals for some data I have. Example below:
Year
Sex
Count
Population
StPop
2020
M
200
1000
5500
2020
F
300
1000
5500
2020
M
150
1000
5500
2020
F
400
1000
5500
I use this, which does work, but only on one row at a time, o... |
When attempting to model univariate data (although, this could easily be extended to the multivariate case) that is unevenly spaced over time, a natural approach to be able to apply common time series methods would be to treat time as another variable to be modeled so that each observation is then a pair of a unix time... |
I would very much like you all to answer this question of mine. I found it in a 2009 paper that reported sample sizes in the form of N=7-8, N=4-8, and so on (doi:10.1016/j.jdermsci.2009.07.001enter link description here
). Meanwhile I can't find its supplementary material and raw data. Can tell me how to deal with thi... |
When we perform mini-batch GD, we estimate the true gradient:
$$\nabla L = \frac{1}{N} \sum_i \nabla L_i$$
with:
$$\nabla_B L = \frac{1}{B} \sum_{i \in B} \nabla L_i$$
where $B$ is the batch size. Notice, that the true gradient can be thought as the expectation value of a uniform distribution ($p_i = \frac{1}{N}$ for e... |
I'm working on utility functions for discrete choice modelling, preferences are often modelled using quadratic preferences, which look like $$u(z) = a + q'z - z'rz$$ where $z$ are a vector of attributes, $q$ is a vector of parameters, $a$ is a constant and $r$ is a $n$ x $n$ parameter matrix. In this case if $r$ is of ... |
I've got a question where there is a population of observations in (x,y) data points. y is mean independent of x (equal to zero no matter where x is conditioned at).
Could the covariance change if we added more data points that keep y mean independent?
|
I found this equality on p.6 in this document proving that Bayes Predictor is optimal (i.e. it achieves the minimal generalization risk) amongst al hypotheses:
$$
\mathbb{E}_{(x, y) \sim \mathcal{D}}[\mathbb{1}_{[f_{\mathcal{D}}(x) \ne y]}] = \mathbb{E}_{x \sim \mathcal{D}_{X}}[\mathbb{E}_{y \sim \mathcal{D}_{Y|x}}[\ma... |
I need your help to solve a classification problem. Typically, we have independent variables and we try to predict a target variable. I have a different type of problem to solve.
In my case, let's take a simple example. Suppose I have a database with 6 variables: "white_blood_cells," "age," "weight," "gender," "medicat... |
I have a scenario where 3 subjects evaluate 12 cases of a problem with two pieces of equipment. Each subject evaluates each case with equipment A, then equipment B. The outcome variable is binary, 0 (the subject came to an incorrect conclusion) or 1 (the subject came to the correct conclusion)
My hypothesis is that equ... |
Consider a Markov model with two absorbing states $a$ and $e$ and three transient states, with an associated transition probability matrix like so:
$$\begin{pmatrix} 1 & 0 & 0 & 0 & 0 \\ p_{ba} & p_{bb} & p_{bc} &0 & 0 \\ 0 & p_{cb} & p_{cc} & p_{cd} & 0 \\ 0 & 0 & p_{dc} & p_{dd} & p_{de} \\ 0 & 0 & 0 & 0 & 1 \end{pma... |
I cannot understand why in a ridge regression if I remove some coefficients from the penalty term I have a stronger shrinkage of the remaining coefficients that are included in the penalty term.
From the data I obtain I believe this statement, but I cannot understand how this happens. Because the lambda tuning paramet... |
If I take some estimator X. Lets say that X is unbiased.
Suppose I have 100 samples and each sample has 5 points. I now calculate the value of X on each sample.
Because X is unbiased, this means that the average value of X will equal to its population value (ex: real value)?
And because X is unbiased, this will be true... |
My question is about rank aggregation, which is in relation with statistics and decision sciences. (if this question is off the topic of this site, plz let me know.) The question is that I have N candidates and N ranking lists in which each candidate is omitted, that is, candidate 1's rank is omitted in the 1st ranking... |
Many well-known methods address specific forms of model uncertainty that can be adjudicated empirically. For example, if we are fitting a predictive model and there is uncertainty about the set of covariates that have nonzero coefficients, common approaches to variable selection will in principle find the "right" model... |
I have data that looks like this when I plot a histogram. I have this data for several years (this is a count of values per group) and each year looks very similar.
Is there a way that I can:
more accurately describe this distribution (with words or with a function)
compare a distribution from the current year to pr... |
I have trained a DRF model using h2o and the shap summary plot came out like this.
Why aren't feature contributions centered? It seems weird that one feature contributes negatively and all the others positively.
How should I interpret this? Is this an indication of a problem in my data?
|
I am looking at an I(1) process for an AR(3) model:
$$x_t=\theta_1x_{t-1}+\theta_2x_{t-2}+\theta_3x_{t-3}+\varepsilon_t$$
I rewrite it using the lag-operator:
$$(1-\theta_1L-\theta_2L^2-\theta_3L^3)x_t=\varepsilon_t$$
And the I factorise the characteristic polynomial:
$$(1-\theta_1z-\theta_2z^2-\theta_3z^3)=(1-\phi_1z)... |
I am working on a multi-level logistic regression model with a binary outcome and a circular predictor. Thanks to this post, I know that I have to add sine and cosine of the circular variable as a predictor and that I can calculate the amplitude $a$ and the phase shift $\phi$ from the regression weights $w_1$ and $w_2$... |
I want/need to analyse the influence of certain parameters on the share of cycling in the total number of trips.
What I have is a database of more than 960,000 trips within Germany in 2017, containing:
Trip data: length, mode of transport, weather, purpose, ...
Personal data: age, attitudes, access to car (y/n), drivi... |
I'm training a CNN with pictures data for binary classification and while my training accuracy increases, my validation accuracy keeps fluctuating between small and high values of accuracy. I have a small dataset, but I can't do anything to increase the number of samples. Is my model overfitting? Or maybe my model is t... |
Consider four random variables $W, X,Q,Y$, where $Q$ and $Y$ are binary. Assume
$$
\begin{aligned}
& (1) \quad E(Q(X+W)|Y=1)\geq 0\\
& (2) \quad E(W|Y=1)=0\\
& (3) \quad \Pr(Q=1|Y=1,W)=1
\end{aligned}
$$
Note that (2) and (3) imply
$$
(4) \quad E(QW|Y=1)=0
$$
Hence, by combining (1) and (4), we conclude
$$
(5) \quad E(... |
The setting
Consider a least squares model for $y$ as a function of $x,$ possibly nonlinear in the parameters. Abstractly this can be expressed as
$$y = f(x;\theta) + \varepsilon$$
with the usual assumptions: the $\varepsilon$ are iid zero-mean errors of finite variance $\sigma^2.$
Further suppose this model represent... |
I have a treatment (2 groups) for which I want to compare parameter estimate of a sigmoid curve (i.e., do any of the three parameters differ significantly between my two treatment group).
I am following this example (Compare non-linear model parameter estimates between conditions), which is also explained in the book "... |
I am running Type II sum of squares tests on my linear models using the Anova() function. I prefer Type II over Type III due to its hierarchical nature. With this function, however, I am only getting Chi square values. This wouldn't be a problem if I wasn't specifically requested to report F. I am able to get F values ... |
I have recently encountered a paper where authors ran a longitudinal mediation model where the predictor (only measured at Time 1), mediator (only measured at Time 2), and outcome (only measured at Time 3) variables were only measured once. This was a correlational research (not experimental). Can anyone tell me what t... |
Given the great answer https://math.stackexchange.com/a/1801261/984376 I do understand
P(second child =girl|First child = girl) =0.5 and
P(both girls|at least one girl)=1/3.
Let's say for a given part of the population I knew that the first child is a girl and let's say that we could bet x dollar on the next child be... |
I am using gamlss to analyze inherently proportional data for % mildew on leaf area. This is an average value of 10 leaves per replicate. I only have 3 replicates. I used BEINF0 for some datasets that were zero inflated when it was the best fit, and distribution BE when it was not (BE fit was better than BEZI). For on... |
I am learning about Bayesian analysis and concerning the prior and posterior distribution. What is the random process that the prior and posterior distribution represent?
Simple examples
When we think of a random draw from a Bernoulli process, we think of flipping a coin. The draw or realization is the value of the coi... |
I am doing machine learning and in one stage, I have to measure tensor vector differences to find the minimum distance. Lets say I have a set of linear tensors with dimension 100. I want to find a best pair, which in this case is a pair with minimum distances from each other. So, I have to find two tensors a and b that... |
I guess we can use CV to optimize how many trees (i.e. ntree or nround for boosting) in order to not overfit. It's like one of the way to not overfit.
If we have too many complex trees that we learned but do not use CV to get the optimal # of trees, the second way I can think of is to use early stopping for either rand... |
Why does the formula $\operatorname{Var} (Y\mid X)= E \left (\left(Y- E (Y\mid X)\right )^2\mid X\right )$ condition $EY$, but not $Y$, on $X$?
|
In ARIMA model i know if my d is different of 0 if the time series is not stationary. But in SARIMA model how could i know if my D is different of 0?
|
I am trying to compare two truncated normal distributions, by estimating unknown mean and standard deviation from truncated distributions. One example is men and women competing in a certain sports event. Only results above a set cutoff threshold (same for both and women) are registered for each competition, resulting ... |
I am analyzing an experiment where I grew two genotypes (native and invasive) of the same plant in one pot and evaluated growth over time. Half of the pots had two plants of the same genotype (native-native) and the other half with one of each genotype (native-invasive). These pots were then either placed in a herbivor... |
Which sample size calculation is correct?
Intended design:
Superiority two-arm trial between drug A (intervention) vs drug B (comparator),
outcome is binomial (response or no response to treatment),
randomised,
alpha 0.05,
beta 0.2
one-sided (superiority) testing
drug A (intervention) expected response 40%
drug B (com... |
I've been using principle component regression (PCR) to model data, and was interested in using generalized low rank models (GLRM) in its place. Using PCR, I am able to easily get the coefficients for regression. However, I am confused on how to do this using the archetypes in GLRM. In GLRMs, the "X" and "Y" matrix mul... |
There is a 2×2 matrix
The manully calculated OR is 25, however, it is different from the odds ratio calculated by the fisher.test function in R,what is the principle behind R's fisher.test for calculating odds ratio, p-value, and the 95% CI?
|
Consider the random walk $X_0, X_1, X_2, \ldots$ on state space $S=\{0,1,\ldots,N\}$ with absorbing states $A=\{0,N\}$, and with $P(i,i+1)=p$ and $P(i,i-1)=q$ for all $i \in S \setminus A$, where $p+q=1$ and $p,q>0$.
Let $T:=\inf \left\{n\ge 0:X_{n}\in \left\{0,N \right\}\right\}$ denote the number of steps until the w... |
Lets say nontechnical C-suite wants you to predict what the revenue would be for a certain customer base. And so you train a random forest model and it achieves high accuracy. You want to figure out what the most predictive variable is so you run feature_importances_ and then rank them to see which one is the most pred... |
How would you contrast Self attention and Attention in machine learning for a non technical person?
I really like this explanation of Attention from Chatgpt: When someone speaks to you, you naturally focus your "attention" on that person's voice, ignoring the others for a moment. In the same way, in a computer, "attent... |
I want to confirm my understanding of the two tests referenced in the title.
Say I have data on a variable $Y$ from two groups (0 and 1), and I perform the following tests in Stata:
. kwallis Y, by(group)
Kruskal–Wallis equality-of-populations rank test
+--------------------------+
| group | Obs | Rank sum |
... |
I'm struggling a little with an analysis I need to run in SPSS. I am analyzing the effect of openness on self-esteem over three timepoints. I want to make sure time is included as a factor in order to analyze the effect over time and I'm looking at a general linear model to accomplish that.
I have tried running separat... |
When I train deep models with cosine annealing learning-rate scheduling and warm restarts, I get models that achieve completely different scores on my validation set, after each training cycle.
There seems to be no relationship between the scores on the validation set and the actual number of training cycles run sinc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.