instruction stringlengths 9 38.7k |
|---|
I am trying to create a Custom PyEnvironment for making an agent learn the optimum hour to send the notification to the users, based on the rewards received by clicking on the notifications sent in precious 7 days.
Below is the code of NotifEnv class:
class NotifEnv(py_environment.PyEnvironment):
def __init__(self, ... |
Suppose I have $M$ data points $x_i$ and associated weights $w_i > 0$. I want to optimize a function,
$$F(\theta) = \frac{1}{M}\sum_i w_i f(x_i;\theta)$$
in the parameters $\theta$. I will assume for simplicity that $\sum_i w_i = M$, the number of data points.
Since I have a huge dataset, I want to optimize $F(\theta)$... |
I am working through some problems from my Bayesian Statistics course and am having trouble understanding a step in the solution to a question. For reference this is the question:
And here is the solution:
In particular I am having trouble understanding the step where the integral disappears and the multiple of the G... |
I am currently reading paper Auto-encoding Variational Bayes and I am not being able to understand the highlighted part in the screenshot below:
I am not understanding why there is f(z) and what is its significance. Also, why the gradient estimator exhibits high variance. It may be because I do not have knowledge on M... |
I have multiple variables that I am trying to perform a VAR model with, but all my variables are non-stationary at levels as they fail the Augmented Dickey Fuller test. Having taken the first difference, they do all become stationary at I(1).
I was wondering, do I perform the Johansen cointegration test on the I(0) var... |
I assume that most of the sources about incidence rates are assuming that there is only one event per person. In a medical context (e.g. cancer) this make sense.
I am able to compute the incidence rate and its CI if there are fewer or the same number of events as people. See the example code below. But when there are m... |
I am attempting to generate a predictive model for a continuous outcome using machine learning models. However, some observations in the original dataset have missing outcome data (and missing predictor values). I had been using mice to impute the missing outcome data, first generating the imputation scheme on the trai... |
Based on my understanding, we can identify the order of an AR process based on where there is a drop in the PACF and for the MA process it is when there is a drop in the ACF.
Both these two graphs are really peculiar to me. It seems that there is no drop; the ACF is decaying exponentially while the PACF seems to have ... |
I am fitting a linear mixed model
LM.fit=lmer(sqrt(18-FAB)~Group*visit_num+Age+sexe+(1|num_sujet),data)
em<-emmeans(LM.fit,~Group,type="response")
Group response SE df lower.CL upper.CL
G1 0.532 0.116 280 0.328 0.785
G2 1.072 0.192 295 0.727 1.483
G3 1.134 0.105 278 0.936 1.... |
I have a prediction problem where each row/entity contains data over a range of time and features can change in importance over time even for a single entity. I am wondering if machine learning models are flexible in learning feature importances with respect to time.
Example: Let's say we want to predict whether or not... |
I have been trying to understand statsmodels.tsa.stattools.ccf, the cross correlation between two random vectors and I tried
sm.tsa.stattools.ccf(np.array([1,2,3,4]), np.array([1,2,3,4]), adjusted=False)
array([ 1. , 0.25, -0.3 , -0.45])
the lag 0 is 1, all right. But if I do
sm.tsa.stattools.ccf(np.array([1,2,3,4])... |
I am currently trying to identify confounders in a multiple linear regression, but I am a little unsure of a couple of steps. These are the steps I am taking:
Check to see if the potential confounders have a significant association with the dependent variable y.
Check to see if the potential confounders have a signifi... |
Suppose we randomly select one of two coins and flip it. In that situation we have random variables $\alpha$ and $\delta$, where $\alpha$ tells us which coin we select, and $\delta$ tells us whether our coin flip comes up heads.
Suppose we model this as follows:
$$\alpha\sim \textrm{Bernoulli}(\rho)$$
$$\beta_0\sim \te... |
I am aiming to do a binomial regression, most aspects are close to textbook situations.
But not on the datasets side, while I have a traditional dataset, that will split into training, test and validation. I also have a dataset which is more a nice to have (in linear programming / operational research, I would consider... |
I have a dependent variable donation intention on a 7-point likert scale(1=totally disagree, 7= totally agree), an independent variable which is a dummy (0= price is not framed, 1 = price is framed) and three moderating variables which are prior exposure to payment on a 7-point likert scale (1 = none, 7 = all), hourly ... |
I am trying to get my head around this assertion by Liu, Y. et al (2011 pp. 7) about SMOTE oversampling technique that:
because SMOTE makes the assumption that the instance between a positive class instance and its nearest neigh-
bors is also positive. However it may not always be true in practice. As a positive inst... |
I have a dataset with 3 features of interest. Within the boosting (and specifically XGBoost) framework, if I want to account for all possible interactions between the features, does this need to be included in the input matrix X? Or would I simply input the 3 features of interest, and XGBoost would consider the interac... |
If I have a mixed-effects linear regression model with a random intercept, the mean of the random intercepts is identical to the fixed intercept. My understanding is that this stems from the assumption that the random intercept components are normally distributed with mean zero.
However if I have a mixed-effects logist... |
On page 661 of the book "Numerical Recipes in C:The art of scientific computing", we fit a set of N data points
$(x_{i}, y_i)$
to a straight line model
$$y(x)=a+bx.$$
We do this by minimizing the chi-square merit function with fitting parameters a,b, as in eq. (15.2.2) of the book
$$\chi²(a,b)=\sum_{i=1}^N\big(\frac{y_... |
I will be conducting a poll on 5 to 10 people. I will have each of them score about 100 samples from 0 to 10 and then I will compare their answers with the expected values of those samples. I am treating the poll answers as the ground truth and I want to see if the expected values are the same. It will look something l... |
When one aims to estimate the treatment effect over time, it is recommended to include the baseline value as a covariate. Assume continuous outcome $y$, continuous time $t$, categorical treatment $x \in \{0,1\}$. Baseline is defined as the value of the outcome $y$ at $t=0$ and denoted by $y_0$. We fit the regression mo... |
Is the backdoor criterion applicable only for "learning" in a causal model (i.e. for estimating the causal effects between variables) or must it also be used when running that model, as in calculating posterior probabilities when trying to estimate the impact of an intervention?
|
I'm trying to cluster ingredients in recipes to see which recipes cluster together. This is a kaggle dataset here: https://www.kaggle.com/datasets/shuyangli94/food-com-recipes-and-user-interactions with ~180k recipes (about 8000 ingredients). My idea was to explode ingredients and create a kind of one-hot vector and em... |
When using generalized additive models, can you partition the effects of variables and interactions?
Here is an example:
library(mgcv)
library(gamair)
data("mpg", package = "gamair")
city <- gam(city.mpg ~ s(weight) + s(width) + ti(weight, width),
data = mpg, method = "REML")
summary(city)
Family: gaussian... |
I have a dataset with about 8000 samples and 18 predictors (16 continuous, 2 categorical). I am trying fit a linear regression, but despite trying multiple transformations, I can't make it meet the linearity assumption by checking at the predicted vs actual plot. The best I can do is:
Also the residuals looks normal t... |
I have a real-valued, unknown distribution $\mu$ and would like to find the largest threshold $t \in \mathbb{R}$ such that
$\Pr_{X \sim \mu}\left[X \leq t\right] \leq q$
with high probability $1-\alpha$, where $q$ is some pre-specified value $\in [0,1]$.
Importantly, $t$ is not a fixed value, but a value that should be... |
Kind of lost where to start with this. Could be easy but I don't know where to start simply by knowing $f(x, y) = 0.5.$
How can I find the probability $P(Y > X).$
|
For my thesis research I have to do Spearman’s correlation tests on a set of ordinal variables. I would like to represent the correlations graphically to include them in the report and give a clearer idea of what is the relationship between the variables.
Since the Spearman’s is on ranks, is it most appropriate to make... |
A past exam paper for my course (BSc Mathematics, second-year module in statistical inference and modelling, unpublished) has a question,
Let $(X,Y)^T$ be a bivariate random variable with joint probability density function $$
f_{X,Y}(x,y) =
\begin{cases}
\frac{1}{5}(x+2y) && \text{if }x\in[0,1],\;y\in[0,2], \\
0 && \... |
I have a data set with the following structure:
dat<- data.frame(ID= c("A","A","A", "A", "B", "B", "B", "B"),
test= rep(c("pre","post"),4),
item= c(rep("item1",2), rep("item2",2)),
answer= c(0,5,4,-3,1,1,5,6))
For each level of ID, test, and item, I want to measure the amount of... |
I am trying to better understand the output for a multi-level mixed effects model. Specifically, I am confused on how to interpret the random-effects parameters, and the random effects variance. Is there something I should look for here to confirm the model is working as it should? And should I report this value in an ... |
I am conducting a step selection analysis of animal movement data using a Poisson model in glmmTMB. The model runs as expected, however, when I use ggeffects to plot model predictions I get a flat line.
Step selection analyses compare the environmental covariates of "used" animal locations, i.e. the GPS locations recor... |
I've found some literature on the subject, but it is rather difficult to read. I am wondering if the following simplified method makes sense. My question is what part is correct in this methodology, and what is wrong.
The model is $Y=P+\epsilon=X\beta+\epsilon$ where $P=X\beta$ is the vector of predicted values ($X$ re... |
Let us assume I am trying to develop a predictive model that will give an indication of the progression of the percentage crack area on bridge decks. Engineering knowledge indicates that the crack area will be zero up to a point (crack initiation time) after which the crack area will grow (typically an S-curve) is assu... |
I have a categorical factor with 100 levels and 100 different proportions. I would like to test (a) whether these proportions differ from 50%, and (b) if any of the levels in particular differ more from 50% than others.
I was thinking I could use a binomial generalized linear model to predict proportions. The intercept... |
Suppose I have
$$X \sim Dist_1$$
$$Y \sim Dist_2$$
and I want to estimate $X + Y$.
I can sample from $Dist_1$ and $Dist_2$ and generate samples for $X + Y$. So far so good.
Now suppose I discover that $Dist_1 = Dist_2$. That is to say, $X$ and $Y$ are i.i.d. Great news! I now only need to estimate one distribution, not... |
Please I need your help. I am trying to run this data using R but it throws an error message 'Chi-squared approximation may be incorrect.' Is something wrong with my data?
> Hypotension_tab1 <- table(VR1$'Hypotension during treatment?',VR1$'Maximum tolerated dose of Vericiguat (mg)')
> Hypotension_tab1
2.5 ... |
Suppose I can observe $Y_{ijt}$, $i = 1,2,..., n$ , $j = 1,2,3$ and $t = $ 3 weeks, 1 months, half a year and one year.
I am interested in whether
$E(Y|j=1,k) = E(Y|j = 2,k)= E(Y|j=3,k)$
$E(Y|j, k) = \alpha_j + \beta_j k $
At first, I thought it was a simple question that I can simply use ANOVA for different period... |
I am working with DAGs as a way to do some causal modeling. I am using dagitty - both the website and the R package. I feel like I have a good grasp of most things related to confounding, adjustment sets, and so on. However, something has me confused. Let me demonstrate by example.
Assume I have the DAG
I understand (... |
What is the difference between ordinary LS and linear least squares? From wikipedia seems like linear least squares is a general category that involves using least squares to approximate linear functions, where as OLS is a specific way to do so?
A few places I've seen linear least squares defined:
"linear least squares... |
Can gaussian kernels reproduce non continuous L2 integrable functions? ( Do non continuous L2 integrable functions lie in the RKHS constructed by a Gaussian Kernel?)
Edit:
I think my question is being misconceived. I do not intend to say that the RKHS is constructed using this argument. My question is that due to the r... |
Background
Suppose I collected a data set of the latitude and longitude of moose tracks within an irregular polygon, and also took a compass bearing of the direction that the hooves pointed in.
Image Credit: © Galen Seilis 2022 (used with permission)
Also suppose that the spatial sampling intensity is approximately un... |
I was going to generate the marginal residuals of a variable by using linear mixed model in R. The marginal residuals are the residuals after adjusting for the fixed effects in the linear mixed model. and I need to use that residual as a new dependent variable used in another linear mixed effect model. I was trying to ... |
I'm sure there's a simple answer to this but I haven't been able to find it yet. All the explanations I've found to calculate Cohen's Kappa in SPSS use data that is formatted with cases that are listed as rows (see image below for example). Then analysing the data as a cross tabulation.
My problem is that for a system... |
I am working with electricity time-series data collected at 15 minutes intervals. I am looking for a procedure/theory to find the pattern/sequence in the time-series data based on given features.
As I am working with electricity time-series data and solving the problem of solar PV identification from these data, the gi... |
Hello everyone, I'm currently doing research based on the model in Competitive fit-revelation sampling and mixed pricing strategy (Wu &Deng, 2021). And I don't understand how they can conclude the expected value of price based on the cumulative distribution function as in pic. Please help me out. Knowing that s,h,V,c ... |
In classification tasks we normally get a set of numbers that represent a probability distribution - they sum to 1. For further discussion, suppose we only have two classes: positive and negative. Suppose, we assign a score of $S$ to a positive sample, thus implying that the score of the negative sample is $1-S$.
My qu... |
I have about 100 water quality parameters for 300 stations, parameters were measured during different years and for each year I have different number of measurements. Not all stations measure the same number of parameters, some measure 3 or 2 parameters, while others may measure 50 or more.
The data looks something lik... |
My model has a violation of normality assumption so the residuals are not normally distributed. I have tried log transformation and Box-Cox, but nothing worked. Any suggestion?
|
Let $X_1,\dots,X_n$ be iid random variables with mean $0$ and variance $\sigma^2$, and let $$\xi:=\frac{1}{\sqrt{n}}\sum_{i=1}^n (X^2_i-\sigma^2).$$
Then, by the standard CLT, we have $\xi\Rightarrow N(0,v) $ as $n\to \infty$, where $v=\sigma^4(\kappa-1)$ and $\kappa$ is the kurtosis. Suppose I estimate $v$ with the co... |
I have forty quite diverse statistical text books at hand but I cannot find a reliable answer.
I’ve studied the following and associated threads, but they didn’t got into it that deep: here and here. Here is also a related question that never got answered.
I am wondering whether one of the two assumptions is a special ... |
My dataset looks like this
+-------+--------+----------+
| ID| Val| Date|
+-------+--------+----------+
|Ax3838J|81119.73|2021-07-01|
|Ax3838J|81289.62|2021-07-02|
|Ax3838J|81385.62|2021-07-03|
|Ax3838J|81385.62|2021-07-04|
|Ax3838J|81385.62|2021-07-05|
|Bz3838J|81249.76|2021-07-02|
|Bz3838J|81324.28|2021-... |
I'm trying to compare the difference in behaviour of an animal with no enrichment to the same animal with two (or more) types of enrichment. (Total active behaviours before/total active behaviours with enrichment A/Total active behaviours with enrichment B etc)
As it is the same animal each time, the results of each t... |
I estimated a random effects panel model and performed the Breusch-Pagan (BP) test for heteroskedasticity. The test is significant, meaning that there is heteroskedasticity. However, the residual plot seems not to have a clear fanning-in our fanning-out pattern.
Also, even after removing outliers with very low or high ... |
I have a setting in which there are three disjoint groups as follows; (1) a group which does not experience any change, i.e., controls, (2) a group who receives treatment 1, and (3) and a group who receives treatment 2 which includes treatment 1.
I am aware of the DD setup with discrete treatment at varying levels whic... |
I have discovered an unexpected curiosity that if
a,b,c,d are independent random variables and are N(0,1) distributed, then
|ab-cd| is exponentially distributed Exp(1). It's easy to verify that numerically.
Is there a proof of that ? or does it stem from some deeper fact ?
I noticed that it when I was considering cross... |
I'm working on multiclass skin disease image classification(caused by bacteria and fungus). Some of the sample images are shown below.
Images contain different background as shown in image_1 and image_3. Also some of the images do not have a background as shown in image_2.
I'm using CNN architectures for multi-class... |
I'm trying to build a model that predicts humidity W
This is the data I'm working with :
tibble [364 x 6] (S3: tbl_df/tbl/data.frame)
$ DATE : POSIXct[1:364], format: "2016-09-01" "2016-09-02" "2016-09-03" ...
$ Pluie mm par jour: num [1:364] 0 0 0 0 0 0 2 0 0 2 ...
$ PLUIE+IRR mm/jour: num [1:364] 38.5 ... |
Is it possible to split linear predictors contribution up when talking glm of non-normal distributions?
If:
$$µ_i = g^{-1}(η_i)$$
and
$$µ_i = g^{-1}(β_0 + β_1X_{i1} + β_2X_{i2} +···+β_kX_{ik})$$
Is it then possible to split $µ_i$ up based on predictors? For instance, is this valid? : $$µ^{intercept}_i + µ_i^{predictor\... |
I'm studying the association between a rare disease and smoking. Because the disease is rare, my contingency table is highly unbalanced with way more Non-Diseased than Diseased individuals, independently of their smoker status.
NonDiseased | Diseased
___________ ____________ __________
Smoker | 4312 ... |
I am running a path analysis for a sample of 75 participants using RStudio. I am comparing two models and have to decide which one to use (I am in favor of Model A, but because of the Chi-square: 0, I am confused about whether I can use it or not). All of my variables correlate with each other, and they are:
z and q: i... |
I am currently running an experiment on a website, there are control and 1 variant. The variant changes one of the features of the website.
Besides calculating the click-through-rate(CTR) of that feature, I also want to understand the impact on pageviews/users, pageview/sessions etc. Most of the users only browse 1 to ... |
I have two independent groups: sample size of group 1 is 24000, and sample size of group 2 is 246. With the drastically different sample sizes in the two group, I need to use the Student’s t-test or the Welch’s t-test or the Wilcoxon rank-sum (Mann-Whitney U) test as appropriate for continuous variables, and use the C... |
I've been handed a binary classification model to look after. The model uses the F1 score for comparison purposes. The challenge is that the F1 score against the test dataset is very high, like 99%, which does not sound very likely considering the business question asked... What typical issues cause such a high figure?... |
I thought I understood the train/validation split basics but this question got me confused. I could acquire very little data. I don't have it already, which is why I cannot just experiment with it. I could either do LOOCV on it, but I believe it is too little data to do any sort of training on it (76 data points, and I... |
I wanted to explore if the change in speed between day and night is similar among a set of individuals. To me, the logic way of testing this hypothesis is running a random intercept model and a random slopes model, and see which one has a lower AIC for instance. However, the response variable (speed) is not normally di... |
I am a researcher at Kew Gardens looking to analyse survival data on populations of reintroduced Green Winged Orchids to sites in Cumbria. I want to statistically analyse the different survivals of total orchid numbers in each of the 4 different sites. I am new to R and I do not know how to format the data for analysis... |
I have a clinical dataset which has already common prognosis scores, like characteristic tumor markers, tumor classification, etc. However I developed a new score which is able to predict patients' prognosis. But how can I show that my score is superior to other already developed prognosis markers? I have read lots of ... |
I have generated this two dimensional random field:
This is done following this page. In particular, I have selected t=23 as dataframe and I have changed some parameters.
As you can noticed, I have selected some random points (50 points).You can also see that there are a lot of zero, a common problem with rain.
At thi... |
I have a logistic regression model that trains a set of binary independent variables (X) on a binary response variable (Y).
The data was gathered from different individuals for who also e.g. socio-demographic data exists.
I can therefore split my X and Y into subsets (e.g. by gender) and train the same model for the in... |
Let $L^2_+$ the set of all $2$-dimensional nonnegative random vectors $X = (X_1, X_2)^⊤$ with finite and positive marginal expectations, and let $Ψ^{(2)}$ the class of all measurable functions from $\Bbb R^2_+$ to $[0, 1].$ Then $L(X)$ of the random vector $X$ with joint CDF $F$ is:
$$L(X)=\bigg\{\bigg(\int \psi(x)dF(x... |
I have encountered a problem of modeling event data with hawkes process. I define the intensity function as:
$$
\lambda(t) = \lambda_{0} + \alpha\cdot\beta\cdot\Sigma_{i}^{n}exp(-(t-t_{i}))
$$
where $t_{i}$ are the times of past events $X={t_{1},t_{2},...}$, $\alpha$ and $\beta$ are two different triggering kernels.
An... |
In my research I have different ordinal variables with 3 levels of scores. Each score represents the severity of a condition. In other studies I see that the same variables are scored on a scale with 6 levels.
What is the advantage or disadvantage of having a scale with a higher number of levels? Having a scale with mo... |
This is a bit long but I wanted to give enough photos and code to explain what I'm doing and the issues I'm having. The main question is in the last paragraph.
I'm examining differences in male and female growth in a wildlife species using GAMMs, and while the GAMM output compares male and female growth across the curv... |
I'm working on a multi-class classification problem using CNN.
Most of the images of each class have a text/watermark at a specific position on the image.
I have a couple of questions.
Does the watermark/text influence the CNN in feature extraction and then in the classification of the images?
Is it fine to train my ... |
I am analyzing data where my experimental design is as follows:
DNA and RNA samples were taken from 3 mesocosms at seven time points across the duration of the study to see DNA and RNA decay across time.
For example:
At time point 1, 1 DNA and 1 RNA sample was taken from each mesocosm (total 3 samples of DNA, 3 samples... |
I'm working on a multi-class skin disease classification problem.
The input images are skin diseased images that have varying backgrounds.
Does maintaining the same background (maybe a white/black background) for all the images help while training a CNN model? If so, what techniques should I use to generate the same ba... |
There are about 20 subjects, 3 treatment groups, and 1000+ genes in my data; the 1000+ genes were processed in two batches. Could anyone comment on why I am seeing parallel lines/clusters in the PCA plots? The plots strike me as funny because
The way the analyte was processed shouldn't differ by batch. But why am I se... |
I have a data set in which female is coded as 0 and male as 1 and then I have different testing scores; writing, reading, math. I want to determine whether the correlation between math and writing scores significantly differs between the male and female populations. How would I code this in R? Note: My sample sizes for... |
A dataset will be used to train a binary classification model. For better understanding/visualization, the data set was divided into 2:
one set with all the rows that result in prediction value of 1
another set with all the rows that result in prediction value of 0
Comparing both datasets, there are small, but expect... |
I absolutely need your help with my research.
When I checked for heteroskedasticity I obtained a weird result from the white test (p value = 0). When I plot the residuals, these are the results:
Honestly I've never seen something like that before.
Here some details about my research:
I have individual data (6/7000 ob... |
A bunch of us are studying for an upcoming actuarial exam and none of us understands item II. doesn't result in intrinsic aliasing.
We've calculated the V = ZDZ' +R_1 matrix and as far as we can tell, there's aliasing. But, maybe there's something about this all that we're not understanding.
Linear Mixed Models: A Prac... |
For $\hat{\theta}_n = \theta + O_p(n^{-1/2})$ we have $$\hat{\theta}_n - \theta = O_p(n^{-1/2})$$
Therefore, we have for any $\epsilon > 0$, there exists a finite $M > 0$ and finite $N > 0$ such that for all $n > N$,
$$P\left(|\sqrt{n}(\hat{\theta}_n-\theta)| > M\right) < \epsilon$$ The above means that $\sqrt{n} (\ha... |
I am trying to apply inverse probability censor weights to my cox proportional hazard model that I've implemented in the lifelines python package and I'm running into some basic confusion on my part on how to use the API. The goal of the exercise is to determine the mortality curves for untreated patients from observe... |
In ecology we use compound distributions to describe species-abundance data. One example is the Poisson Lognormal (PLN) distribution which is a Poisson distribution with rate parameter $\lambda$ that follows a lognormal PDF $f(\lambda;\mu,\sigma)$. The total probability of an observation (count) $x$ is then given by:
$... |
Ignore the method name. Is there a reason why in the Gumbel softmax trick we sample from Gumbel distribution? Since we are doing something similar to a reparameterization trick, can't we just sample from a normal distribution? I know Gumbel distribution are use to deal with extreme values, is this why we use Gumbel dis... |
I have been collecting data where participants have been allocated to one of three different conditions and had to answer some questions. The data looked like this:
Condition Response
1 a 5
2 b 2
3 a 7
4 c 6
5 b 3
I was planning to do an ANOVA but the assu... |
The majority of us are aware of properties related to fairness of coins or dice and all standard text/reference books cover the definition of fairness of a coin.
In probability theory and statistics, a sequence of independent Bernoulli trials with probability 1/2 of success on each trial is metaphorically called a fai... |
I'm estimating the following model:
$Y_{i,t} = \alpha_{0} + \alpha_{1}X^{1}_{i,t} + \alpha_{2}*T_{t} + \alpha_{3}X^{1}_{i,t}*T_{t} $
In which $T_{t}$ is the year treated as a continuous variable, tend to measure the linear trend of $Y_{i,t}$.
To give you some background, this work targets a field where using hypothesiz... |
Most commonly when I hear descriptive data analysis using statistics these following functions are often inclded:
Mean
Standard Deviation
Variance
Range
Mode
Median etc.
Is the function "Sum" regarded as data analysis function or not? Any example of data analysis performed using this function alone?
|
First, is there any theory for random sampling being optimal?
Second, consider the following example. Suppose there are two balls in an urn. Their colors can be either white or red. So there are three states: two red, one red on white, and two white.
In random sampling, one randomly draws a ball, puts it back, and draw... |
I am planning a research study where, among other things, I want to understand how an intervention changes income in two groups. I plan to collect income data from each individual at three time points.
What would be the best test to run to validate my intervention (i.e.: To be able to say that, in the event of increase... |
Suppose you have a Normal Mixture Model with 2 Components - you could write this model as follows:
$\pi_1 N(\mu_1, \sigma_1) + \pi_2 N(\mu_2, \sigma_2)$
In the above model, there are 6 unknowns : $\pi_1$, $\mu_1$, $\sigma_1$, $\pi_2$, $\mu_2$, $\sigma_2$. In the context of Mixture Models, these 6 unknowns are generally... |
I have a training time series data , whose last 20% is kept as validation data. I want to check whether the distribution of training and validation features are similiar and normal, so that we can say that model can be fitted on validation data and is representative of training data.
How can I do this...also the size o... |
One of the complementary slackness conditions for a support vector machine states that
$$\alpha_i ( y_i (\langle w, x_i \rangle + b ) -1 ) = 0,$$ where $\alpha_i$ is the lagrange variable. One can then conclude that if $\alpha_i \neq 0$ ($x_i$ is a support vector), $y_i (\langle w, x_i \rangle + b ) -1 $ ($x_i$ lies on... |
I want to prove or disprove the following relation of differential entropies:
Conjecture: $\displaystyle h(f) \le h(g)$
where $f, g$ the density functions of Gaussian mixture models with equal weights:
$$
\begin{aligned}
f \sim \frac{1}{2} \mathcal{N} \left(-\mu, \sigma_0^2 \right) + \frac{1}{2} \mathcal{N} \left(\mu... |
I want to use a Lasso to predict outcomes for different policy scenarios. At the optimal degree of regularization obtained by cross-validation, one important variable in whose impact I'm interested in is not kept in the model. Is there a (statistically valid) way to include a set of variables that always shall be part ... |
For my research I have to do correlation tests to see how different measures of animal welfare are related to each other. When i run the test using the data at individual level, it shows a weak correlation but significant in most cases. However, when I run the tests using data clustered at pen level, the correlations b... |
I have the following problem: we consider an i.i.d sample $\mathbf{X} = (X_1,...,X_n)$ of the discrete set $\{1,...,N\}$. An agent has to infer the probability distribution of $X_i$.
I wanted to use the methods I'm used to with continuous statistics, but I guess I'm doing something wrong at one point. I modeled the pro... |
I am trying to understand how DAGs and potential outcomes look together. I came across these excellent posts (here and here, but I am trying to understand how this looks in a real world example. There are not a lot of DAG examples in my field (International Relations), so I'll use a study on military experience and i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.