instruction stringlengths 9 38.7k |
|---|
If I have an X and Y feature, can I cluster by what linear regression two populations fall on?
Consider:
In the pink is one regression. In the yellow is another. I know that these two lobes are indeed separate populations (these are biological cell types from an actual experiment). I thought K-means clustering would w... |
I generate a 2000 bivariate random samples which are negative correlated. I used np.quantile to generate 10 quantile from this random samples. The related point is marked in the following figure. I am not clear how to explain why this 10-quantile point locate in this position. The code to perform the simulate is attac... |
I've used linear mixed models to test if factors genotype and sex influence colon length, while including batch as a random effect. I first ran the testvalue ~ genotype + SEX + (1 | BOX) and got the following results, with sex being significant:
Linear mixed model fit by REML. t-tests use Satterthwaite's method ['lmerM... |
Suppose that n points are given at any side of a square. None of these points coincides with a vertex of the square. How many triangles are determined by these 4n points?
The answer given is like so: "The number of triangles whose vertices belong to three different sides of the square is $4(n − 1)^3$. The number of tri... |
I would like to draw samples from a distribution with pdf $z \mapsto \frac{1}{1 + |z|^\gamma}$ ($z \in \mathbb{R}, \gamma > 1$). Notice, that for $\gamma = 2$, this is proportional to the standard Cauchy distribution's pdf. To draw samples from that distribution, I followed this approach: https://towardsdatascience.com... |
I would like to analysze the relation between my continuous response 'soil moisture content [%]' and 2 categorical and 1 continuous predictors.
I fit a linear mixed model and checked the distribution with the check_distribution() function of the performance package.
library(performance)
lmer(soil_moisture ~ weed_cover... |
A question from Gelman - Regression & Other Stories. This one has me a bit stumped, I've reread sections of the chapter and I'm still not understanding why this is the case.
I think the answer is along the times of heterogeneity in the treatment effect for the sample obs. Some observations get the benefit of the 'full'... |
I am running an ANOVA (in R, using the afex package and aov_car function), with two inter-subject variable (Group, which can have two modalities and Sex, which can also have to modalities) and one intra-subject variable (SF). I study the latence of cerebral activity, in ms.
I found a significant (crossover) interactio... |
Consider tree ensemble methods such as XGBoost, Lightgbm and/or Catboost.
Is the adj. $R^2$ a valid metric for tree ensembles?
I'm curious because these methods handle factor variables differently. E.g. XGBoost needs some kind of one-hot encoding, Lightgbm tries to unite one-hot encoded variables and Catboost uses an u... |
For 4 inputs (2 bounded positive range, 2 bounded negative to positive range) and 2 outputs (unbounded 0 to inf, bounded negative to positive range), what activation functions can I use for my neural net's output activation layer? I am thinking of using either ELU or Leaky RELU and upon experimentation have found that ... |
I will conduct a study in which I compare the reaction times (acceptability judgement) to two different types of sentence.
I am assuming that scores will be normally distributed and I will use paired sample t-test but my professor also wants me to state another test for the situation if the scores are not normally dist... |
I am doing some time series forecasting task up to 4-week ahead (in weekly scale).
However, I think that even if I fit a ARIMA model (with some optimisation on selecting parameters) to the time series, the RMSE is worse than a simple baseline model
In the baseline model, I just use the last observation t, as a predicto... |
I've learned that if we sum or subtract 2 normal distributions, the result would be another normal distribution with $\mu=\mu_{1}\pm\mu_{2}$ and $\sigma=\sqrt{\sigma_{1}^2+\sigma_{2}^2}$
https://www.desmos.com/calculator/hf0ne3rcxy
Here is a graph of a normal distribution with $\mu=\mu_{1}-\mu_{2}$ and $\sigma=\sqrt{\s... |
This text is taken from Introduction to robust estimation and hypothesis testing. Wilcox R.
First I will write down the description that leads to definition of relative influence on $T(F)$ and then I will state my questions.
Consider a mixture of two distributions where an observation is randomly sampled from distribut... |
I want to calculate the TNR. I am in a larger code project and we have this one binary classifier.
The major problem is that I don't find the information about the variables in the code.
What is the benign rate, guesses and ad rate, guesses? And to calculate the TNR of that?
I am guessing that the TNR is TNR = 2*be... |
I am reading "DID Intro" by Stata Corp LLC.
It is recently updated, early April 2022.
On page 7, it explains how Stata runs a panel-data difference-in-differences regression.
My question is what do the following two quotes mean?
The first quote is (p. 7):
"Individuals are
assumed to be nested within the group, and tre... |
I have the following (simple?) question about statistics: I have a dataset where I look for correlations between variables and would like to control for differences between factor levels. For visualization, consider this example: N = 100 people perform 20 tasks and the time taken for each task serves as performance mea... |
I spent a lot of time on this question, and I search extensively on the internet, but I cannot find an answer (only an unanswered question here).
Assume we have $p$ binary covariates, so that for each covariate we have only one single potential split. How many distinct binary decision trees can I generate?
From my calc... |
I am modeling overdispersed count data (detection of species) in a GLMM to account for changes in the number of detections of the individual (response variable) to covid period, area (rural vs urban) and year. I modeled animal id a random effect and after running a few different models this regressions seemed like the ... |
In Econometrics, majority of the models are in discrete-time setting, whereas when you move on to quantitative finance, continuous-time models are most prevalent. I get the theory and idea behind continuous time models: take a random walk model - i.e. $Y_t=Y_{t-1}+u_t$, divide $t$ into $n$ increments and as the interva... |
Suppose that I have a sample of survival times $t_1,...,t_n$, censoring indicators $d_i = I(t_i < C)$, and covariates $x_i\in{\mathbb R}^P$. Suppose that
I have a flexible parametric regression model based on splines, including time dependent effects, and all that show.
I can train a neural network based on recent de... |
Setup
Task: binary classification
Models: logistic regression, SVM, ELM, neural networks - anything that can do classification
Dataset: 10 basic features + 6 my own features
Question
How do I see whether training some model with my 6 new features results in better performance (say, higher accuracy) than training the ... |
I am building a data set on which to estimate, via regression, the impact of covariates on the cause-specific and subdistribution hazards for time to discharge from a hospital. The main competing risks are death and discharge. However, besides death, there are varying types of discharge that also preclude one another... |
For difference-in-differences, do we need to select same duration/length for Pre period compared to Post period? For example, if post period is 5 months, do we need to select pre period to be of 5 months as well or can we use 12 months for pre period?
I saw it is common to use 12 months of data before intervention to c... |
I am comparing OLS and LASSO regression for survey data. I have n>p, but I think my data is high-dimensional data as the p is 3000 and n is 48000. I am using k cross-validation. The results are quite surprising as from R-squared and MSE, the OLS performs much better than LASSO. I have read several discussions and paper... |
This is probably a pretty stupid question... but assume I have two random variables, X1 and X2. I want to look at their dependency (joint probability) at some quantile q. Theoretically, in the independent case, I have:
P(X1 > q | X2 > q) = 1 - F(X1) - F(X2) + F(X1)*F(X2)
So, if q = 0.005, I have:
P(X1 > 0.005 | X2 > 0.... |
From their initial entry date, people must be contacted each month for three months. It often takes several unsuccessful attempts before you establish contact. Once you reach someone, contact attempts stop for the month and resume the following month. Contact attempts are not evenly spaced, and the number of attempts m... |
I had someone come to me for advice on how to deal with their weird data. The predictor variable is categorical (experimental condition), and the outcome variable is continuous (amount of money in a savings account during the experimental period). This should just be a simple ANOVA or linear regression. The problem is,... |
I am a newbie here, hoping to find the right response for my question. I have a task at my hand to create some kind of model that can help me to determine what is the chance of winning a certain amount from a given bid.
For eg: Top 10 opportunities looks like below
I want to answer a question which says What is the pe... |
I want to use fine balance matching to balance the marginal distribution of some covariates, so that it will be less stringent than exact matching.
Below are some options I found:
The fine() function in DOS2 package only works for fine balancing one covariate.
The rcbalance() function in rcbalance package seems suitabl... |
I'm learning about estimated marginal means and I found this very interesting tutorial about it. I get almost all of it, especially the fact that with a multivariate analysis we can extract modelled means that are different from a raw mean (like they do when modelling Sepal.Width ~ Species * Petal.Width and looking at ... |
Suppose we know the prior distribution. When we observe a data point, say $x$, it allows us to form a posterior distribution. I was wondering what if we only know that the data point $x$ belongs to a certain interval, say $x \in (a,b)$. Is there a way to form a posterior distribution? For example, let's say we have a p... |
My problem: I am comparing the means of means of means in my data set.
However, my stats software (GraphPad Prism) doesn't know that these said individual values (the means of means of means) are composed of multiple pooled values.
Due to this, I believe that the stats software is not lending more weight to the observe... |
I am trying to find the answer for the following question. I have two distributions of numbers between 1 and 8, as illustrated here:
I draw random samples from each distribution, which we can call "bucket" here, with random length, and I need to predict which "bucket" form the two has the high distribution, based on b... |
I am trying to determine if the mean distance between animal pairs changes across months. According to a Shapiro Wilk test, my mean distance measurements are not normally distributed. Due to this, I went with a Friedman test, but it is not working. Any advice on the problem or better way to analyze this data? Thanks
dp... |
I am comparing the accuracy of different computer programs on making predictions on the same set of data inputs. For example each of 5 computer programs read in the same 100 data points, and make a prediction for each of those data points, thus each program makes 100 predictions. The predictions are then categorized in... |
I'm trying to understand the theory of "limits of statistical experiments" as explicated in Chapter 9 of Van Der Vaart's text, "Asymptotic Statistics". For some models, the limiting experiment is non-normal, such as when the experiments are uniform with non-common support. The key theorem is that they converge to an ex... |
For the given density function, how to find its distribution function and how to calculate the value of the distribution function?
Density function:
$$f(x) = \frac{1}{\Gamma(\frac{n}{2})}x^{\frac{n}{2}-1}e^{-\frac{1}{2}x}
\quad \quad \quad \quad \quad
x \in (0, \infty), n \in \mathbb{N}.$$
I need to find distribution ... |
I saw this equation in somebody's code which is an alternative approach to implementing the softmax in order to avoid underflow by division by large numbers.
softmax = e^(matrix - logaddexp(matrix)) = E^matrix / sumexp(matrix)
logsumexp = scipy.special.logsumexp(matrix, axis=-1, keepdims=True)
softmax = np.exp(matrix -... |
1.) I am interested in computing the variance of this observable $O$ involving the coefficients of spherical harmonics $a_{\ell m}$ and the $C_{\ell}$ which is the variance of an $a_{\ell m}$ :
$$O=\sum_{\ell=\ell_{\min }}^{\ell_{\max }} \sum_{m=-\ell}^{\ell} a_{\ell m}^{2}$$
where $\left(a_{\ell m}\right)$, and $\left... |
I am writing a paper using a difference-in-differences analysis. My control and treatment groups are groups of 7 or 6 states that either do not or do undergo a certain policy. I ran my difference-in-differences regression and ended up with the equation
I am confused on the interpretation of my results for the actual... |
In a nutshell, I want the regression coefficients of a model to match several differences in conditional means.
You can download the data from this repo.
I have a data set that has a dependent variable (Y) and three binary columns (T, X1 and X2).
Y
CONST
T
X1
X1T
X2
X2T
0
2.31252
1
1
0
0
1
1
1
-0.836074
1
1... |
I'm conducting a regression analysis between a dependent variable ( continuous) and two independent variable one is categorical ( nominal , yes and no value) and the other is continuous . is the multiple regression analysis the right test ? also should I use the dummy variables here for the categorical variable?
|
A sample is drawn from the uniform distribution:
$X_{1},X_{2},...,X_{n}:U(0,2\theta )$
I am interested in finding the MLE for $\theta$.
My intuition say that
$\hat{\theta }=max(X_{i})/2$
How do I explain it mathematically ?
The likelihood function is:
$L = \frac{1}{2^{n}\cdot \theta ^{n}}$
which is not differential if ... |
I have two groups, in which three possible outcomes appeared at different frequencies, and I wanna know, if there is a significant difference in-between the groups.
For instance, I have two potatoe fields, field A and field B. The potatoes grew either tall, normal, or small in the respected fields e.g.:
Amount of p... |
Assume a research on the effect of applying a treatment to improve health by normalizing level of some vitamins in the bodies of some people. We measure initially the level of the vitamin of sick people and want to improve this nearer to a norm. Our research asks, whether the method of infusion into blood or the method... |
I have a very naive question about the density function of the MVN distribution. According to the wiki page, the density function formula sometimes has a constant k (dimension of the MVN variables) and sometimes not. For example, see the PDF on the right-hand side on the wike page, it has no k, whereas, see the PDF in ... |
I have both quantitative and dummy independent variables in my logistic regression. Dependent variable is binary. I have 2 questions.
How to interpret a quantitative variable that is negative?
How to interpret dummy variable with more than 2 categories? I have n-1 variables, so there is a base category to compare each... |
From what I've learned, it seems like in order to simulate draws from a distribution $X \sim p(X)$ one can take advantage of the fact that $p(X) = \int p(X, z)p(z)dz$ and use the following strategy:
Simulate a draw $z_i$ from $p(Z)$
Simulate a draw $x_i$ from $p(X|z_i)$
Then a histogram of the $x_i$'s will approximat... |
We have submitted a paper reporting a statistically significant result.
One reviewer asks us to report what is the power to detect a significant association. As there was a previous paper on this issue, we could use the effect size of that paper to do the calculation.
However, we are surprised by this comment, and woul... |
I want to find an approximation of a mixture of probability distributions that minimises the Kullback-Leibler divergence (KLD).
I need to verify my result, as it seems suspect.
We have a joint distribution
\begin{align}
p(\mathbf{x}, \mathbf{z}) = \prod_{k=1}^{K} \big( \pi_{k} \, p_{k} (\mathbf{x}) \big)^{z_{k}},
\end{... |
I've recently started analysing the data for a project using linear mixed models but am not sure how to deal with crossed and nested factors at the same time.
In my study, each participant reported two events (Event A: a negative personal experience they had & Event B: a negative news story they learnt from the media).... |
Is there a difference in the gradient computation between the two code snippets ...
Code 1:
with tf.GradientTape() as tape:
output_A = model_A(input)
output_B = model_B(input)
loss = loss_fn(output_A, output_B, true_output_A, true_output_B)
grads = tape.gradient(loss, model_A.trainable_variables)
opti... |
Suppose we have a prior $p(\theta)$ and a likelihood function $L(\theta|x)$, and that the likelihood $L(\theta|x)$ is intractable somehow (difficult or impossible to compute) and we instead replace it with an approximate likelihood $\tilde{L}(\theta|x)$ and use the approximate posterior $\tilde{p}(\theta|x) \propto p(\... |
If a time series model contained only dummy variables as dependent and independent variables. Is it always stationary?
|
I am trying to check a hypothesis using a WIlcoxon rank sum test on R. I have my data in two separate arrays, X and Y. My initial hypothesis is that X's mean value is greater than Y's and obviously my alternative hypothesis would be that Y's is greater. I'm a bit confused as to how alternative works in this type of tes... |
I cannot understand this statement from the book Robust Statistics:
The most powerful tests between two densities $p_0$ and $p_1$, are based on a statistic of the form
$$\int \psi F_n(dx) = \frac{1}{n}\Sigma \psi (x_i), \text{ where } \psi(x) = \log\left(\frac{p_0}{p_1}\right)$$
There are two densities $p_0$ and $p_1$ ... |
I want to compute the covariance of $$U_t:=\sum_{l=-L}^{l=L} (X_l-X_{l-1})X_{l-t}$$
with $X_t$ defined as : \begin{align*}
X_0&=0
\\
X_t&=X_{t-1}+\epsilon_t
\end{align*}
$t=1,2,...$
$\epsilon_t \sim N(0,1)$
$\epsilon_t$ are i.i.d
$Var(X_t)=t$ since they are i.i.d
$Cov(X_{t},X_{t-k})=t-k$ again with the sam... |
I m running a logit regression with over 90,000 observations. However the case when dependent variable =1 , is only 115 observations as per the data, the rest are 0. The Eviews software shows "dependent variable has no variance" error. Why is this so? Isn't it normal that the event did not happen for the rest of the ob... |
I am using an ARIMA to find the fit and forecast a time series. The fit looks good despite the shift when i overlay the observed series and my fit model. Please see pic below:
What is possibly causing this shift?
|
Suppose I have a random variable $X$ where $X$ follows an exponential distribution of the following form:
$$f_X(x) = \frac{1}{\lambda}e^{-\frac{x}{\lambda}}$$.
I want to find the value of $\lambda$ such that $Pr(X<10^{-8}) \geq 0.95$ and $Pr(X>6\times10^{-6}) \geq 0.001$.
So I have the following two inequalities to sol... |
What is the probability that a random sample of 10 balls, taken from a collection of 50 blue balls + 50 red balls, has 5 blue balls and 5 red balls? When the balls are removed from the collection, they are not replaced.
I believe I will need some formula to account for all the orders in which 5 red balls and 5 blue bal... |
Using an XGBoost classifier model on a few hundred thousands rows with +/- 300 numerical features and 3,000 target classes, training with multi:softproba.
Main settings for the classifier are as follow:
xgb_settings = {
'max_depth': 12,
'n_estimators': 160,
'learning_rate': 0.1,
'reg_alpha': 0.1,
'c... |
Assume we have a structural equation system with treatment $T,$ mediator
$1$ (discrete) and mediator $2$ (continuous). We write this as:
$$
Y=\beta_{0}+\beta_{1}M_{1}+\beta_{2}M_{2}+\beta_{3}TM_{2}+\beta_{3}T+\epsilon
$$
$$
M_{1}=\alpha+\alpha_{1}T+v
$$
$$
M_{2}=\gamma+\gamma_{1}T+e
$$
For $M_{1},$ the causal mediation... |
Assume there is an incoming signal which may have some noise to it. This is essentially an ordered 1d data. I am looking for an algorithm which can group the data points into groups with minimum variance, given constraints on the number of elements for each group (for example each group/cluster needs to have at least 2... |
Suppose we have outcome variable $Y,$ one treatment $T,$ and two
mediator variables, $M_{1}$ and $M_{2}.$ We write the structural
model as:
$$
Y=\beta_{0}+\beta_{1}T+\beta_{2}M_{1}+\beta_{3}M_{2}+\epsilon
$$
$$
M_{1}=\alpha+\alpha_{1}T+v
$$
$$
M_{2}=\gamma+\gamma_{1}T+e
$$
Here, the direct effect of $T$ is straightforw... |
I have completed data collection and I have a Spearman's correlation of .64. My advisor is wanting me to report the effect size and from everything I have read and can find it appears that .64 would fall into the large effect size category. However, he is wanting me to square .64 and report that number as the effect si... |
I am trying to find out what is the effect of activities(like jumping, weight lifting etc.) on behavior (such as attitude towards participating in a marathon). (sample size of 60 observations for each variable)
I have 10 different activities coded as 1-participated, 0-did not participate. Based on these I also created ... |
Here's my understanding of topic model, suppose there are 4 topics generated from running LDA from the cleaned corpus(user reviews).
<Topic j: word1(prob.), word2(prob.), word3(prob.)>
Generated Topics
Topic 1: word1(0.4), word2(0.4), word3(0.2)
Topic 2: word1(0.7), word2(0.2), word3(0.1)
Topic 3: word1(0.6), word... |
Trying to learn Siamese networks for ranking tasks from here, I find it hard to understand why triplet loss was ever introduced at all, theoretically. I understand it works better in practice, but would like to understand.
The contrastive loss
$L(A, B) = y|f(A) - f(B)| + (1-y)max(0, m-|f(A) - F(B)|)$
would push similar... |
Trying to learn Siamese networks for ranking tasks from here, I find it hard to understand why triplet loss and contrastive losses have the "margin" element in them.
The contrastive loss
$L(A, B) = y|f(A) - f(B)| + (1-y)max(0, m-|f(A) - F(B)|)$
The triplet loss
$L(A, P, N) = max(0, |f(A) - f(P)| - |f(A) - f(N)| + m) $
... |
Trying to learn Siamese networks for ranking tasks from here, I find it hard to understand why the contrastive loss is not symmetric for positive and for negative examples.
The contrastive loss
$L(A, B) = y|f(A) - f(B)| + (1-y)max(0, m-|f(A) - F(B)|)$
uses a L2 norm for positive examples, but uses a hinge loss for nega... |
This post explains how to derive the Kullback-Leibler divergence between two beta distributions.
https://math.stackexchange.com/questions/257821/kullback-liebler-divergence#comment564291_257821
I understand the logic, but is there a formal source that derives this result? I would like to be able to cite it.
|
I read not too long ago Nelder and McCullagh's book Generalized Linear Models and thought the book was fantastic and I consider it a useful manual on the subject. Not surprising that's the case, considering Nelder's one of the authors.
However, the book is 40 years old, and surely things have changed since when the boo... |
Hi is it normal for the upper fence to be greater than max? If not, what might have gone wrong? I am using Empirical Rule and doing calculation mean +3 * IQR
Thanks
|
I am working with genes and I am designing a model that its dependent variable must be diagnosis, whereas the rest of potential variables to include are sex, ethnicity(2 levels), rin(RNA integrity number), age and region(2 different body areas where sampling occured). Rin and age are continuous and I have transformed t... |
I have data of patients surviving or not at 90 days after an event. Event happened on different days. Should I create a separate column in my data calculating surviving days for each patient and using this in my analysis?
|
Standard deviation of sampling distribution is given as σ/sqrt(n). But usually the population parameter σ will be unknown.
In that case, how do we calcuate the standard deviation of sampling distribution (lets say while working on hypothesis testing) ?
One possibility is that we take a large number of samples N (each ... |
When training a CNN classifier for the Fashion-MNIST, I have noticed that there are multiple instances that validation error is not improving even if the tesing accuracy is improving every epoch or vice versa.
Indeed, I have epochs that have 90% testing accuracy however the validation accuracy did not improve and the w... |
I have returned to a piece of work and was re-running some statistical analysis. I found differences in the P values (which is > 0.05) and OR confidence intervals which was greater than 1. Is there an error?
logr1 <- glm(fibrous.high ~ age + sex + prs_cat.f, data=df[which(df$age_tert == 1),], family = "binomial")
# su... |
I am trying to design some generative NN models on datasets of RGB images and was debating on whether I should be using dropout and/or batch norm.
Here are my thoughts (I may be completely wrong):
Dropout:
From my understanding, this is used in supervised networks to curb overfitting by making sure each neuron represen... |
In finance, the price of an asset is given by the following formula.
$P_t=P_0* e^r$
r=returns
Pt = Price at time "t".
P0 = Actual Price.
Likewise, it is assumed that the yields (r) will follow a normal distribution with mean $u$ and variance $\sigma^2$.
so, the distribution functions
$$
F_p(p) = P(p_t\le p_t)=P(p_0 *e^... |
The null hypothesis assumes no difference between groups .Testing Data normality revealed non non-normal distribution so I opted for the Mann Whitney , but testing for Levene Homogeneity of Variance and Box plots showed unequal distribution . does that mean I should accept the null ? or do I have to proceed with other ... |
I am trying to understand Siamese networks, and understand how to train them.
Once I have a trained network, I want to know if a new image is close or far to other images in the train set, and fail to understand how to do that.
Here this question was more or less asked before.
The gist of the answer is:
compare cosine... |
I wanted to apply Monte Carlo with antithetic variables to estimate $\int_{0}^{\infty} e^{-x} \,dx$ (equal to 1). I used this R code.
a <- runif(1000)
f <- function(x) exp(-x)
x <- f(a)
y <- f(1-a)
mean((x+y)/2)
However, it returned 0.632577961884066, which is not 1. I am really confused.
|
It has been a long time since I did statistics in uni and I have a "simple problem" that I need solving.
I need to determin for a sample size for a limited population of documents ( lets say 200 ).
The sample size should answer the question: If all of the documents are correct ( yes/no ) then with 99% probabilty, or co... |
I am slightly confused about the way accelerated failure time models work in comparison to proportional hazard models.
Is it a correct statement that while the PH model assumes covariates multiply the hazard function (hence proportional hazards), the covariates multiply the survival function in an AFT model?
Is $S(t,... |
So I'm hoping to a regression of Human Development Index against some economic variables I think could affect it. Some types of aid per capita, education spending by government as a percentage of gdp, the actual gdp per capita and finally the % of the population with water access.
Now, for all the variables but the las... |
I am looking for informations about metrics for classification with 3 unbalanced classes. I have following numbers of samples in every class:
1
As you can see two classes are quite balanced and one is not (and I can't add more samples to this class). I was looking for methods for imbalanced data and I know I can add cl... |
I have been measuring flux of CO2 in (mmol m-2 d-1) from two different rivers and I now want to do a statistical analysis using IBM SPSS but I'm not sure where to start. One lake is showing negative flux, because the lake has acted like a sink for the CO2.
I have made a histogram first see how the data looks like, as y... |
I am working currently on a private dataset that has a similar structure to MIMIC-III. The dataset has following structure:
p Patients,
e Examinations,
t Timepoints
For every patient there are multivariate timeseries, one timeseries for each exam. The dataset is also highly sparse. For each patient, there is a binary T... |
i am trying to apply lasso linear regression with both scikitlearn and scipy.optimize min method.
However, i cannot reach same result. Code that i created with scipy.optimize can't shrink redundant beta coefficients to zero.
For example let's take alpha parameter as 10,
import pandas as pd
import numpy as np
from matpl... |
According to SelectKBest's documentation page, it 'select features according to the k highest scores', which in this case would be the Chi Square score.
https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.SelectKBest.html
If I understand this correctly, the selection does not involve the p-value... |
I am currently dealing with variational autoencoders where I've read the original paper "An introduction to variational Bayes" from Kingma and Welling. I am currently still a little confused about the choice of the prior $p(z)$. For my understanding the variational autoencoder has the three possible distribution famili... |
I am trying to perform Bayesian Analysis in R, using of Monte Carlo Markov Chains to calculate the probability of, in a set of data, there being a gaussian peak at a certain location $x_0$ (my 'target' distribution for this analysis is going to be a normal distribution, centered around $x_0$).
I'm new to R and this is ... |
I ran a DID regression and found my estimate on the DID coefficient to be .022. The units of time I am using are days, and at a certain day around halfway through my data, the treatment group was introduced to a specific policy change. I am just wondering how to interpret this .022 number. Is this saying that relati... |
At the bottom of this Bayesian formula why is a q(z) is brought into numerator and denominator positions?
Is this within the rules of Algebra? Could anything be placed in the numerator and denominator?
|
The PDF of a known NBD given in Equation (1). The parameter a and r are function of $μ$ = sample mean, and $s^2$ = sample variance, as given in Equation (2) and (3) respectively. $r$ = number of failures, $p$ = probability of success
$P(Y=y)=((r+y-1)¦y) a^r b^y ; (y=0, 1, 2,……..)----(1)$
$a=μ/s^2 ----(... |
I am trying to validate and calibrate the conditional inference tree model using the crop yield data, and I started by splitting my dataset into training and test sets.
After splitting, I had to predict the test set to see if the test set results were the same as the predicted ones, but unfortunately the predicted resu... |
I ran two models, a linear regression model and a linear mixed model, I did this because I was suspecting that there were some levels or hierarchy in my data, specifically in my subjects and scenarios. However I am not very familiar with the linear mixed model, I know that my subjects and the scenarios are the random ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.