instruction stringlengths 9 38.7k |
|---|
In Causality - Models, Reasoning And Inference by Pearl, definition 2.7.1 says -
Potential Cause definition:
A variable $X$ has a potential causal influence on another variable $Y$ (that is inferable from $\hat {P}$) if the following conditions hold -
1. $X$ and $Y$ are dependent in every context.
2. There exists a v... |
Which tests can and cannot be run on a nonprobability sample? (Collected by convenience and snowball sampling - not by me.) Finding a hard no to t-tests and ANOVA across the board. Then finding both yes and no, depending on the website, to chi-squares, correlations, regressions, Mann Whitney, Kruskal Wallis, Wilcoxon ... |
I am trying to compare completion rates of 4 online assessments, A1, A2, B1, B2. A2 is the modified version of A1, B2 is the modified version of B1. I have categorical variable of Completed, Not Completed for each participant (total around 15,000 participants).Probably very igmorant questions.
Could I combine A1 and A... |
I am trying to calculate the marginal distribution P(X) of the following joint distribution P(X, Y).
y=0
y=1
y=2
x=0
.2
.1
.2
x=1
0
.2
.1
x=2
.1
0
.1
Here is how I am calculating $P(X=0) = P(X = 0, Y=0) + P(X = 0, Y=1) + P(X = 0, Y=3) = .2 + .1 + .2 = .5$. Similarly I can find P(X=1) = .3 and P(X=2) = ... |
The central limit theorem states that:
for identically distributed independent samples, the standardized sample mean tends towards the standard normal distribution even if the original variables themselves are not normally distributed.
But I'm confused about the precise meaning of this statement. If the original rand... |
What are the steps to manually calculate the backpropagation gradient with the architecture that I mentioned? because I'm confused, the architecture on google regarding backprop is different from the neural network architecture that I use, I'm confused about the linear layer that doesn't use the activation function and... |
In linear regression, if we assume the error term follows a gaussian distribution of zero mean, and assume we are using mean squared loss, then we can show that this minimisation will lead to finding optimal parameters that estimates the conditional expectation of the target $y$ given $x$.
I have no trouble with this a... |
A glm, where the response is Poisson distributed, is tested by using the analysis of deviance.
In R the model looks like this:
glm(Y ~ A + B + C + A:B + A:C + B:C, family = poisson, data = data)
If I use the anova()-function on this model, which part of the output can be used to test the interaction effect of B:C at s... |
Let's assume the following Null and Alternative hypothesis of a proportion:
H0: $p < 0.01$
H1: $p \geq 0.01$
Generally, in all various hypothesis testing literature, I see equality condition being used for H0. I wonder how I can think about this scenario? and what the test statistics will look like?
|
I currently reading Whitney Newey and Kenneth West's paper "a simple, positive semidefinite, heteroskedasticity and autocorrelation consistent covariance matrix"
For a multi-regression linear model:
\begin{equation}
y_t = X_t \beta_t + e_t, \qquad t=1,\cdots, T
\end{equation}
where $y_t$ and $X_t$ are given, $\beta_t$ ... |
I am using the pROC package in R to generate ROC curves. Using the "coords" function, I can extract the sensitivity (Se) , specificity (Sp), negative predicted value (NPV) and positive predicted value (PPV) for different thresholds. I also calculated the Se, Sp, NPV and PPV for some thresholds using the Caret package t... |
I am studying relations between migration movements of different types of fish and acidity (pH) of water. I am stuck on which statistical test i should use to find those significant correlations and/or regression.
The data are structured:
Date column (between the start of 2021 and the start of 2022)
pH (mean pH for ... |
I am using two data sets to compare total population vs our dataset. E.g.
10% of population are in this age group (census data) vs. 15% of our observed population are in this age group (out dataset)
I would like to be able to show if this difference is statistically significant.
The data comes from raw numbers (discree... |
I would like first to mention that I am relatively new to the Machine Learning (ML) world, but I have a decent background in statistics and econometrics. I am working on a research paper focusing on the gender labor force participation gap. Using the language of econometrics,
the dependent (outcome) variable is a bina... |
Disclaimer: I checked some similar questions but I could not find anything in particular that would work for my case.
I am dealing with a time series going from 2015 to 2023. The data points are the results of an aggregation of scores calculated on a European country's financial news (simplifying: I take financial news... |
How to test the difference between prediction accuracy of two regression models?
My idea is to compare the errors of the two models, e.g., one-predictor vs. multiple-predictor model, in order to show that the difference between the two models (i.e., in terms of the accuracy of their results) is statistically significan... |
How do I calculate mean square error (MSE) from the error obtained from ANN output
|
In logistic regression, we often use maximum likelihood to estimate the parameter vector $\boldsymbol{\beta}$ that parametrizes the logistic equation.
My confusion stems from the following:
We know that the logistic regression is finding the conditional probability of $Y$ given $X$, i.e. $P(Y = 1 \mid X)$ for the bina... |
My data is observational data, and that's made it all kinds of ugly, and I can't decide what statistical test is needed. I have one response variable, which is categorical (Species 1, Species 2, or None). I have about a dozen explanatory variables, which are numeric (canopy cover, soil moisture content, etc.). I want t... |
An offset is a variable that is included in the regression but without coefficient (i.e. the coefficient is fixed at/assumed to be 1). I want to impose restrictions on my regression and I read that it can be done with offsets (source). However, I do not understand how an offset can result in a restriction. Furthermore,... |
My question is specifically directed to the hiClass Python package for hierarchical classification (I am not sure if it is right to ask here, since I am not reporting an issue). After reading answer to this question that the package is actively supported.
I am working on a dataset for travel mode recognition problem. I... |
Cox proportional hazards model:
$$ \lambda_2(t)=\lambda_1(t)e^{\beta}$$
I have survival data for two different groups
I would like to find the profile of the partial log-likelihood for the data as a function of $\phi$, the hazard ratio $\phi=\exp(\beta)$, and produce of plot in R but I am not sure of where to start.
I ... |
I am testing invariance between two groups. Configural and metric invariance is given. When adding the restriction of equal intercepts, lavaan gives me the warning that the smallest eigenvalue is close to zero (albeit positive) and that this might indicate that the model is not identified. Model fit is great, however, ... |
I have run the model:
model2 <- lmer(tas ~ station + (1 | date), data = all5)
where station is a categorical variable with 4 levels.
I want to check for variance homogeneity.
I find the residuals from lmerresid <- resid(model2).
If I run the levene test:
leveneTest(lmerresid ~ all5$station) I get p = 0.6572 so it impl... |
I'm modelling binary ecological data using a GAMM and I'm having trouble understanding what the 'Select = TRUE' option is doing. As I understand it, 'Select = TRUE' is meant to add extra penalization to all smooths in the model (i.e. lower EDF of covariates and sometimes knocking them out of the model entirely), but I'... |
I am trying to self-teach probability and statistics for Machine Learning career. However I want to learn very well as doing research in AI is my goal.
Which books should I use to learn probability, frequentist statistics and Bayesian statistics and which one should I go first ?
I also know some basic probability, the ... |
I watched this (with time marker to important moment https://youtu.be/TCH_1BHY58I?t=3040) video of Andrej Karpathy explaining some language model, and in ~50:40, he explains how to pick good initial learning rate. He does 1000 consecutive training steps while gradualy increasing learning rate. Then he plots LR versus l... |
I have several variables and I would like to test for possible linear correlations between. However, the data is across 2 groups, and there is a significant group difference in these variables. I know I could just correlate within subgroups, but then I would have only half the data points in each subgroup. Would it be ... |
I have a correlation of 0.777 but only a p-value of 0.069 (not significant) on my Pearson's test. My sample size was of 54. Should my hypothesis still be rejected even if there is a correlation? Is the non-significant p-value due to sample size?
What can I say about the hypothesis in this case?
|
My apologies if this has been previously answered.
I am fairly new to statistics of clinical trials and I want to know how the expert statisticians handle continuous variables like "time to event" to identify responder groups and non responder groups within a clinical trial.
I am assuming Survival graphs (https://cran.... |
I am new to R and would like to follow the answer to this: Simulation of logistic regression power analysis - designed experiments
I would like specifically to know if I have power to detect a contribution to the model in an interacting co-variate term (Combined represents gene*prs_standardised). My data is case/contro... |
I am currently working on a dataset (count data) from a rather heavily unbalanced sampling design.
In particular, I would like to be able to predict the abundance of the studied species according to multiple landscape and meteorological metrics. To do so, I have tried to build GLMMs (with a negative binomial distributi... |
I'm following the derivative calculation of Batch Norm paper:
Something doesn't seem right. In the 3rd equation shouldn't we lose the 2nd term as the sum is equal to 0 ($\mu_B$ is the mean of the $x_i$ over the batch)?
And worse, in the 4th equation, for the same consideration, once we will sum the loss over the entir... |
I've heard that one solution to analyzing compositional data (in my case five predictors that are proportions summing to 1) is to simply remove the intercept.
This seems like a much simpler solution than transforms, and allows all predictors to be included.
I'd like to double-check that this is an acceptable approach. ... |
I have implemented a beta regression and am a little confused on how I should interpret the coefficients of my model. For context, both my independent variables and dependent variable are expressed in percentage form, ranging from [0, 1]. The only exception is one independent variable which takes the binary value of 0 ... |
I have a dataset were a small number of individuals were sampled each year for their sex. I would normally use a binomial model (link = logit), to analyze sex ratios, however, in this system, the ratio of F:M varies by size class. Therefore, to estimate the overall proportion of females in the population, I need to acc... |
I have $X_1, X_2,\ldots,X_n$ be a random sample of size n from a distribution with probability density function:
$$p(x) = \theta^2xe^{-\theta x}I (x > 0).$$
How can I find an asymptotically normal estimator?
|
Given these data, reflecting individual data on 206 subjects, two treatment groups ("uc" and "texting") and race ("nonblack" and "black").
My goal is a calculate a risk ratio (with 95% CI) for each treatment group. The risk ratio of interest is defined as the proportion with outcome == 1 in the 'nonblack' category divi... |
I Would like to compare if results from two models are significantly different.
The models have been trained on the same samples in a K-fold cross validation setup, so both will spit out K performance scores, for which we can test is the mean of the performance is significantly different with a related T-test.
At first... |
When I run the code posted at the bottom (using the summary() function of the R survival package, I get the output shown immediately below:
Some sources (http://www.sthda.com/english/wiki/cox-proportional-hazards-model) state that the z-value is the “Wald statistic value” and continues “It corresponds to the ratio of ... |
I have implemented a beta regression and am a little confused on how I should interpret the coefficients of my model. For context, both my independent variables and dependent variable are expressed in percentage form, ranging from [0, 1]. The only exception is one independent variable which takes the binary value of 0 ... |
I was wondering if someone can shed some light on which cross-validation method should I, in general, use more often: k-fold cross-validation or repeated random sub-sampling validation.
From Wikipedia, I understood that k-fold cross-validation makes sure to partition the data, that is, that every data point is in the t... |
I am in the context of an observational study, but let's take as an example a randomized control trial studying the effect of treatment $T$ on outcome $Y$.
A difference-in-means test indicated no change in $E[Y]$. However, you notice that $Var[Y \mid T=1]$ is much higher than $Var[Y \mid T=0]$. a) How do you test for $... |
I've been working on building a random forest model using h2o.ai in R for climate data. I know that there is some issue, either with my understanding of randomforest, code or dataset. However, I'm not sure exactly what is causing my model to have a very high MSE and low percent variance explained. My apologies in advan... |
Let’s say that my survey has 2 sections that I want to find the correlation between, they each have 5 questions with each question being a 5-point Likert scale. What do I do after? What are the steps to doing this in Excel? I can't seem to find any good guides on how to do correlation with Likert scale variables. I was... |
I may be missing something obvious, but is there a python package that can reliably do density estimation of a PDF in high dimensions (e.g. 512)? I know of scipy's gaussian_kde but KDE methods work poorly in high dimensions. There is a lot of literature on various ways to get high dimensional density estimation to work... |
Apologies if the question is unsuitable for this site. Please direct me to the appropriate place, and I will take this down.
I am a statistician, and I have been struggling to find a meaning to the existence of statistics as a discipline in today's world where everyone cares about big black box models applied to big da... |
Suppose $\text{supp}(X)\subseteq \mathbb{R}_{\geq 1}.$ Can we say $$\text{Cov}(X,\log X)\geq 0?$$
On one hand, we can say by monotonicity of log and Jensen's inequality that $$X\geq E[X]\implies \log X\geq \log E[X]\geq E[\log X].\quad (1)$$
Now if it also holds that $$\log X\geq E[\log X]\implies X\geq E[X]\quad (2)$... |
I took some of the data analysis courses and did a few projects on my own and I feel that I am so far from the community of data analysts and knowing new features when it releases or any new articles, questions, etc.
So I want to know the best resources where I can follow to grow up my knowledge and level up my skills,... |
My ultimate goal is a way to evaluate a group of "m" covariance matrices (all size n*n) so I can pick an arbitrary one and calculate "this one is tighter than the average covariance matrix by a quantifiable amount" so I can select the top XX% and weight them according to how good they are.
One approach would be to desc... |
This question is a follow up to this question.
Suppose $f$ is strictly increasing. Can we say
$$\text{Cov}(X,f(X))\geq 0?$$
Ben's answer on the aforementioned linked post can be extended to show the result holds for $f(x)$ concave and $g(x):=xf(x)$ convex. This post seems to suggest the desired inequality for the gene... |
The following is code for optimization, during which I calculate the validation error(or test error) too.But I am not sure whether it is a good graph or if there is some problems with my code.Please give me some suggestions.
code
colnames(data_plot)[3] <- "CellType"
n <- nrow(data_plot)
set.seed(12345)
id <- sa... |
Could you provide formal definition for p-value? Or, do you have any good source for it?
For a day, I've been searching for the formal definition of p-value, but I couldn't yet. The majority of the book of statistics are mathematically non-rigorous and most of them didn't define p-value formally. I found two books belo... |
I'm performing survival analysis on time to drop out of a certain program. However, the censoring of each case depends heavily on the length of the program. For example, some programs only last 3 months, while some can last up to 18 months. Programs of length 6, 9, and 12 months account for 80% of the observations. The... |
I am currently using the package PSweight from R to do propensity score with 2 different methods : IPW and Matching.
I first used it to make a propensity score based on IPW method to get the average treatment effect (ATE), but then i also tried the matching method and i am wondering if i should chose between one or ano... |
I have a time series broken down by day, and there are gaps in it that I have marked in red:
the distribution there is not normal
How do we approach modeling a system that will look for anomalies here if they appear?
Because if you differentiate as I did above and try to set limits, for example, using Z score or IQr,... |
Im working on a quantile regression model where I look at how imports (impi,t) of intermittent electricity (inti,t) such as wind solar from country i in period t impact day ahead prices in Norway in period t. My current model can be simplified to this:
pricet ~ impi,t + inti,t + impi,t*inti,t
However, i´m not entirely ... |
I have 4 experimental groups/conditions and 5 measurement times for each group/condition. Each participant only took part in one of the 1 conditions. In total there are 27 participants and each condition has around 6 participants.
In my data set, several participants are missing a value during one of the 5 measurement ... |
I have conducted a very large survey (n>10,000). I asked all participants a series of demographic questions (gender, ethnicity, educational background etc - all categorical). I then asked all participants further questions where again all is categorical, for example "what will you do? a, b, c, d, e (1)
Afterwards,I ask... |
I am self-learning about structural time series, and for me the best way to understand topic is to simulate the data myself. I want to simulate a time series of local level model with seasonal components:
$$y_t = \mu_t + \gamma_t + v_t$$
$$ \mu_t = \mu_{t-1} +w_t$$
Where both disturbance terms are normally distributed.... |
I have a regression which has treatment and control groups.
I want to test how the treatment group (binary variable) reacts during crises periods compared to control group.
The crisis variable is a summation of several crises dummy variables that the maximum value is two (showing only values of 0, 1 and 2) as there are... |
I ran an ordinal regression in R using polr(), and have checked the proportional odds assumptions with brant() from the brant package. I am very new to ordinal regression and I am a bit confused about how to interpret the output of the polr model.
My dependent variable is an ordered factor with 11 levels, and I have a ... |
I'm trying to figure out under what conditions one would make 'unconditional = FALSE' (in plot.gam and gratia::draw), because in my case 'unconditional = TRUE' shrunk the uncertainty bands around my smoothing parameters - which I take as a good thing. This is probably not always the case, but is there an intuitive expl... |
Let us assume that we are given $m$ iid samples from an unknown discrete distribution over $[k]$. Let's also assume that we are interested in a distributional property that is label-invariant. Let us define the fingerprint $f$ (also known as collision statistics or histogram of histogram) of the $m$ samples as a vector... |
I have a dataset of 40 patients which receive 4 different treatments, group 1, is placebo, group 2, drug A, group 3, drug B and group 4, drug A+B. Only one dose from each drug and combination. I would like to use Bliss independence model to test for synergy of drugs A and B. My response variable is tumor growth from ba... |
I have a general question about running multiple pairwise comparisons. I did some genetic work in grad school, where we (I believe) utilized a statistical test (Student's T-test?) followed by a FDR-adjustment. This seemed to work fairly well at limiting our gathering of false-positives. However, in my current role, in ... |
Can someone explain to me what's going on in the following?
Suppose we have data with constant dependent variable:
set.seed(42)
dat <- data.frame('y' = rep(10, 100), 'x' = rnorm(100, mean=10))
A bivariate regression model with intercept has perfect fit and constant residuals, as expected:
m1 <- lm(y ~ x, data = dat)
s... |
I'm new to time series analysis and I would like to know if any of you has any suggestion on website to check out about this topic.
|
My motivation is to produce carcasses of animals in an ecosystem.
The animals have discrete sizes in kg (75, 216, 700, 2500, 5000, 8500, 25000).
I also have the estimated percentage each animal contributes to the
total ecosystem based on scaling relationships (49.3,
36.8,6,6.7,0.6,0.4,0.2)
Finally, I also have the ave... |
From various sources and reading, I get to know that, the Nickell Bias associated with employing fixed effects with a lagged dependent variable is small when T is large. I understand the notions intuitively, but I am unable to comprehend the underlying mathematical consistency. I would appreciate it if someone could ex... |
I am struggling to understand two different quantile regression specifications and the assumptions of conditional quantile independence and full independence. In the first specification, suppose we have the location-scale model:
\begin{equation}
y_{i}=\beta_{0}+x_{i}^{'}\beta+(\delta_{0}+\delta_{1}x_{i}^{'})\epsilon_{i... |
The Aalen model assumes that the cumulative hazard H(t) for a subject can be expressed as a(t) + X B(t), where a(t) is a time-dependent intercept term, X is the vector of covariates for the subject (possibly time-dependent), and B(t) is a time-dependent matrix of coefficients.
My intuition was that coefficient plots fr... |
I have a dataset (n=290) that I need to run an EFA. I was hoping to also run a CFA but I'm unsure if I have enough data to do a split sample approach. Please advise.
|
Take the following regressions:
y1 = a1+ d1*y3+ lag(Y)B1 + XG1 + u1
y2 = a2 + d2*y3+ lag(Y)B2 + XG2 + u2
y3 = a3 + d3*y3+ lag(Y)B3 + XG3 + u3
where Y = [y1, y2, y3] is a time-ordered matrix of data, terms "a" are intercepts, X is a matrix of covariates, B and G are vectors of coefficients, and u are error terms. lag... |
I am going through the introduction to XGBoost page, and there is a section where they derive the optimal value of the leaf node, for a given tree structure.
To quote the specific section,
In this equation, $w_j$ are independent with respect to each other, the form $G_j w_j + \frac{1}{2} (H_j + \lambda) w_j^2$ is quad... |
Say I have a questionnaire with 5 questions about anxiety. For each question, their response is rated a 1 or 0. Their total anxiety score is the sum, so an integer between 0 and 5.
Now I would like to run a regression model for explanatory purposes to see the effects of predictors on anxiety level. This data isn't cont... |
This question discusses two equivalent ways to express the canonical loss function for a logistic regression, depending on if you code the categories as $\{0,1\}$ or $\{-1,+1\}$. In the following, let $x_i$ be the $i$th feature vector, $w$ be the parameter vector for the logistic regression, $N$ be the sample size, and... |
Suppose the linear model is $y = \beta x + \epsilon$, where $X \sim \mathcal{N}(0, 1), \epsilon \sim \mathcal{N}(0, s^2)$. If we only observe the sign of the output $y_i$, and the number of observations is large, $i$ how can we estimate $\beta$?
|
I have conducted a CFA for a one-factor measurement model and then proceeded to do multigroup CFAs to test for measurement variance for gender and age (binary variable, median split). Testing for measurement invariance proceeds as would be expected for gender, but I am getting some strange results when testing for scal... |
I am trying to write some code to automatically detect whether a time series is seasonal. I have been looking into using the Kruskal-Wallis test, as there are a few examples of this being useful online, e.g. here.
Basically, you would perform this test by breaking your time series into groups (say, yearly) and performi... |
I am trying to self-taught myself on Calculus for machine learning and read the book by Spivak. But it is too rigorous and need a lot of time to finish it.
As far as I am concerned, Calculus is only used for optimization in machine learning.
I am seeking some good calculus resources especially apt for machine learning ... |
Say I have a laser that emits pulses of light containing a random number of photons, which follow a Poisson distribution. So it has a mean number of photons per pulse.
These pulses go through a filter, which results in each photon having a probability of being either absorbed or transmitted.
I am trying to figure out w... |
Assume we have matrices $A_{n\times n}$ and $\Delta_{n\times n}$ and know that:
$$A^{-1}_{i.}\Delta_{.j}\sim N(0,\,A^{-1}_{i.}\,\Sigma_j\,[A^{-1}_{i.}]^\top)\,,$$
where $\Delta\sim N(0,\,\Sigma_j)$, $i$ shows the rows and $j$ the columns; $_{i\,.}$ means row $i$ (vector with dimension $1\times n$) and $_{.\,j}$ means c... |
if a data set is set up such that it has 5 independent variables and an array of 201 elements of "smooth continuous" data as the dependent variable. I was wondering if there was a model optimized to handle a situation like that. And what form would I provide the data in.
Here is an example of how the data would look. E... |
Let $W_t$ be a complex-valued stochastic process such that
$$W_t = \sum_{l=-L}^L
C_le^{
2iπf_lt}$$
where $C_l$
is a complex-valued rv such that
$\Bbb E{(C_l)} = 0, \Bbb E(C_l^2)
< ∞, |l| ≤ L < ∞$
Also assume $f_l$
is a fixed real-valued constant with $f_{−l} = −f_l$
. Show that if $C_l$ are uncorrelated then $W_t$
is a... |
I'm trying to use an RNN to predict a time series {$y_t$}, where $y_t \in {0,1} \forall 1 \leq t \leq T$ given an input time series {$x_t$}. The elements of the target sequence are not necessarily independent. Which distributions would be a good model of this output? Ultimately, I want to use this distribution over th... |
I have acquired videos from a dashcam installed on a vehicle that went around different portions of an airport. My objective is to detect cracks in the pavements. After identifying them, I then need to geolocate them, i.e., tell where the cracks appear in terms of lat/long.
So far, I have labeled a handful of images an... |
I am trying to obtain the required number of sample $n$ for a given confidence interval $\alpha$ and $X_1 ... X_n$ which are Gaussian rv with $\mu$ mean and $\sigma^2$ variance. I know that
\begin{equation}
Pr(\frac{1}{n}\sum_{i=1}^n X_i - \mu \geq t) \leq \exp{(\frac{-nt^2}{2\sigma^2})}.
\end{equation}
yet, I don't kn... |
Studying Brownian Motion and stochastic integrals in class, my professor rewrote this summand $$1/2*\sum_{j=0}^{n-1} (W((j+1)T/n) - W(jT/n))^2$$ as $$1/2*W^2(T) + \sum_{j=0}^{n-1} W(jT/n)(W(jT/n) - W((j+1)T/n))$$
I can't figure out the algebra between these two steps. I've been trying looking at it as a telescopic sum ... |
I’m curious to read about the importance of normality testing in AB tests and clinical trials.
It seems that there is a lot of mixed (and strong) opinions about the necessity for normality testing, the methods in which normality would be determined (quantitative vs. visual inspection), and even what data should be norm... |
The variance inflation factor (VIF) in an ordinary least squares linear regression coefficient is calculated using the $R^2$ of a linear model that uses the other features to predict the feature to which the coefficient corresponds.
If the feature for which we want to calculate the variance inflation factor is binary, ... |
So, the constrained TRPO objective is the following:
$$
J(\theta) = E_t\left[
\frac{\pi_\theta(a_t|s_t)}{\pi_{old}(a_t|s_t)}\cdot A_t
\right]\\
st. D_{KL}[\pi_{old}(\cdot|s_t)||\pi(\cdot|s_t)] \le \epsilon
$$
The off policy actor critic objective instead is:
$$
\nabla J(\theta) = E_t\left[
\frac{\pi_\theta(a_t|s_t)}{b(... |
In linear or logistic regression, we have the following (adapted from Foundations of machine learning.):
As in all supervised learning problems, the learner $\mathcal{A}$ receives a labeled sample dataset $\mathcal{S}$
containing $N$ i.i.d. samples $\left(\mathbf{x}^{(n)}, y^{(n)}\right)$ drawn from $\mathbb{P}_{\mathc... |
I am performing a missing data analysis from a modified (the original data has been modified for the purposes of teaching) Randomised Control Trial.
The missing variable of interest is "prior use of aspirin before randomisation".
There are eight other variables in the dataset. The key variable of interest for this post... |
I used here linear models for simplifying my final approach. Let's assume that a first linear model is estimated to obtain a response that will be then used as covariate in a successive linear model. How could one analytically find the uncertainty around the response of the second model, presuming that uncertainty in t... |
Suppose you are playing a guessing game where there is a box with three marbles. There are three kinds of boxes. Box A contains red, green and blue marbles; Box B contains red, green, and yellow marbles. Box C contains black, white and purple marbles. You are told that there is a 60% chance that this is Box A, 20% that... |
I had to design a loss function max(0,x). It's not differentiable at x=0. In order to train it with gradient descent, what should I do?
I have learned that subgradient can be used instead, so does it need to be changed in the code, or will pytorch/tf calculate subgradient automatically?
Or use surrogate loss, so what ... |
When reading Cox's Principles of Statistical Inference (CUP, 2006), I'm struggling with the case-control study example (Example 7.16, pp. 154ff.) in §7.6.6 on pseudo-likelihood.
Set-up:
Random variables $Y,Z,W$ are modelled by $P(Y=1|W=w,Z=z)=L(\alpha+\beta^Tz+\gamma^Tw)$ (7.65) in which $L$ is the logistic function.
... |
I’ve got an interesting question at one interview.
Assume that we already trained and deployed some fraud detection model for some online service, and it has helped us to decrease amount of fraudulent transactions by 50% (for example, we temporarily ban suspicious cards).
This is great, but how can we deal with the fac... |
I am using a neural network to input some complex numbers and to obtain complex numbers. I converted the input complex numbers into real values by stacking the real part and imaginary parts as a vector. I used the ReLU function as an activation function. I need to put a constraint of unit modulus in the output value.
I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.