instruction stringlengths 9 38.7k |
|---|
I have price data from the last two years from my online groceries purchases on an online supermarket for all the products I bought. I want to study the increase of prices for the products that I usually buy; since I didn't always buy the same products, I am taking an average of a six months period for all the products... |
I am trying to conduct a research study on the local population of homeless individuals in my county. But, before I can detail my study, it would be helpful to provide some context.
Context: It is hard to know the exact size of the homeless population because the population is relatively dynamic (people move in and out... |
I am trying to measure the effect of an event on some sales data. An event might be turning on a new payment method for customers, or a discount coupon promotion. Does it make sense to try a time series decomposition into Trend-Seasonal-Residual, and then try to spot the effect in the Residual component?
Maybe it would... |
I am very new to data science. Something struck me about Mars regression. The dataset is not on the same scale, so some columns are %, others are integers. I want to do clustering before doing Mars regression. I know I need to scale the data for this. But I don't know if I should apply the Mars regression to the scaled... |
Is there a way to generate two correlated variables with a Bernoulli distribution where the sample distribution is exactly the same as the population distribution?
I can easily generate a pair of correlated variables with a Bernoulli distribution. Here is an example where the two variables have a correlation of 0.5, an... |
First time posting here.
Suppose I have a random variable $X$ and after various algebraic rewriting and calculus I have arrived at a closed form of $\phi = \mathbb{E}[X]$. However, I am not totally confident in the algebraic manipulation so I want to verify the result by sampling.
I can sample directly from $X$ and I a... |
I need to prove the following
and I have the following
Mβ^=v
lambda_min is the smallest eigenvalue of M
and I've found the eigenvalue of the $\beta^n$ which is equal to
I tried to use the Cauchy-Shwartz inequality to get some equation in form 1+x <= e^x, but couldn't figure out the way.
|
I'm using the mgcv (1.8-40) bam() function with discrete==TRUE method to fit in GAM for a very large dataset. It occurs that the summary table and results of the same fitted model differ by computer RAMs (cluster vs PC). I'm using the Fraud Detection - Credit Card data from Kaggle to generate reproducible examples belo... |
I have been given the question -
Consider the linear trend model: = 0 + 1 + + 0.5−1. You can assume 0=10, 1=0.2 and ^2=1. Find Var().
I tried solving this question by doing this -
var() = var(0 + 1 + + 0.5−1)
var() = var(0) + var(1) + var() + var(0.5−1)
var() = 0 + (1^2).var() + ^2 + (0.25).^2
var() = (0.04).var() +... |
I have a set of data I need to analyze, and it is my first time doing this and my advisor isn't sure what to do either, so some guidance would be really super. For my project, I tested groups of seeds under certain treatments - the seeds were not individually tracked, but tracked as groups.
There were 3 groups of seeds... |
The scores are $R^2$ values of around 20 machine learning classifiers. Which of the scipy statistical tests methods would be appropriate here? (https://docs.scipy.org/doc/scipy/reference/stats.html#statistical-tests) I'd like to see the best scores, for example, "according to a t-test with p <.05". For example, the cla... |
I'm reading Masking and padding with Keras, in the beginning, an input example is:
[
["Hello", "world", "!"],
["How", "are", "you", "doing", "today"],
["The", "weather", "will", "be", "nice", "tomorrow"],
]
The article states:
The data is a nested list where individual samples have length 3, 5,
and 6, respectiv... |
Now, consider joint density of $X, Y$ :
$$
f_{X, Y}(x, y)=\left\{\begin{array}{l}
\frac{1}{\pi} ; X^2+Y^2<1 \\
0 ; \text { Otherwise }
\end{array}\right.
$$
Derive $E(Y \mid X)$.
I know how to calculate E(Y), but how do you calculate the conditional expectation? please help
|
We had a true-and-false exercise in our linear regression class that stated:
When designing a study, larger SSX is generally preferred to obtain a more precise estimate.
And the answer is true.
I only know that $SSX = \sum^n_{i=1} (x_i - \bar{x})^2 = (n-1) \widehat{VAR}(x)$. Why would it be better to have a larger SS... |
It is well known that Probit regression can be formulated as transformed linear model in the following sense: Suppose that $Z = X\beta + \epsilon$ for some normally distributed $\epsilon$ and let $Y = 1[Z\geq 0]$. If we observe $Z$ we have an ordinary regression model. If we observe $Y$ we have a Probit regression mode... |
Consider a normally distributed random variable $X\sim N(\mu,\sigma^2)$ and a Lebesgue measure $\lambda$ on $\mathbb{R}$.
Here, the value of the distribution at $\mu$, $F_X(\mu)$, is strictly positive, but the Lebesgue measure at $\mu$ is zero (i.e. $\lambda(\mu)=0$).
Then, there is a seemingly confusing point: the dis... |
There are 2 individual groups. Group 1= 40 dental students. Group 2= 4 faculty members (who are the assessors). To compare their scores on the 'Likert Rating scale', regarding the use of rubrics, can we use the Independent t-test?
|
I read that probability based binary classifiers have 0.5 as default probability threshold for getting hard 0/1 labels (in scikit-learn for example) but this could be fine-tuned with methods like receiver operator characteristics. I have run experiments in multiple times (best candidate is defined by Youden's J statist... |
stats noob here.
I have a (circular) dataset with values in [0, 2pi]. I need some kind of a measure of how disperse or diverse the dataset is. I have looked a bit into non circular (regular) data, and I happened to come across coefficient of variation as a non-dimensional measure of dispersion in a dataset.
My question... |
I created the following density plot for both values of a binary variable. The variable represents unrealised gains. If a (unrealised) position in a wallet (cryptocurrency) is at a gain it takes the value 1 and 0 otherwise. The value on the x axis represents the holdingtime, i.e. the time that passed since the position... |
Suppose that there are 2 models,
$y$ ~ $x_1+x_2+x_2^2+x_1:x_2+x_1:x_2^2$
$y$ ~ $x_1+x_2+x_2^2+x_1:x_2^2$
For both models, their adjusted $R^2$ values are the same and BIC values are similar with the 2nd model having a slightly lower BIC. However, the interaction term, $x_1:x_2$ in model 1 is insignificant.
Not quite ... |
I am trying to understand the loss definition for diffusion, but lots of questions already arise during the first step of the derivation. (I have nearly zero statistic knowledge, but I am good at linear algebra and calculus, so please point me to the right resource if possible). I am currently learning from https://www... |
In the context of jointly testing J linear restrictions, I am reviewing the distribution of the F-statistic, which is F(J, n-k). Below, R is a full row rank Jxk matrix, q is a Jx1 vector, and the null hypothesis tested is $H_0:R\beta-q=0$. We assume that residuals are homoskedastic and that they are conditionally norma... |
Background:
I do research in medical imaging. In a current study I am analyzing a measured variable from images that may predict prognosis/survival. Studies of potential imaging survival predictors are common.
It is often beneficial to perform some kind of normalization to negate scanner/examination/patient-related eff... |
Suppose I have unstandardized data and estimate a 2-level Bayesian hierarchical model with varying intercepts and no covariates. The grand mean $\alpha_i$ and within-$i$ variance of the outcome $\sigma_y$ are estimated since I assign them priors.
$$y_{it} \sim N(\alpha_0 + \alpha_{i}, \sigma_y) \\
\alpha_{i} \sim N(0, ... |
I have reaction time data from a repeated measures design. Each participant completed 24 trials and gave four reactions per trial. I want to calculate two difference scores from these four raw reaction times for each combination of trial and participant and test whether these two difference scores are correlated.
Howev... |
Suppose we have multivariables ${\boldsymbol {\theta }}=\left[\theta _{1},\theta _{2},\dots ,\theta _{d}\right]^{T}\in {\mathbb {R}}^{d}$, and we want to estimate the function of parameters $\boldsymbol \phi(\boldsymbol {\theta })$ with unbiased estimator $\boldsymbol T(X)$, CRB states that we have a lower bound as:... |
I have a linear mixed effect model with the following output
library(nlme)
library(readr)
data = read_csv("data/data/data.csv")
reg <- lme(independent ~ V1+V2+V3+V4+V5+V6+V7+V8,random = ~1+V1+V2+V3+V4+V5+V6+V7+V8|regions, data = data, control = lmeControl(msMaxIter = 1000, msMaxEval = 1000))
Linear mixed-effects model... |
I was fitting a logistic generalized liner mixed model using glmer from the lme4 package when I stumbled upon the fact that the results change drastically when the order of the data was changed. So I tried running the same analysis with glmmTMB. glmmTMB actually produced more robust results. It also generated fewer war... |
I am reconstructing a probability vector from data using non-negative least squares:
$$
\sum_\alpha \left(\pi_\alpha - \sum_i W_{\alpha i}p_i\right)^2\rightarrow \min,\\
p_i\geq 0,\sum_i p_i=1
$$
However, I am really interested in a less finely grained probability vector, $w_\nu$, each element of which is a sum of seve... |
For a random variable $X$, does $f(X) = X$ imply that $f(.)$ is the identity function, at least over the support of $X$?
|
I'm completely new to Bayesian statistics and tried to get a grasp of the fundamentals for a specific case I'm working on. However, I feel like I've led myself down a blind alley and I'm still struggling with defining the model.
So, here's the use case in a nutshell: I'd like to build a model that predicts delivery tim... |
I wish to run a version of the following regression:
$$
w_{i}=\beta_{1}HS_{i}+\beta_{2}College_{i}+\epsilon_{i}
$$
In the above, $HS_{i}$ is a indicator variable that takes on the
value of $1$ if the individual is High school educated, and 0 if
college educated. $College_{i}$ takes on a value of 1 if the individual
is ... |
Suppose longitudinal data on $y_{rct}$: the average temperature of region $r$ in country $c$ at time $t$. You $y_{rct}$ fit a 3-level hierarchical linear model with country-year and country deviations from an overall mean. Assuming $y_{rct}$ is centered at 0, a model could be (variance hyper-priors omitted):
$$y_{rct} ... |
I would like to know how likely it is that a randomly sampled result is 14 percentage points above the actual average.
I have 658 households, of which 6% are supposed to be rich. A random sample of 60 households returned 20% rich households. How likely is it that this was just a freak of probability or rather that eith... |
I have been wondering, is there any case in which AIC should be avoided as the evaluation metric? I cannot really find anything but for the advantages - what about the disadvantages? I'm mostly interested in time series models - assuming it changes anything.
|
I am new in learning sigma-algebra. My question is related to computing μ(A\ B). I just need the hints and ideas on how to do it, I will do it.
Let (X,Ao,μ) be a probability space. It is given that A, B and C are 3 sets such that μ(A∩B) = 3/5 , μ(A∩C) = 3/5 and μ(B∩C) = 3/5. μ(A∩B∩C) = 2/5.
How can I calculate μ(A\ B) ... |
I'm confused about getting different results when trying to perform the likelihood ratio test (LRT) with R in different ways that are supposed to be equivalent. Below is the R code with some simulated data. I use GAM model with one predictor, whose significance I want to evaluate by comparing the models with and withou... |
I'm having difficulty in understanding this fairly common question:
"A teacher is trying to determine whether or not a new teaching method is effective in helping students understand a challenging concept. The teacher evenly divides 30 students into two randomly selected groups. the first group will be taught using a t... |
variance of 10 data set is 20, and mean is 3. If we add new observation 3 (say). Then total observations are 11. Can we find variance for these 11 observations?
What I did so far...
sum of x_i = 10*3 = 30
sum of [${x_i}^2$ divided by 10] - 9 = 20
or ${x_i}^2$ = 290
now, a new observation added. now n = 11. What is the... |
I have a model that describes 2 dimensional data where each data points is define as d = [category, x].
The category dimension can take 3 different values with respective probability $p_1$, $p_2$ and $p_3$ (with $p_1+p_2+p_3=1$). This can be modeled by a multinomial distribution $MN(p)$ with $p=[p1,p2,p3]$.
The $x$ dim... |
My question is based on the usual setting in credit scoring. Assume we have historical monthly observations of customers, their risk factors $R_{i,t}$ and the flag whether they are currently in default $ND_{i,t}$ and whether they will default within the forthcoming 12 months $D_{i,t}$.
Then we can estimate a logistic r... |
I noticed that a lot of textbooks define probabilities of an event 'A' to be between 0 and 1 (both inclusive).
Do probabilities necessarily have to be between 0 and 1 or is this an assumption we make to make everything nice ?
|
I am trying to evaluate the following integral using Monte-Carlo:
$$
\langle f \rangle = \int \mathrm{d}x~ \rho(x) f(x)
$$
where $\rho(x)$ is a normalized positive function. The integration is performed by generating $N$ random values of $x_j$ whose distribution satisfies $\rho(x)$, and evaluate
$$
\langle f \rangle \a... |
I'm fitting a mixed effects model to binomial data using lme4, and I'd like to bootstrap individual coefficient values. When I do so using bootMer(), however, I'm getting negative values even though I'm fitting a zero-intercept model. Here's the distribution of bootstrapped coefficient values (for the second coefficien... |
I am studying the analytical variance of a clinical test. In published work I observed two things: 1) when looking at a particular patient, the std dev of repeated replicates was 11.5 points. 2) when looking at pairs of replicates from many patients, the std dev was 16.
I was curious about this difference, so i simulat... |
Hello I was curious if this kind of plot had a name. This is generated from SAS when doing Tukey's HSD to visualize which pairwise difference is significant. I quite like this visual but don't know what to call it for example learning how to make it in other software.
|
An additional complication arises with estimation, since maximum likelihood estimation may not be feasible without making unrealistically strong ?????"assumptions"????? about third‐ and higher order moments--Analysis of longitudinal multiple‐source binary data using generalized estimating equations
LM O'Brien, GM Fitz... |
I've been looking at leverage plots, but it seems to me that they are always related to linear regression models.
For instance, this explanation of a hat matrix considers a linear regression model: Hat matrix and leverages in classical multiple regression
Does it make sense to calculate leverages if we are using, say, ... |
I have the results from two surveys taken approximately one year apart. All of the questions are Likert-type; many questions are the same between the two surveys (these are the ones in which I am interested). Some of the survey respondents may or may not be the same (the results are anonymous). For the first survey, I ... |
I have a velocity timeseries which is not stationary (Fig. 1). In other words, it is subject to trends and/or seasonality. I would like to report a mean velocity for this timeseries. A common way to do that in my field is to plot the autocorrelation function, take the value x at the zero crossing and then sample the ti... |
Very basic question... Let's say I have 2 independent linear regressions, y1 = a1X + b1, y2 = a2x + b2. For each of these regressions I have a standard error - How can I calculate the standard error for the linear superposition of these regressions y3 = y1 + y2? Keep in mind that the X samples for y1 and y2 are differe... |
I want to fit Bradley-Terry models in R looked into the BradleyTerry2 package. However, as they write in their vignettes:
(Note that a random intercept is the only random effect structure
currently implemented in BradleyTerry2.)
In the CEMS example, there are student-specific variables x that influence which school (... |
I am wanting to compare two independent groups on a likert-like item. To explain, the dependent variable is structured so that a 1 = <1 units, 2 = 1-<2, 3 = 2-<3, all the way up to option 7 = >6. Initially, I was planning to use a t-test to compare the two groups as I have read that with seven items, even a likert scal... |
I have a specific problem, and I do not know how to solve it.
Problem:
The table shows car examples, each with its characteristics. Each car type and respective specifications correspond to a crash rate, except for the example "F".
For simplicity, each car is made out of 7 components. Each of these components has a typ... |
I have found similar questions in these links (1,2,3), but none of them is from CrossValidated (and I still don't grasp the solution, so here I am).
The problem is this:
Tom and Jerry park their cars in an empty parking lot with n>=2
consecutive parking spaces (i.e, spaces in a row, where only one car
fits in each sp... |
I am building a logistic regression with Churn as the dependent variable. I cleaned my data and transformed the categorical data to factors. This is the description of the data after updating the categorical data:
Data Summary click HERE
I then attempted to fit the model to the data but received the error messages "alg... |
I’ve worked with businesses where I am provided with a data set that I know is inadequate in terms of its signal with respect to the measure in which I am trying to predict. No matter the extent to which I perform data engineering to create new variables, or the extent to which I experiment with new models or new model... |
For not-especially-pertinent reasons, I want to be able to manually calculate the equivalent of the difference-in-means t-test but for a scenario where instead I am testing whether a diff-in-diff is 0.
I am aware that this can be done by simply running a regression with an interaction term, where the interaction term w... |
Background: I have a retrospective study (registry) that contains data on people with kidney transplant. Among these patients, we have a very small number of people with a specific genetic disease (n=17) and a lot of people without the disease (N=13000). The registry provides data on various outcomes for the patients, ... |
I am running a model using CFA (laavan package) in R. Three-factor model fits the data well (for both female and male groups), the correlation between latent variables are different though, I'd like to constrain the correlation? Does anyone know the code for this? I know it is possible through Mplus but I am not sure h... |
How is the intraclass-correlation related to the covariance matrix of the random-effects and residuals?
Beginning with Ronald Fisher, the intraclass correlation has been regarded within the framework of analysis of variance (ANOVA), and more recently random effects model
$$
Y_{i j}=\mu+\alpha_j+\varepsilon_{i j}
$$
an... |
Hi I am new to R programming, and have begun learning the different types of statistical tests that can be run on a dataset.
I am trying to analyze a set of data with both numerical and categorical variables, and determine which statistical tests would be best to run.
I am looking to compare the body length (BL) betwee... |
l have battery data, which shows the capacity fade as a function of the number of cycles , l would like to use this data to build a single model. However, the experimental data does not have the same lifespan.
|
Suppose I draw $n$ samples of some random variable $X$. I repeat this process $k$ times so that I end up with $k \times n$ observations.
Each time I draw a random sample, my data is censored, meaning that I cannot observe values larger than some maximum value. Specifically, the values observed is bounded from above by ... |
I'm using R and running a Difference-in-difference (DID) regression with unbalanced panel data. Since my dependent variable is a dummy variable (Government officials originated from A or B), my DID is therefore a DID with logistic regression, and I can run the DID (by adding an interaction term of the two binary variab... |
It seems like the density estimation of a multivariate vector-valued random variable has been well studied, but what if one would like to estimate the probability density of a matrix-valued random variable? Would it make sense to perfom a "matrix" form of kernel density estimator, and use a Gaussian kernel function lik... |
I want to compare the prediction capacity of multivariate models (MGARCH, VAR, SVAR, VECM...).
One option to do this is by comparing its error metrics: the mean square error or any other between the predicted values and some test data.
However, I would also like to compare its predictive ability with hypothesis tests... |
In equation (5.112) of textbook "Pattern Recognition and Machine Learning" by Christopher M. Bishop, the simple regularizer takes the form $\frac{\lambda}{2}{\bf w}^T{\bf w}$. The author says in the following that this regularizer corresponds to a zero-mean Gaussian prior distribution which is the exponential of the ne... |
Let
\begin{equation}
p_1=\Pr(0.8z_1^2+0.2z_2^2 > c), \qquad p_2=\Pr(0.2z_1^2+0.2z_2^2 > c),
\end{equation}
where $z_1,z_2 \sim N(0,1)$.
Then, can I have $p_1 >p_2$ since $0.8z_1^2+0.2z_2^2 > 0.2z_1^2+0.2z_2^2$ ?
|
I have the following information for an automatic detection system that output a warning when a signal is detected:
Specificity: .99 (i.e. a false positive rate $FP = .01$)
Sensitivity: .9 (i.e. a true positive rate $TP = .9$)
Probability that the signal to be detected is present: .1 per hour (i.e. a $p(S) = .1$)
I w... |
I have the following model written. I have chosen for field as a random factor. I understood that an interaction between a fixed and random will be written as a fixed effect. As a result, I have the following model:
myGLMM4R <- glmmTMB(spp.richness ~ treatment + moment_datacollection + treatment * moment_datacollection... |
I was reading about geometric deep learning and non-euclidean data. I get that graphs are considered non-euclidean. But how come point clouds and meshes are also considered non-euclidean? I don't know a lot about point clouds. But as an example let's assume the point cloud exists in a 3D space, could I not just assign ... |
Further to my previous post on the Hellinger Distance, there was one comment raised about there being different expressions of the Hellinger Distance. This has intrigued me.
In the Encyclopedia of Distances, 3rd Ed (p266), the Hellinger Distance is given as:
(I have used a picture to show the equation as given in the ... |
In my model I have my response/dependent variable (which is ordinal) and I wanted to explore whether a continuous predictor variable was associated with it, so I used ordinal logistic regression.
However, I'm a bit stuck of how to report/interpret the odd's ratio in my results
You can see that the predictor variable is... |
I am new to neural networks, and i am interested in whether residual (standardized residuals vs. predicted values) plot should not form any pattern (ex.: correlated, U-shape) even in the case of neural networks (not just lin.reg.)? So is it worth to check whether the residual points distribution normally distributed ar... |
Consider a simplified example where we are trying to predict some value val which happens to be equal to one of the num_* features. The task of the model is to select which of these num_* features to focus on, depending on the values of other features.
color
size
shape
num_1
num_2
num_3
num_4
val
blue
large
rec... |
I'm implementing an algorithm that requires the use of Gibbs Sampling and, due to the nature of the way I store the values, it would be efficient to change the order of the updates on each component at every iteration.
For example, if I have three components, the first iteration will be over [1, 2, 3], but the next one... |
For solving:
$$\hat\beta^\lambda = \arg\min_{\beta \in \mathbb{R}^p} \|y - X \beta\|_2^2 + \lambda \|\beta\|_1,$$
We know that the values of $ \beta $ might increase for some $ {\lambda}_{2} > {\lambda}_{1} $. Namely they don't monotonic non increasing as $ \lambda $ gets bigger (See Is there a clear set of conditions ... |
This is the type of vague question that's likely to get downvoted, but here we go...
I am trying estimate a logistic panel regression to estimate the probability of experiencing a disease before and during the pandemic. I have an unbalanced panel of about 500,000 patients over 5 years, for a total of 1.8m observations.... |
Let's say I have an A/B (/C etc.) test, where the outcome of each trial is draw from a multinomial distribution with unknown frequencies. Each possible outcome value $x_i$ has a specified utility, $w_i$. If I put an independent dirichlet prior $Dir(\alpha_0)$ on the outcome frequencies of each arm, how can I calculate ... |
I am building a Cox PH model in r to analyze my data and I am unsure what the best way to do it is.
It is observational data and the idea is that we want to know the effect of a treatment A used at two different hospitals, site 1 and 2. We examine time-to-death and we have a few covariates (binary and continous) that w... |
I have the following bivariate VAR system
\begin{align*}
z_t & = a_{11} z_{t-1} + a_{12} v_{t-1} + b_{11} z_{t-2} + b_{12} v_{t-2}+u_{zt}\\
v_t & = \gamma z_t + a_{21} z_{t-1} + a_{22} v_{t-1} + b_{21} z_{t-2} + b_{22} v_{t-2}+u_{vt},
\end{align*}
where $z_t$ and $v_t$ are stochastic variables and $\text{cov}(u_{vt}, u... |
In explaining population differences to non-statistically minded people, I often find it helpful to frame a fact like this:
If you pick a random woman and a random man from the population, there's a 66% chance the man is taller
(the above is an invented figure, by the way)
I've seen publications frame a statistic lik... |
I have a set of subjects, each associated with a data vector $\mathbf{y}$ and a scalar covariate $z$. To each $y$ corresponds an $x$, and I wish to regress $y$ on $x$ across subjects: domain knowledge tells me that this association exists. To my surprise, on top of this association, I observe strong differences between... |
I'm running a KMO analysis in R to determine factorability of data using KMO(data_matrix) function. I read that this is a recommended step as part of structural equation modeling, to determine whether the data is suitable for factorising (part of EFA). The output is an overall "MSA" value for the data set as well as in... |
Similar to discussions such as this, I was wondering about the possible values a probability density can have. I get the mathematical reason of why values greater than 1 are possible. However, recently I came across a probability distribution that looked like this:
.
Note the dip below zero. The distribution is the res... |
I ran into a problem where the predicted probabilities of being treatment/control from a machine learning model (the XGB model) matches the actual outcome almost exactly and have area under the curve (AUC) of 0.9999. On the other hand, the logistic regression achieved an AUC of 0.5. However, I cannot use the greedy mat... |
I am new in general to statistics and was wondering if there is way to measure this:
Assume these are my variables:
x:
0.01336396156
0.01296497716
0.006340178031
0.02447376938
y:
-0.004196114594
0.01246864056
0.01608681989
-0.007968929671
z:
-0.00755313789
0.01497715597
0.0486919239
-0.04139268516
If these values ar... |
I'm trying to understand the relationship based on survey data between one binary dependent variable (Did Give a Bribe for a Vaccine) and where the respondent lives (Urban, Peri-urban and Rural) - the respondent can only select one of these. What statistical tests would be most appropriate?
Below is an sample of the d... |
So I know that backpropogation is a way to improve the model, and is done via adjusting the weights and biases. However I don't understand how loss function facilitates the backpropogation.
Like the loss functions that I have encountered so far like MSE, MAE, BCE, all output a single value. Meanwhile, weights and biase... |
Data & the goal. There are two time series (A and B): A - exact signal, B - same signal, just distorted and with slightly random shift in its (delta) phase (see the image below). Consider the duration and timing of signals as random. I worked out an algorithm to to detect signals in B data and aiming to validate this d... |
I need to write the following model in equation form for a paper:
Is the following equation describing the model correctly?
Edit:
I forgot to mention that this is a machine learning model. The purpose of the equation is simply to state it in the methodology in a paper not to calculate anything.
Here is the code used:... |
Context
I am currently working on a heavily imbalanced classification model that predicts if someone is going to list their property in the market in 6 months or not, there are 30 million properties in the UK so potentially a dataset of 30M rows to train on times the amount of times each property has had a listing. How... |
In a paper from Atem, et al 2018 (DOI: 10.1002/bimj.201800275), they claim the following in section 3 regarding the so called "imputer/imputation model" - i.e. the model used to impute missing covariate values - and the "analysis model" - the model on which the primary inference is based:
An imputation model for the c... |
I was teaching someone else about type I and type II errors, and they asked the question of why errors are called type I and type II errors. It seems to me that we could call type I errors a "False Rejection" and type II errors a "False Failure to Reject" and thus eliminate the need for students to learn mnemonics to r... |
For my better understanding, I'm trying to calculate manually the log-likelihood that statsmodels GLM is reporting in the summary results. However, my manual calculation does not match the result that I see in the summary.
Let's take for example the null log-likelihood from the GLM model applied to the the star98 datas... |
I have a longitudinal dataset with records from 22902 individuals. The outcome is a continuous variable and has no missing values. However, one of the predictors (from a total of 8) has some missing values. This predictor refers to the patient's smoking status (Yes or No), and I have no record of such status for 9430 i... |
Just started a Stochastic Processes course and I am a bit confused over the Strong Renewal Assumption we make for Renewal (and Poisson?) processes. The assumption in my text goes as follows: "At each fixed time and at each arrival time, the process starts over independently of the past".
From my understanding, renewal ... |
I'm looking to find an approximation of $\mathbb{E}\left[ XY \right]$ in terms of $\mathbb{E}\left[ X \right]^n$, $\mathbb{E}\left[ Y \right]^n$, $\mathbb{E}\left[ X^n \right]$, $\mathbb{E}\left[ Y^n \right]$. X and Y have a covariance.
Intuitively, I'd expect the first term would be $\mathbb{E}\left[ X \right] \mathbb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.