instruction stringlengths 9 38.7k |
|---|
I've never asked about Stack OverFlow, even though it's been so useful to me on many occasions! I'm sorry if this topic has already been discussed previously, perhaps I wasn't able to find the good keywords. Also, you should know that English is not my native language, so I apologize if my formulations are not very cor... |
Problem:
I am looking for a metric to find the representativeness of a sample for a given distribution, being the representativeness of a random sample as the degree of capacity of the sample to exhibit the characteristics of a sample that would be obtained by a given distribution.
In my case, I am trying different met... |
I have a data set for regression, with a set of input features and 1 response variable. To confirm if a trained model has overfitted, we can see if the train error << test error at untrained sample points. However, I want to know if the following can also indicate an overfit model in case I have some idea of the extent... |
I'm wondering if there is some general machine learning best practice to do a 'reality check' for your model. I'm coming at machine learning from a physics perspective, where it is common to test so-called 'extreme cases' in your model, so you can get an idea of whether it behaves how you expect. For example, setting a... |
I have three independent variables
Continent (2 levels)
Region (4 levels)
Animal (2 levels)
and three dependent variables
weight (Kg)
size (m3)
a possible table could be like this one:
I would like to test the hypothesis that the two animals in the different continents (and then in the different regions) have simi... |
I'm currently testing out a logistic regression model I plan to use to analyse the results of an experiment I'm yet to conduct. I'm running it in R.
My experiment is going to measure whether animals recognise, and therefore choose, a rewarding option (e.g. a blue versus red box, in which only one contains food). The an... |
I have a dataset and want to fit a model to the data. In particular, I used three models and estimated parameters using MLE and found model (2) provides a better fit in the following picture. However, this does not provide a perfect fit. To improve the performance, what kind of strategy is effective (e.g., using a diff... |
Suppose we have a gaussian $n$-dimensional vector $X \sim \mathcal{N}\left(\mu, \Sigma\right)$
I know that for a non-singular linear map $A$, its image $Y = AX$ will also be a gaussian vector with distribution $\mathcal{N}\left(A\mu, A\Sigma A^T\right)$.
I am concerned about the case of rank-deficient linear map $A$ (i... |
Consider the following setting:
$n$ players (attackers) play an asymmetric, adversarial, 2-player game against $m$ other players (defenders). Two players may play each other $0$ to $k$ times, but each player will play at least some amount of games. The attackers' goal in each game is to maximize the score. Are there an... |
I have some stimuli rated by users. I want to estimate how much of the variance in ratings is due to the stimuli, so that I can compare between various types of ratings which are the most reliable. This seems like it is an Intra-Class Correlation (ICC(1,1): one-way random effects), but my problem is that packages to do... |
Let's say that $x$ is a random variable which follows a conditional probability density function $f(x|N)$, where $N$ is an integer parameter. If the functional form of $f(x|N=1)$ is known, then one can calculate the convolution of this $f(x|N=1)$ with itself like the following:
$\int_{0}^{a}f(y|N=1)f(a-y|N=n-1)dy$.
The... |
Why does my XGBClassifier predicts probability only from 0.48 to 0.51 for either class?
I'm very new to XGBoost, so any suggestions are greatly appreciated! Here's what I want to do using python:
I have a binary classification problem
I want to get predicted probability for thresholding (so I want predict_proba())
Bas... |
I was reading this article published from airbnb around gaurdrail metrics. In it, they discuss this power guardrail they derived but it's very unclear how they went about it.
How are they determining Power given the effect (0.8)*t using no other information?
|
In Deep Learning by Goodfellow, Bengio, and Courville they show that using MSE as a loss function has the same result as maximizing the likelihood (MLE) of an assumed Gaussian model (Section 5.5.1):
$-m \log(\sigma) - \frac{m}{2}\log(2 \pi) - \sum_{i=1}^{m} \frac{||\hat{y}^{(i)} - y^{(i)} ||^2}{2 \sigma^2}$
where $m$ i... |
Using the statsmodels OLS and checking the coefficients of the independent variables, some had negative coefficients. How to interpret them exactly?
Context:
In a dataset with ecommerce transactional data, I used the revenue from the datapoint period, the average amount sold by the datapoint store and the average reven... |
First the question: I'm new to machine learning and have made a first attempt at predicting scores (see problem below). I'm now looking for the right way to set up the model (layers, activations, accuracy metrics, etc.) and to learn how to approach this problem better. I'm grateful for your insights and recommendation.... |
Consider the following question:
I have calculated:
margin of error for the first 50 jumps is 0.127,
margin of error for the last 10 jumps is 0.248,
margin of error for all 60 jumps is 0.156.
The correct answer is supposed to be (D), but it seems to me like the narrowest confidence interval is the one for the first ... |
We know that regressing two I(1) time series that are not cointegrated might give rise to spurious results. Indeed, we might have an excess of rejection of the null hypothesis due to the fact that as the sample size increases, the empirical distribution of the t-stat becomes fatter and fatter, and this makes the criti... |
My understanding is that a p-value of X tells you: if no difference exists, there is an X% chance of observing a difference this extreme.
I haven't exactly thought about how, but it seems like there should be a way to weight that based on the a priori power of the study.
Does that make sense? Does anyone do something l... |
Using classical linear model assumptions, we know that
$$\frac{\hat \beta_j - \beta_j}{se(\hat \beta_j)} \sim t_{n-k-1}$$ meaning that the ratio of regression coefficients to their standard error follows a t-distribution with $n - k - 1$ degrees of freedom, where $k$ is the number of slope parameters.
This means that t... |
I am trying to fit a GAM on (success) counts assuming they follow a beta-binomial distribution. Each data point has three values:
1- Number of trials (N)
2- Number of successes (n)
3- A covariate (p) which determines the parameters of the beta-binomial
At first, I thought about using mgcv package in R. However, that pa... |
I am trying to run an ANOVA model in R, with two factors, at 3 levels each. The first factor has levels 1,2,3 and the second factor has levels X,Y,Z. The following shows the stucture:
V1 V2
1 1 X
2 2 X
3 3 X
4 1 Y
5 2 Y
6 3 Y
7 1 Z
8 2 Z
9 3 Z
Here is example... |
If my confidence interval, say $(-.4, .7)$, for a regression line slope contains $0$, I am looking for the strongest conclusion that I can make from that. Can I conclude that "there is no statistical significance that there is a non-constant linear relationship between the two variables involved"?
My flawed reasoning a... |
I am trying to conduct power calculations for a "Before-After-Control-Impact" type of study focused on public opinion variables.
Ideally, I want to look at the relationship between effect size and power (in this case our sample size is a given). At a minimum, I want to be able to calculate the minimum detectable effect... |
I noticed that in most cases people use point estimate + 95%CI to describe survival estimates like the 3-year survival probability.
Mean +/- SD is also a popular method to describe data, why do I see it's rarely used in survival analysis? (Please correct me if I am wrong).
What's the advantage of CI over SD in survival... |
Introduction
Let say we have random variables $X$ and $Y$, and we take their rank transforms to be $g(X)$ and $g(Y)$. The Spearman rank correlation coeffiicient can be considered to be $$R[g(X),g(Y)] = \frac{\mathbb{E}\left[ (g(X) - \mathbb{E}[g(X)])(g(Y) - \mathbb{E}[g(Y)]) \right]}{\sqrt{\mathbb{E}[(g(X) - \mathbb{E}... |
Why are convex loss functions so important in Neural Networks? Because Neural networks are learnt end-to-end, with non-linear activations, causing convex loss functions to actually become non-convex problems.
So my issue is when using SGD optimizer, this requires a convex loss function, but if a Neural Network makes it... |
I am training a deep learning model for binary image classification using Keras and TensorFlow. My model gave the highest acc and lower loss. The other metrics I used also have higher values like precision and recall.
As I used the generator and I mentioned the validation set during fitting the model. So the precision ... |
I performed a PCA analysis on a Likert scale with 5 questions which ordinal responses can be 1,2,3,4,5 and 6 (from strongly disagree to strongly agree). I did it in two independent samples. I obtained only one principal component in each group. Now I want to compare the principal component in each group. If my data wer... |
$A$: random variable to denote time to failure for equipment E_A
$B$: random variable to denote time to failure for equipment E_B
$A$ and $B$ are independent.
$P(A◁B)(T)$ : Probability that A realizes before B in a mission whose duration is T unit.
example scenario:
$A$ and $B$ both exhibit exponential distribution.
E_... |
I am running a multiple regression with a continuous DV and a mix of dichotomous and continuous IVs (but mostly dichotomous). This is the ZRESID vs ZPRED scatterplot, and I think there is heteroscedasticity but i'm not sure if some of the patterns is due to the binary IVs? Any help would be much appreciated.
|
$A$: random variable to denote time to failure for equipment E_A
$B$: random variable to denote time to failure for equipment E_B
$A$ and $B$ are independent.
$P(A◁B)(T)$ : Probability that A realizes before B in time range (0, T).
I know & understand the equation below (from a paper):
$$P(A◁B)(T)=\int_0^T \biggl( pdf_... |
Use case: I have sales of 90 products during the first 180 days since the product launch. I want to train an LSTM network to predict sales 4 weeks ahead given the last 7 days of sales. The model should be able to predict sales on brand new products (that are not a part of the 90) when they are released.
What is the bes... |
How to calculate the standard deviation of the residuals for a pooled regression? (The idea, formula and/or R code are all welcomed)
As far as I understand it is the standard deviation of the estimated and actual values.
From Statology
How to calculate this for a regression with multiple imputation? That is, to pool t... |
Here are some uses I've found for each case:
The model catalog lets you document the use case, the machine learning framework that was used to train the model, the version of that framework, and the algorithm used along with its hyperparameters.- Link
A feature store is a tool for storing commonly used features. When ... |
I am planning to implement nested cross-validation, but just had a question about its operation. I know there are lots of posts about nested cv, but none of them (as far as I understand) address my mis-understanding about the process.
Context: I found the illustration (shown below) in the following blog to be the simpl... |
Given $$\mathcal{F} = \{f(x) = W^{T}x, \|W\|_{2} \leq w\}$$ I am interested in determining the Rademacher complexity of $\mathcal{F}$. How would one start this computation?
|
Consider $X_i$ i.i.d. with mean 0 and variance $\sigma^2$.
I am aware that if $X_i$ is normally distributed then $\sum_{i=1}^n X_i^2/\sigma^2 \sim \chi^2_n$.
My question is, if $X_i$ has some other distribution, can it be shown (presumably in some manner appealing to the central limit theorem) that
$$\sum_{i=1}^n X_i^2... |
I have a population that falls under 10 classes. Each individual may or may not come with a location - 83% overall have locations and a breakdown by class is:
Class
# individuals
# with location
# without location
% without location
A
82078
67977
14101
17%
B
146551
124975
21576
15%
C
115245
96161
19084
17%
... |
The goal of this small project is the predict one week in advance whether this athlete is sustaining an injury (binary classification).
The data I have is questionnaire data from 29 athletes, with well-being and training load data. This data is kind of nested, because of the 29 athletes that are in the group. What kind... |
My question is motivated by The Myth of Long-Horizon Predictability
Suppose I have $X$ and $Y$, where $X$ is stationary but highly autocorrelated and $Y$ represents a stock price. Say I do the following time series regression:
$Y(t+5yr)/Y(t)=X(t)b+e(t)$ with all standard assumptions being true.
Here is my understanding... |
I was looking at a regression problem I have, and I'm using the R(squared) metric to assess my model, in addition to other metrics. I'm aware that R(squared) will always increase as the number of features increase/add more features, which I'm also using the R(squared) adjusted metric to account for this change.
Using t... |
I have a general question on whether effect sizes need to be corrected for multiple comparisons. I need to conduct 8 t-tests, in order to test whether values from 8 different conditions different significant from 0. I know that are procedures that allow an adjustment of the p-value according to the number of tests cond... |
I am seeking help on using Matching with R on a particular data structure. I reproduce below the general idea how the data looks like.
I have a "pool of control" units that I want to re-used for each treated unit matching. The column id refers to the personal identifier, you can see that the controls are repeated for e... |
Context
I am confused by the following post where the accepted answer states that :
You can't really even compare the two since the Kolmogorov-Smirnov is
for a completely specified distribution (so if you're testing
normality, you must specify the mean and variance; they can't be
estimated from the data*), while the S... |
I want to find the forecast of an threshold AR(1) process:
I am confused on how to do it. Do I take the expected value of the process making $x_{t-1}$ become $x_n$, and $w_t$ becomes $w_{n+1}$, and then $w_{n+1}$ becomes 0, so we are left with $\theta_1 x_n$ for $x_n<0$?
What I want to show is that the forecast for th... |
I am using SelectKbest for my feature selection process. https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.SelectKBest.html
My data is non normal and actually skewed. I don't transform/scale it either since i am using tree based method (xgboost) binary classifier.
I have 200+ features therefor... |
Is it possible and appropriate to estimate the area under the receiver operating characteristic curve from a single point estimate of an individual's sensitivity and specificity performance?
|
I have two independent exponential random variable $v$ and $u$ with parameters $\lambda$ and $\mu$. What is the mean of $v$, knowing that $v$ happened before $u$ i.e. $E[v|v<u]$?
|
I have a set of points for three variables that I'm trying to correlate. I have used Matlab's "corrplot" command to get the correlation matrix, Pearson's correlation coefficient and the p-value. The results are as show below:
With:
R =
1.0000 -0.6496 0.8566
-0.6496 1.0000 -0.6613
0.8566 -0.6613 1.0000
... |
Let's say I was given the probability of it raining over the next 6 hour intervals as:
5 93 83 28 100 8
How would I then workout the probability that it rains during any of those six hours? Sorry, very much a newbie, just trying to get a grip of this
|
I performed 10-fold cross-validation (cv.glmnet) on training data (80/20 split), total data consisting of 1000 samples. Next, I took the lambda.1se value and then fit my model (glmnet) on all the training data. Finally, I test the model on the test data and record the MSE.
I'm being asked by my supervisor to "test the ... |
Individuals are completing a task in which they rank 15 items (1-15 according to importance). These individuals will later be working in groups of 4, so I am interested in measuring the similarity of responses within each group.
Any recommendations on measurement techniques that would best capture this similarity?
|
I am quite puzzled by the logistic regression results with three outcome categories (0,1,2); 0 is no feelings, 1 is slightly happy, 2 is extremely happy.
I tried both (1) logistic regression and ordered the outcome (2) using ordinal logistic regression through MASS::polr
The summary from (1) looks like this:
Call:... |
I have the following gam model:
m1 <- gam(Y ~ s(Age, bs = 'ad', k = -1) + Sex + ti(Age, by = Sex, bs ='fs'),
data = DF,
method = 'REML',
family = gaussian)
I chose adaptive functions because this is physiological data that will vary with participant age and possibly gender. I choose k... |
I have a low temporal frequency irregular dataset with a value available every 40 to 48 days. I have another set of time-series data over the same period at 12 day frequency. The pattern of the two datasets are related (but not the values), and I'd like to use the pattern of the 12-day dataset to interpolate the 40-48 ... |
If I am given a series of, let's say, 50 observations, of a continuous data, for example, the height of some group of people: 165.23 cm, 134.28 cm, and so on, and I want to find the box plot, I need to find the median. Should I do that with N/2 formula or the L+N/2−Fm−1fm⋅c formula? I have this doubt because they (norm... |
I want to use the acceptance-rejection method to generate a sample from the following target probability density function:
$$f\left(x\right)=1.25x^4+2x^3+0.25,\:0<x<1$$
Let the trial probability density function be
$$g\left(x\right)\:=\:1,\:0<x<1$$
n <- 100000
k <- 0 #counter for accepted
j <- 0 #iterations
x... |
What does the r-squared value indicate in the lm() function in r.
How to interprete it with the coefficients and p value.
Following is an example of the output i got for summary of linear model I build for Auto data
Call:
lm(formula = mpg ~ ., data = data)
Residuals:
Min 1Q Median 3Q Max
-9.5903 -2... |
I'm hoping to implement Harbord's method (https://onlinelibrary.wiley.com/doi/abs/10.1002/sim.2380) for evaluating publication bias using the 'metafor' package in R. It appears this is possible (https://wviechtb.github.io/metafor/reference/regtest.html) but I am unsure how this method in particular can be specified. An... |
I have two vectors of n random variables each. The first vector $\vec{x} = (x_1, \dots, x_n)$ is drawn i.i.d. according to $X_i \sim N(\mu, \sigma^2)$. The second is drawn from the first vector $\vec{y} = (y_1, \dots, y_n)$ where $Y_i \sim (X_i, \tau^2)$. We can alternatively write $Y_i = X_i + \epsilon$ where $\epsilo... |
Is the variance of a product $Var(XY)$ of possibly dependent variables necessarily larger or smaller than the product of variances $Var(X)Var(Y)$? Looking at examples I only see it being larger but I don't know if it is in general.
|
I have a group with three different treatments. One group gets shown 0 Tags, 4 and 7. N's are different in the range of 80-100 and data does not follow a normal distribution.
I would also like to compare 0 to 4, 0 to 7 and 4 to 7
How can I evaluate my data for statistical significance?
|
Let $X_{i} \sim \operatorname{Ga}\left(\alpha_{i}, \lambda\right)$ independent with $\alpha_{i}>0$ fūr $i=1,2$. Furthermore it is known, that $V=X_{1}+X_{2} \sim \operatorname{Ga}\left(\alpha_{1}+\alpha_{2}, \lambda\right)$ and $U=\frac{X_{1}}{X_{1}+X_{2}} \sim \operatorname{Beta}\left(\alpha_{1}, \alpha_{2}\right) .$... |
What exactly constitutes a "level" in mixed models? In most texts I have read levels seem to be synonym with random variables (student ID, classroom, school, etc). But can predictors also be levels? For example, if I'm interested in math scores, family income, and IQ, can I say these are levels nested within students?
... |
I have 79 individuals. I have two categories of individuals (1 and 2). I have a measure of speed for each individual. Category 1 has 54 individuals and has a non-normal distribution of speeds, category 2 has 25 individuals and has a normal distribution of speeds.
Here is representative data...
group_data <- structure(l... |
Let's say I have data from a single individual that I'd like to model.
I'm not sure if regression is suitable since the different values come from the same individual and are therefore not independent.
For example, would it be statistically valid to run a regression analysis on these data if they came from the same ind... |
I am looking for functional mathematical notation to explain the difference between Predictive Inference and Causal Inference? I list an example model. I also list links further down that give interesting answers, but I think that for each method they use the word input, which is fine/understandable. But I think that w... |
I have a dataset with a DV, 2 IVs(IV1 & IV2) and 2 covariates(CV1 and CV2),
and I want to compare means of the DV with 2-way between-group ANCOVA using the covariates in R.
But I'm not sure how to check the homogeneity of regression slopes assumption in this situation.
I found some sources to do this for 2-way ANCOVA w... |
Bumbling through cross-validation procedures when fitting random forests, I kept bumping into errors of this sort (in R)
Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = object$xlevels) :
factor <some.factor> has new levels
As it happened, I had many high-cardinality, categorical features ... |
After running the main analysis with ITT setting for a longitudinal RCT, we want to do a sub-analysis focusing on the treatment group only, do we still need to report the ITT analysis results? In the main analysis, missing outcomes were imputed. In the sub-analysis, can we use the raw data or report complete case analy... |
I am training a multi-layer perceptron (MLP) with 4 hidden layers. I got the best hyper-parameters by the following steps using HParams:
Training model by each combination of parameters, such as
{'dropout_rate_of_l1': 0.1, 'dropout_rate_of_l2': 0.6, 'dropout_rate_of_l3': 0.3, 'dropout_rate_of_l4': 0}, there are
about ... |
I need to give students some intuition on how coefficients are found for a bayesian regression model. Could you help me out by providing a simple, visual and non-mathematical explanation of the process?
I'll edit the figures according to your recommendations. Thus, hopefully this topic will be useful for future's reade... |
I was told that decision boundaries of RandomForests can be non-orthogonal. See Figure 7-5 in Geron's book Hands-On Machine Learning with Scikit-Learn & TensorFlow p.g. 187 edition 1. This is not obvious to me (I think the decision boundaries must be orthogonal at small scales but can approximate non-orthogonal boundar... |
I have a dataset of temperatures for a few decades. Data looks a lot like on image, with seasonality.
The question is whether it is possible to draw conclusions about how the temperature is changing from simple linear regression on such data. If not, what models are preferable to figure out if (and how) the temperatur... |
Looking through the various Stack Exchange groups, I think this may be the appropriate group. Apologies if I should have posted this elsewhere.
I have been reading about Scales of Measurement (Nominal, Ordinal, Interval, Ratio)as a way of describing why it’s invalid to do some things to some numbers.
I have two types o... |
I have grades of 25 students (for one test/exam) according to the German school system. The possible range of these grades is from 1 (very good) to 6 (insufficient). From my sample, 20 students got the grade "2", four students got the grade "1" and one got the grade "3". Since I know the range of possible grades (1 to ... |
I'm currently working on a project, more specifically, a regression problem. The results are not really that good, and I think it is because the features used, even though are standard features that describe the object, there doesn't seem to be enough difference between data points using those features at point of time... |
I read John Fox's book "Regression diagnostics: An introduction". In Chapter 2, he gave an example which I quoted below:
... if $y$ is income, $x$ is education in years, and $g$ is the factor
gender, with levels male, female, and nonbinary, coding the dummy
regressors $d_f = 1$ for females and 0 otherwise, and $d_m = ... |
I have been fitting some models to a time series I have and amongst these are an AIRMAX(0, 0, 0) model. I am using the statsmodels implementation of ARIMA(X) in python and have a simple question:
Is an ARIMAX(0, 0, 0) model simply an OLS model?
My interpretation of the sparse documentation is that it is. Can someone ... |
i have no much experience coding nor with statistics so sorry and thank you in advance.
I'm trying to find out if two variables (living in urban or rural areas) and using medicine A or B (due to accessibility) are related. I have a data frame with many other variables and thousands of cases on which i'm doing the analy... |
I want to build a timeseries forecasting model which uses LSTM layers, I want to know what analysis we have to do prior to fitting the model? My data is recorded every 20 minutes, I performed Dickey fuller test, it proved that my data is stationary.
I have 50k records. My task is to take 24 hours of past data, and pred... |
I have a dataframe , here above a sample :
cluster Browser OS page convert
0-3 10 11 100 10
0-3 09 10 100 10
0-3 10 11 101 50
4-7 09 10 101 100
4-7 09 10 100 20
4-7 08 10 100 30
the object of ... |
If we want to test the hypothesis $H_0$: $\mu = 0$, where $H_a$: $\mu \neq 0$. Then the t statistic is $t=\bar{y}/(s/\sqrt{n})$ and 95% confidence interval is $\bar{y} \pm t_{.975}s/\sqrt{n}$ by t-test. If the sample mean $\bar{y} > 0$, why the rejection region is $t>t_{.975}$ instead of $t<-t_{.975}$?
|
I have a panel of individuals indexed by $i$, observed at several times $t$. I want to estimate the effect of an individual specific variable, say gender, on an outcome $y_{it}$, either via OLS or random effects regression
$$y_{it}=\alpha+\beta \text{Female}_i+\varepsilon_{it}, \text{or} \\
y_{it}=\alpha_i+\beta \text{... |
I am evaluating the impact of a capital gains tax hike that was implemented in certain states, but not others, using a Diff-in-Diff method.
However, I am not sure how to define my treatment time, and whether it should be based on the policy's implementation date or the policy's announcement. Specifically, I have read t... |
If $X,Y$ are mutually dependent binomial random variables, do we know how $Y|X$ and $X|Y$ are distributed?
$X,Y$ are the sum of $n$ iid Bernoulli variables,
\begin{align}
X&=\sum_{i=1}^{n}X_i, \qquad &X_i \sim Bin(1, P(X_i=1)) \\
Y&=\sum_{i=1}^{n}Y_i, \qquad &Y_i \sim Bin(1, P(Y_i=1)).
\end{align}
Wikipedia has a sect... |
Consider a univariate regression
$$ y_t = \alpha + \beta x_t + \epsilon_t,$$
where $x_t \sim N(\mu_x, \sigma^2_x)$ and $ \epsilon_t \sim N(0,\sigma^2_\epsilon)$.
The prior distribution is of the form
$$ p(\mu_x, \sigma_x, \alpha, \beta, \sigma_\epsilon) \propto p(\alpha)/(\sigma_\epsilon \sigma_x), $$
where $p(\alpha)... |
I am conducting a meta-analysis and trying to extract standardised differences from a study using pre-post (or repeated measures) design. I am given the Mean, SD, and Sample Size for the pre- and post-test scores (in terms of the metafor package, I have the m1i, m2i, sd1i, and sd2i).
The repeated measures standardised ... |
How to up-sample gradients, during back-propagation, across an average-pooling layer?
For this purpose, let
$$
A^{[l]} = \begin{bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{bmatrix}; \quad P^{[l]} = \begin{bmatrix}
p_{11} & p_{12} \\
p_{21} & p_{22} \\
\end{bmatrix} ... |
I have three groups: CC, CT and TT and 600 metabolites.
When I do a lot of t-tests, I have to adjust the p-value, for example with fdr, but when I do a ANOVA with 3 groups, have I to adjust the ANOVA p-value, or not?
If I try to correct, nothing is more significative.
|
When constructing, for example, a $90\%$ confidence interval for the population variance using the chi-squared distribution, we have:
\begin{align}
& P\left(a<\frac{(n-1)S^2}{\sigma^2}<b\right) \\
= {} & P\left(\frac{\sum(\bar{X}-X_i)^2}{b}<\sigma^2<\frac{\sum(\bar{X}-X_i)^2}{a}\right)=0.9, \\ & \text{ where } \frac{(n... |
Suppose, the following are the first few lines from a dataset for solving a regression problem:
H 7.042 5.781 5.399 -9.118 5.488 7.470 0 0 0 1 0 1 1 3 0 0 0 1 0 0 0 0 0 0 0 0 2.144
H 5.781 5.399 5.373 5.488 5.166 6.452 0 1 1 3 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 2.268
H 5.399 5.373 5.423 ... |
My main question is that when I use Lagrange Multipliers/KKT conditions to perform optimization with threshold constraints, I seem to get contradictory FOC.
Here is a characteristic example:
take an optimization problem like the following:
$$
\begin{align*}
&\max_{x,y} 2x+y-(x-y)^2\\
&s.t.\\
&x,y \geq 0\\
&x+y \leq I
\... |
I use Aitchison distance as the input to a hierarchical clustering dendrogram. I started labeling and interpreting the dendrogram but wasn't sure about a few aspects:
Are the vertical distances on the dendrogram in the same units as the input dendrogram? For example, if I label the y-axis as "Aitchison Distance" is th... |
I have a data analytics maths question. I would like to know what approach to take to solve such a problem, what is the best model to use etc. and how to go about doing it.
I have past historical data of variable $X$ and variable $Y$ with respect to time. I know that variable $Y$ somehow is affected by variable $X$. Th... |
First, I know just little about programming and statistics.
For this assignment I got a table with gene expression values (continuous data) for 3 environments (1, 2, 3 so categorical data) with temperature values (continuous data). It looks like this but there are about 50 genotype and temperature values for each type ... |
$X$ and $Y$ are two correlated random variables. I am trying to estimate $E(X\mid Y)$ given $E(X)$, $E(Y)$, $\rho(X,Y)$, $\sigma(X)$ and $\sigma(Y)$. Could someone point me how to go about it. What if $X$ and $Y$ are vectors of RVs with $\Sigma_X$ and $\Sigma_Y$ being their covariance matrices.
|
How can I calculate the Difference-in-Sargan statistic (or C-statistic) in R?
In Stata, I would do something like this to get this statistic for pred2 (and see if it is exogenous, assuming that all instruments inst1-3 are exogenous):
ivreg2 y (pred1 = inst1 inst2 inst3) pred2, orthog(pred2)
What would the correspondin... |
I am aware of the fact that tree-based (machine learning) models struggle to extrapolate - see regression example here. I am only familiar with the concept of extrapolation for numeric independent variables. AFIK whether an independent variable is numeric or categorical, does not really matter for tree-based models. So... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.