instruction stringlengths 9 38.7k |
|---|
Consider this simple example where I have 2d data that looks like this:
I'm trying to find the parameters of a Normal distribution that maximizes the difference between two likelihood functions $$L_1-L_2=\prod^{n_i}_{i=1}f(x_i|\mu,\sigma^2)-\prod^{n_k}_{k=1}f(x_k|\mu,\sigma^2).$$ Here, the $X_i$ may be the black point... |
I recently read a paper where the researchers used a UNet algorithm to localize/detect cyclones using a bounding box. However, my interpretation of a UNet is that it performs semantic segmentation and that bounding boxes were used in localization algorithms instead. Can someone clear this up for me?
Link to mentioned p... |
Would it be the right approach to apply MinMaxScaler() to a data column that contains many zeros, for example [0.0 3.1 0.0 0.0 8.2 0.0 2.5 15.85 0.0 0.0 0.0] if after scaling all these values where there are zeros are filled. Will this affect the selection of features?
|
This is a multi-fold question that has a number of closely related questions; that is why I will pose them all here, instead of separate questions.
In RL you have a parameterized policy that dictates the probability with which you pick action $a$ given parameters $\theta$ and state $s_t$. That is typically denoted as $... |
The table below shows the coefficients obtained from Ordinary Least Squares (OLS) Regression. The Z-Score $Z_k$ is defined to have the null hypothesis: a given coefficient $\beta_k=0$ and $Z_k$ has $t$-distribution:
$$
Z_k=\frac{\beta_k}{\hat \sigma \sqrt{(\mathbf X^\top \mathbf X)^{-1}_{k,k} }}
$$
I am quite new to ... |
What would be $P(\Theta + W \mid \Theta)$ where $\Theta \perp W$. Intuitively I think It should be $P(W)$ shifted by $E[\Theta]$. Though I am not at all sure
If we condition it upon a specific $\theta$ i.e $P(\Theta + W \mid \Theta = \theta)$ then that is right as well since it is now actually a shifted $W$ only ($P(\t... |
The Herfindahl–Hirschman Index (HHI) is a concentration measure defined as
$$H = \sum_i p_i^2,$$
where $p_i$ is the market share of firm $i$. However this assumes knowing all $p_i$ for an industry.
For my case, I know the market value $v_i$ of the largest $10$ firms in the industry ($v_1\gt v_2\gt\ldots\gt v_{10}$) and... |
During reading 'USAD: UnSupervised Anomaly Detection on Multivariate Time Series' paper, to train the autoencoder the authors only used normal datasets. But since this algorithm
is used for unsupervised learning, isn't there a chance that a dataset has no label. And if this True, are there solutions to solve this probl... |
We are performing multiple linear regression.
Dataset:
let's call the response Y and the predictors X1, X2 and X3,
where Y, X1, X2 are continuous, whereas X3 is binary categorical variable (i.e. it can take either two values, 1 or 2).
Now, we have two choices
Choice #1: Without one-hot encoding of X3
i.e. Linear re... |
Suppose I have three categorical variables, x, y, and z and I have a binary response variable r. I want to predict the response using the glm model.
Should I check the association between x, y, and z with chisq.test? What if all of them are significantly correlated? I can't do the prediction?
|
TL;DR: How to evaluate effect of variable on (bimodal) outcome?
Context
Please see below a faceted histogram of the outcome variable (Total Absolute Score) of a recent experimental (psych) study. The outcome variable (Total Absolute Score) indicates the number of correctly answered questions on a graph-reading task (r... |
Consider four random variables $V_1,V_2,V_3, V_4$.
Here, suppose that $V_2$ is a function of $V_3$ and $V_4$, say $V_2=V_3-V_4$.
In this case, I want to know whether the following conditional probability implicitly imposes a restriction on the conditional value of $V_2$:
$$f(V_1|V_2,V_3<v_3,V_4<v_4).$$
The point I am c... |
There are two different populations with unknown distributions but the standard deviation of each of them is known.
Can I conclude that the population with higher standard deviation is more spread out than the population with lower standard deviation or two population has to follow the same distribution to compare how ... |
Suppose you want to estimate the linear relationship between $x$ & $y$ among people. You can't afford to ask N = 100 people to measure the variables of interest and estimate the relationship, so instead you ask N = 20 people and you take repeated measurements from each individual (100 observation per person which makes... |
For a paper I'm investigating the effectiveness of monetary policy (Quantitative Easing) during the Covid-19 crisis. I want to compare the pre-pandemic period with the pandemic period. To do so, I simply split the sample so that I can clearly compare the full period, pre-pandemic and pandemic period. I use a simple OLS... |
I am using EM algorithm for clustering. I see that if there is an overlap, the accuracy is reduced. However, it is improvesd if no overlap exists.
My question is, can overlap affect the performance of clustering, in general? Or EM algorithm in specific?
|
To quote the whole question accurately:
Various 3 digit numbers can be formed by permitting the digits 122. All arrangements are equally likely. Given that any resulting number is even, in how many ways can we arrange these digits to satisfy this condition?
The way I approached this problem is that I first fixed the ... |
I am practicing random forest regressions with monthly US inflation rates as sample data. I am predicting the inflation rate simply using its past month value. My last data point is for May 22 when monthly inflation was 0.97%, the mean for the whole sample is 0.29%. The predicted inflation rate for June is monotonicall... |
I am new to Transformers and I am trying to create a very simple model (not NLP area) for processing data of variable length (not sequence data because for my problem order in data does not matter). Basically, max length of data that I defined (number of vectors) is 10, and each vector has dimension 2. Because of probl... |
I have survey responses on whether several (~50) different factors (such as the work-culture) have a positive, neutral, of negative influence on how people perceive their job. I would like to test if there is a significant difference between different groups (e.g. men-women, people who have a children-people who don't ... |
I was just curious how external trainable parameters are updated. The challenge is to compute the derivative, the rest is handled by the optimiser.
I assumed a simple DNN as follows:
$$\hat{y} =\sigma(W_2 \sigma(W_1 X + b_1) + b_2)$$
where the symbols have their usual meaning. The full forward pass is as follows:
$$ a^... |
I'm working with the famous diamonds dataset and the target value is non-normal:
After applying the Box-Cox transform, the shape of the histogram is closer to a normal distribution but the quantile plot is far from it:
Also, all normality tests fail to reject non-normality with tiny p-values. This happens after I hav... |
Let $X$ be an arbitrary set. Metric is a function
$$d: X \times X \rightarrow [0, \infty)$$
such that for all $x,y,z \in X$:
$d(x,y) = 0 \iff x = y,$
$d(x,y) = d(y,x),$
$d(x,y) + d(y,z) \geq d(x,z).$
In Dynamic Time Warping Algorithm, $d$ is a local dissimilarity measure used to measure the distance between points $x... |
I was wondering if anyone could explain the following to me (from https://lips.cs.princeton.edu/complexity-of-inference-in-bayes-nets/):
"Briefly, recall that a Bayesian network consists of a directed acyclic graph with a random variable X_i at each vertex. Let $\pi_i$ be the parents of $X_i$. Then the Bayes net define... |
The following tables shows the wall clock times of some programs. So, A means the time for one configuration and B means the time for another configuration. I also have written the ration of B/A which shows B takes less time than A.
A B B/A
M1 1 1 1
M2 4 2 0.5
M3 35 9 0.257
M4 298 67 0.224
M5 1... |
I found this question unanswered so let me ask the same question with more details. (The link provided is not satisfactory to me.)
Suppose a binary treatment with $P(W_i=1)=p$ and $P(W_i=0)=1-p$. All experimental units are iid. Let $Y_i(0)$ and $Y_i(1)$ denote the potential outcomes for $W_i=0,1$ respectively. We are i... |
I am currently working on a group project about how the proportion of staff who are vaccinated in nursing home affect the flu risk of the elderly who stays in nursing home. It looks simple at first, but we are given two separate datasets:
Dataset 1 (Elderly patients)
| ID | Age | Sex|Nursing Home | Flu Status (0/1)|
| ... |
My question is more theoretical and hope someone can help me. I have socio-demographic data for 2007, 2010, 2011 and 2020 years from the statistical office. All of variables are categorical, while the Dependent variable is binary. I want to explain dependence and think about using logistic regression. However I have so... |
I am trying to figure out the correct expression for the noncentrality parameter $\lambda_{ws}$ for the within-subjects effect in a one-way Repeated-Measures ANOVA with $k$ trials/groups. Comparing the calculation of $\lambda_{ws}$ from G*Power with my own attempts (based on the literature) I noticed an inconsistency. ... |
I am trying to assess (out-of-sample) predictive performance of survival analysis models with left-truncated and right-censored data. Assume the training and test data, respectively, consist of measurements
$$
D_{train} = \{(y_i,\ell_i,\delta_i,x_i)\}_{i=1}^m, \qquad D_{test} = \{(y_i, \ell_i,\delta_i,x_i)\}_{i=1}^n,
$... |
Consider the following Gaussian mixture of $N$ components:
\begin{align}
f(x)= \sum_{i=1}^N p (s_i) e^{-\frac{(x-s_i)^2}{2}}\big/ \sqrt{2\pi}
\end{align}
where we assume that
$\max_{i} |s_i| \le C$
$p (s_i)$ is probability distribution (i.e., $\sum_i p(s_i) =1 $ and $1 \ge p(s_i) \ge 0 $
$p(s_i)$ is symmetric. That... |
I'm trying to work out how to calculate the outcome probability $\Pr(Y)$ for the following BN:
I know the joint probability $\Pr(a,b,c,Y) = \Pr(a) \Pr(b \mid a) \Pr(c) \Pr(Y \mid b,c)$ (which I'll call $J$ from now on for ease) and then I applied Bayes' theorem (steps included here) to $\Pr(Y \mid b,c)$ to get $\frac{... |
I am using gglasso package to perform regularized weighted least square for grouped variables. But I was confused with their weight argument.
In their tutorial
# generate weight matrix
times <- seq_along(bardet$y)
rho <- 0.5
sigma <- 1
H <- abs(outer(times, times, "-"))
V <- sigma * rho^H
p <- nrow(V)
V[cbind(1:p, 1:p)... |
Can/should I use a binomial likelihood function if the data were generated from a multinomial process (3 possible outcomes) but data were only collected for two of the possible outcomes?
In each trial of the experiment there are three possible outcomes (x,y,z). However, the experimenters only counted the number of x an... |
i am here to ask u for some material. To put you in context: I am a math pure student and i want to make an article in Random Forest (or a thesis adding other supervised learning algorithms if it is possible, idk) but i am doing it alone. So, i am asking for articles and books on the subject, but more theorical than pr... |
dnorm() and dgamma() are used to return the density of a given distribution function. How we interpret their value? For example, if the mark of stat students is normally distributed with mean 2 and standard deviation 0.5. Then dnorm(3,2,0.5) will give 0.1078919. So what does it mean? Can I say that the probability dens... |
This is a question as part of a paper review which was already published. The authors of the paper publish $R^2$ and RMSE in training but only RMSE in validation. Utilizing the published code, $R^2$ can be calculated on the validation data and is in fact negative in all cases, while RMSE matches what is published. It i... |
I am comparing 2D histograms using mean squared error (MSE, mean of the squared differences). These histograms have varying pixel or bin sizes. I want to compare the MSE results across these different pixel/bin sizes (i.e. is the MSE lower when the binsize is 10cm vs 1cm?).
I normalize the histograms so that they sum t... |
I am planning to conduct a within-subjects design study, and I am wondering if data analysis can be done using multi-level analysis.
IV and DV will be continuous variables. Moderator will be binary, dummy coded variable.
I have two levels – person level and condition level. I will measure the IV - pride once, so pride ... |
Say we have to following data:
p = 0.95 -> rate of true positive result of pcr test.
q = 0.1 -> rate of false positive result of pcr test.
s = 0.2 -> rate of total patients in the population
Our goal is to estimate the parameters p, q and s with Bayesian methods
I generated data of 1000 people who come to check and I g... |
I would like to ask a few questions on Judea Pearls approach to causal inference.
In judea pearls book we want to estimate:
P(Y|do(X))
now to get to the estimand we can rewrite this in terms of our initial causal model e.g.
P(Y|do(X))=∑ZP(Y|X,Z)P(Z)
So we have re-written this 'do' expression into one using conditio... |
Since ReLUs have zero gradient around negative values, we know that if a neuron outputs a negative value, the corresponding ReLU activation will cause it to die. Therefore, if I use a neural network to predict negative values, would that increase the likelihood of neurons in my network dying? I understand that having a... |
I suppose this is a pretty common problem since when we use ranks we are often more interested in how similar they are at the top (or at the bottom, or both extremes) than in how they compare in the middle.
Example of two ordered objects according to two different external criteria (I am writing them as adjacent letter... |
Suppose that $\hat \theta_1, \hat \theta_2$ are two estimators of $\theta$. Furthermore, assume that
\begin{align}
\sqrt{n}(\hat \theta_1-\theta)\overset{d}{\to}N(0,V_1)\\
\sqrt{n}(\hat \theta_2-\theta-B)\overset{d}{\to}N(0,V_2),
\end{align}
where $V_{1}=\lim_{n\to\infty} V_{1,n}$, $V_{2}=\lim_{n\to\infty} V_{2,n}$ and... |
An agent is exploring an unknown world. The agent uses a neural network to make predictions about the next time step. We want to use some form of gradient descent optimizer to tune the network parameters so that it makes more accurate predictions.
Particular considerations:
Observations are presented in a non-random o... |
Suppose I have a random variable $Z$ composed as a sum,
$$
Z = \frac{1}{2}X_1+ \frac{1}{2}X_2
$$
where $ X_1 \sim N(\theta_1,1) $ and $X_2 \sim N(\theta_1 + \theta_2,1)$ and $\theta_1, \theta_2$ are parameters
What would be the PDF/Likelihood of this random variable? Would it be simply the sum of the two individual PDF... |
High Level Problem Statement:
Traditionally vendors (Optimizely, LaunchDarkly etc), who provide in-product experimentation solution to run online A/B experiment, randomise in-coming active users of the product using a simple randomisation. Does this simple randomisation ensure properties of a “probability sample”?
We a... |
I'm confused on how mixture models and multi-level models are different (if at all.) Are there general rules for when to use one and not the other, pros/cons, etc?
|
This is a simplified explanation of my experiment, for those not familiar with single cell RNA seq.
24 small chunks of brain were taken from 12 diseased people and 12 normal people. Gene expression was measured in each individual cell from the 24 samples. each sample contains about 1000 cells. I want to see if gene e... |
I am confused about how the degrees of freedom in a B-spline are calculated in the package splines. The documentation for the B-spline function can be found here:
https://www.rdocumentation.org/packages/splines/versions/3.6.2/topics/bs
With this function, the degrees of freedom for a spline fit are calculated as:
df = ... |
I am attempting to create a neural network that can learn to evaluate chess positions. I'm following along with this paper and trying to recreate its results. The general idea is to have the NN attempt to replicate Stockfish's evaluation function based on the board state. I am representing the input to the network as a... |
I have a data that can have different distribution.
For example every time I get a set of different data :
1, 2, 3, 4. I use metric MAPE and try to find best point to minimize my MAPE. Is there a universal formula that can take my set of data everytime and after that give me best point for prediction for each set of da... |
I read in the following post: Interpreting Log-Transformed Percentages in OLS that
In a log-log model, such as $\log(y) = b_0 + b_1 \log(x)$, I know that
with OLS the standard interpretation is a "1% increase in x is
associated with a $b_1$% increase in y."
I have seen this statement everywhere and it is the standard... |
Suppose I wanted to predict some continuous outcome (such as time spent) on a predictor variable that were rating scores, which range from 1 through 5. Would it be reasonable to regress
$$
Time = \beta_0 + \beta_1 Rating + \epsilon
$$
if $Time \in (0,\infty)$ and $Rating \in \{1,2,3,4,5\}$?
|
Given:
$X_{i} = \Theta +W_{i}$
$\Theta \sim \mathcal{N}(\mu, \sigma_{0}^2)$
$W_{i} \sim \mathcal{N}(0, \sigma_{i}^2)$
$\Theta, W_{i}$ are all independent
I need to find the least mean squared estimation for $\Theta$. That would be $E[\Theta \mid X_{1},X_{2},...x_{n}]$
My attempt:
We can infer that
$X_{i} \sim N(\mu, \s... |
In the post:
What happens when you do a linear regression with duplicate response variables?
it says that if we replicated data twice, the standard errors should be reduced by a factor of $\frac{1}{\sqrt{2}}$. I have some sample data from the cars package I ran two regressions on, one with the original set, the other w... |
Let there be a sequence of real-valued random variables, $\left\{X_n\right\}_{n \in \mathbb{N}}$, and suppose that either $X_n \overset{p}{\to} c < \infty$ or $X_n \overset{\textrm{a.s.}}{\to} c < \infty$. Also let $\phi(\cdot)$ be the standard Normal density function, which is a continuous function. The continuous map... |
My question is about the need for this validation. I have highly correlated constructs in a cfa model fitted using the lavaan library in R, so the correlation is greater than the root of the AVE.
From what I've researched, this validation is to assess whether constructs that shouldn't be correlated really aren't.
But l... |
I have a question about an apparently routine asymptotic calculation.
Suppose that we have variables $X \in \mathbb{R}^{p}, Z \in \mathbb{R}^{q}, Y \in \mathbb{R}$. Write $E[Y \mid X] = f(X; \beta_0)$ and $E[Y^2 \mid X,Z] = g(X,Z; \gamma_0)$, where $\beta \in \mathbb{R}^s$ and $\gamma \in \mathbb{R}^{t}$ are unknown pa... |
In a book, I'm in front of:
$P[(X > 6) / (X > 5)]$
What does it mean?
$X > 6$ knowing $X > 5$?
I would have expected it like $P[(X > 6)|(X > 5)]$, then
with a |, not a /, so I believe that I'm misleading, and that what I see isn't what I believe.
Sorry, eventually it appears to be really only a division of $P(X > 6)$ ... |
I have been reading about the Coefficient of Determination and am wondering why it is necessarily less than or equal to 1.
I understand that RSS is the sum of the difference between each dependent variable and it's prediction, squared.
So it makes sense that RSS will be zero if the independent variables perfectly pred... |
I understand that the outcomes have different meanings such as in epidemiology but what is the difference between the two models? I am new to statistics and will greatly appreciate an easy to understand answer and preferably with an example.
|
I'm struggling to reconcile some minimum sample size calculations. I'm seeking a minimum sample size for two-sample two-tailed proportion z test. I set my parameters as follow...
alpha = 0.05
power = 0.80
kappa = 1
pA = 0.45
pB = 0.55
...and get a minimum sample size of nA = 389 and nB = 389. See here. So far so good... |
I have a dataset for studying breast cancer patients. I wanted to fit a Cox proportional model (without considering the interaction term).
The variables contain age (<40 =1, 40~60=2,>60=3), predominant site (not middle=1, middle=2,unknown=9), maximum diameter (<2.5=1, 2.5~5.5=2), menopausal status (<2 year=1, >2 years=... |
i am working with some data regarding my PhD, where i am interested to see the ability of the institution of different villages of four districts in enhancing people's living condition.
here, through some methodology we have measured the quality of institution of different villages. and the value of the institutional ... |
Are conducting propensity score matching to compare the effect of treatment in a balanced sample, however one of the factors associated with the assignment of treatment is previous levels of the outcome variable. All discussions I can find are on pitfalls when matching with the purpose of performing a diff-in-diff, wh... |
I'm refreshing my (basic) knowledge about maximum likelihood and stumbled over
which summarizes the concept quite well, I'd say. I only wonder when $ argmax L(\theta) $ is maximized, how it is really done. Looking at the example above, wouldn't I need something that measures and compares the residuals like in least sq... |
I have a dataframe consisting of daily log returns for multiple time series. I want to calculate the 7-day realized volatility for each time series column for every week. Is there a fast way to get this done? For example if I have 70 observations, I would get 10 realized volatility results. So for every week. Your help... |
I have to sample a private forest and the local manager proposed for 1-2 sampling area (SA) per hectare according to the old tradition of cruising the territory using contour lines and establishing one SA every approximately 50-100 metres (and ending up with a semi-regular grid). A good knowledge of the site allows me ... |
For my thesis I've conducted several GLM's and GLMM's. Now for my report I need standard deviation values, however the summary tables of my models only produce Std error values.
pd_m1 <- glmer(variable ~ male_plumage*sex + X.nestlings + (1|nest_ID), family = "Gamma", data=pd)
Coefficients:
Es... |
I had created a google sheet with the help of online resources, - to conduct cointegration test on 2 stocks time series. It checks null hypothesis, to see that a unit root is present on the residual between linear regression any 2 stocks time series.
Pl. refer google sheet - https://docs.google.com/spreadsheets/d/1r0_o... |
I have simulated normally distributed data (x_1 = np.random.normal(0, 1, size=1000)) and used it to create a dependent variable with a linear combination of the data with equal coefficients (y = 0.1 * x_1 + 0.1 * x_2 + 0.1 * x_3 + 0.1 * x_4 + 0.1 * x_5 ). Then I fitted a LinearRegression model. As all coefficients are ... |
Refering to this post I evaluate the function optfedorov by looking at the Ge value. When I use this function without specifying any value:
cand.list = expand.grid(T = c("5", "10", "15", "20", "25", "30", "35", "40"),
rH = c("10", "40", "70"))
set.seed(70)
optFederov( ~ ., data = cand.list)
I r... |
Update 2022-07-13
My question could be rephrased as Why do I get a different result for cointegration test when I swap the independent and dependent variables? The link leads you to a thread on this platform that has been answered. However, it leaves me with the practical problem of what to do if coint(series1, series... |
Imagine that you are placing randomly-sized shapes (lines in 1d, rectangles in 2d, etc) is a cuboid-shaped container. I am interested in how increasing the average shape size (and size variance) impacts the effectiveness of how well the cuboid is filled.
I did a lot of research on this mainly on Wikipedia (Knapsack pro... |
I have an experiment with 2 dependent variables (each binary decisions) that makes some quite distinct hypothesis about the manipulation. As there are 2 dependent variables, there are 4 outcomes that are possible. H0 is that participants assigned to treatment A will prefer one of those outcomes, whereas those assigned ... |
I have a longitudinal data set and have fit a number of different regression models [ols, poisson, binomial....and more]. I want to justify the final model selection and assumed one method might be to use MAE and RMSE to show which 'fits' the data best. Is this approach one that has academic precedent? Is there some re... |
I work with an airline company trying to quantify if google search do lead to ticket booking.
I have two dataset:
(1) Search data = basically date of search, fly-date for search
(2) Booking data = date of booking and fly-date for booking.
Is there a mathematical way to prove or dis-prove the correlation between search ... |
Suppose my objective function is to find the minimum value of the following :
$$\min_{\alpha,\beta} \sum_{i=1}^{n} \rho ( e_i ) $$
where $e_i= y_i - ({\alpha+\beta x_i}) $ and $\rho$ is any loss function.
My question is, because the first term $y_i$ does not contains any $\alpha$ or $\beta$ is it correct to first solve... |
This is my first research using Gretl.
I have a panel of 197 people for 66 months stacked as time series. One person has values for the months of January, February, Mars, April, November, December. For the summer months of May, June, July, August, October and September there is no data available. so my data goes from 2... |
I work with administrative ('routinely collected') data in situations where the data capture the entire population, e.g. hospital records, prison records, etc. When reporting statistics the question of interpreting confidence intervals has come up with colleagues and reviewers, and I'm trying to work out a coherent pos... |
In Scikit-learn I can use polynomial features to create polynomial linear regression models. Scikit-learn transforms my original data as follows. If I had a datapoint [2], it would return [2,4,8] with 3 basis functions $(x, x^2, x^3).$ This means that it is increasing the dimensionality of the model, indeed because the... |
If we want to classify some samples based on some continuous features, we basically suppose that all features are from Gaussian distribution ( Gaussian naive Bayes in scikit-learn ). If we want to use Bayes rule, is that common to identify each feature's distribution manually and then use manual method of Bayes rule to... |
I have the next dataset:
structure(list(TOTAL = c(8, 17, 23, 26, 8, 13, NA, 16, 8,
0, 0, 0, 0, 0, 8, 13, 7, 2, 28, 41, 56, 60, 60, NA, 0, 47, 47,
64, 6, 4, 3, 12, 0, 0, 0, 6, 44, 54, 53, NA), sex = structure(c(2L,
2L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 1L,
1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2... |
I have 5 measurements for 2 groups, and this measurements are in percentages. I want to compare if the percentage of Group A is different from the percentage of Group B.
I thought about Mann-Whitney or t-test, but the data is just too small to evaluate if the distribution is normal or not.
What statistical test can I u... |
Suppose we have a sample of size n from a population and we wish to estimate the a confidence interval for the mean of this sample. bootstrap method does that by taking resamples with replacement from this sample M times and uses the variation among them to build CIs.
Now suppose instead of taking these resamples from ... |
I am using the famous diamonds dataset and I'm using linear regression to fit the following model:
$\ln(\text{price}) = \beta_0 + \beta_1 \cdot \ln{\text{x}} + \beta_2 \cdot \text{clarity}$
where carat is a numerical value and clarity is a categorical one (so, one coefficient per dummy).
The model gets a ~ 96% $R^2$ co... |
I am reading Yudi Pawitan's In All Likelihood Chapter 5. The book makes the following assertion on MLE bias.
"...bias is large relative to the variance when we pool information over small samples or when data is highly stratified..."
I do not see the proof of the statement.
What is the proof of the statement? I could c... |
I'm currently conducting a meta-regression for my predictors from a meta-analysis of proportion. In calculating the mixed effects meta-regressions, I wanted to identify how much heterogeneity is accounted for when a predictor is considered in the model. To do this, I used the meta package with a metareg function in R: ... |
I have some data on survival from a particular cancer, and also data on gender and gene expression of a single gene of interest. We have good reason to think gene expression matters, and less reason to think gender matters but we still want to analyse whether it does. My understanding is that it is best to run a multiv... |
I have a little perplexity trying to distinguish parametric vs non-parametric generative model.
In my understanding, a parametric generative model would try to learn the probability density function by estimating the parameters of an underlying distribution we are assuming. So just doing for example,
$$\theta^* = arg\m... |
For count data with excessive number of zeros, there are two choices of models, zero inflated poisson and zero inflated negative binomial.
Q1: How does one make appropriate choice between the two from theoretical viewpoint?
To me, zero inflated negative binomial has an extra parameter for variance part which allows mor... |
I have a huge dataset containing $n=800,000$ rows and $d=50$ columns. I am applying clustering using the PAM approach (after feature reduction), and I want to select the optimal number of groups.
However, some algorithms would be computationally too expansive. Consider the simple Elbow method: I want to select a subsam... |
For example, when training on CIFAR10, each minibatch typically contains images from all 10 classes (assuming a moderately large batch size such as 64). What could go wrong if I train on a homogeneous batch of airplane images, followed by a homogeneous batch of automobile images, and so on?
I want to do that in order t... |
Hypothetical: there is a research team tasked with injecting mice aimed at triggering a specific immune response to produce monoclonal antibodies (MAb). Up until now, they've been largely unsuccessful in trials involving mice counts of 3 or 6. There have only been 6 total trials and only 1 trial (using a very specific ... |
We analyzed pesticide residues in tomatoes, cabbages and chards. When I calculated the 95%CI for concentration of some residues in vegetables, it produces negative values for lower bound. For example, 95%CI for concentration of profenofos in cabbage is (I used R for the computation):
ci_mean(c_data$prof_log)
ci_mean(c_... |
I have climate and vegetation data by latitude longitude.
The vegetation data is a categorical variable with 20 possible options.
The climate data is relative frequency of occurrence (RFO) for a dozen climate states - adding up to 100%.
Lat, Lon, Veg, CS1, CS2, CS3, CS4, CS5, CS6, CS7, CS8, CS9, CS10, CS11, CS12,
39.5,... |
I am working on revising a manuscript centered on identifying the drivers behind certain types of student interaction. One critique that I'm having trouble addressing is that they are worried about my sample size in comparison to other studies that have used exponential random graph modeling (ERGM) to identify these fa... |
Suppose I have $n$ logits $x_1, \dots, x_n$, where $n$ is not too large. They are real numbers in $(-\infty, +\infty)$ and correspond to probabilities in $(0, 1)$ via the formula $p_i = \sigma(x_i)$, where $\sigma$ is the sigmoid function. I want to calculate the logit $\hat x = \sigma^{-1} (\frac{1}{n} \sum_{i=1}^n p_... |
I would like to perform k mean clustering with k=3 and the Euclidean distance a 100 different time.
But it only gives me 2 iterations, how do i do a loop so it give me 100.
Thanks
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.