instruction stringlengths 9 38.7k |
|---|
I am running the following code:
Patient1 <- Patient1 %>%
group_by(PAXDAY, cumsum(PAXINTEN != 0)) %>%
mutate(Group_Label = "Active") %>%
mutate(Group_Label = replace(Group_Label, cumsum(PAXINTEN == 0) >= 20 & cumsum(PAXINTEN == 0) <= 180, "Inactive")) %>%
mutate(Group_Label = replace(Group_Label, cumsum(PAXINTE... |
I am reading this article here and trying to regenerate their simulation study. Here is this scenario here, among others, but if I can figure out one, the rest follow. That is,
Simulation set-up
we assume the hazard function of subject $i$ is
\begin{equation}
h_i(t|Z_i(t)) = h_0(t) \exp(\alpha Z_i(t)),
\end{equation}
w... |
I am having trouble understanding the following steps in the Bayesian approach to predicting the probability of tossing a head H given some data D
\begin{aligned}
p(H \mid D) & =\int_0^1 p(H, w \mid D) d w \\
& =\int_0^1 p(H \mid w, D) p(w \mid D) d w
\end{aligned}
I understand the first step is the sum rule and the se... |
Suppose I have an ARMA (p,q) (let it be ARMA (2,2)) fitted to my original returns series and have the residuals of said ARMA model extracted.
Next, it is my understanding that I need to fit a GARCH model to the residuals of the ARMA model.
Suppose I wanted to fit only a GARCH (1,1) to the residuals. In practice, for so... |
I have made the following model in DAGitty:
Where $X_2$ is controlled for.
DAGitty says:
The total effect cannot be estimated due to adjustment for an intermediate or a descendant of an intermediate.
I asked here whether it would be possible to obtain the treatment effect after controlling for $x_2$.
But I guess my ... |
Im am doing some modelling with the mgcv package, specifically the gam function
glm.mod1 <- gam(imp1 ~ s(pH1, bs = 're') + s(ZnAc, bs = 're') + s(filter.age1, bs = 're'),
family = quasi(link = 'inverse', variance = 'mu^2'), method = 'REML')
When I want to extract the variance components, the last comp... |
I did a classification of review text data using the ANN model. As we know, text data must be converted into numeric first before entering the classification stage. To change this I used the TF-IDF method. I am confused whether the data scale of TF-IDF results is a ratio or interval scale.
Here's the example of TF-IDF ... |
I am pretty new to mediation in multilevel models.
I want to run a 2-1-1 (and maybe a 2-2-1) mediation model in R.
The dataset consists of 110 participants with three assessments per day.
covariates = sex ; age ; financial status and beep. sex ; age ; financial status are all level 2), beep is level 1.
Mediators = st... |
I am trying to use t_family(link="log") distribution from the glmmTMB package. The package allows fixing the shape parameter using start = list(psi = log(fixed_df)), map = list(psi = factor(NA)). In practice when I try to fix or not to fix, I get a very different result. My question is that what will be the effect of f... |
I am wondering what should happen when trying to compute leave-one-out cross-validation error when there are multiple 1-nearest-neighbours that is equidistant to the training point.
As an example, will the Leave-one-out cross-validation performed on the points below have an error of have an error of
Approach 1. 2/8 si... |
As part of a mini meta analysis where I want to test 2 moderators, I have used the following code:
output <- rma(yi, vi, mods = ~ factor(discipline) : factor(gender), data=interact_emm, method = "FE")
Both gender and discipline have two levels. When I run the analysis, the model output only shows 4 lines:
Model Result... |
I'm doing binary classification in Python with an SVM classifier, and I implemented stratified repeated cross validation to have more robust results.
I would like to calculate confidence intervals for the mean accuracy, but using normal distribution assumption (if my code is correct) I obtain unrealistically narrow CIs... |
I have some hierarchical data and I'm struggling to figure out how to code it in my model. The data was taken on 20 individuals from 18 total sites: 9 sites in year 1 and 9 sites in year 2 and each site is in one of three treatments. So site is nested in year and in treatment, but year and treatment are crossed. I want... |
I am reading the Introduction to Linear Algebra 5th edition, section 7.3: Principal Component Analysis. The section contains the following sentence
The first eigenvector $u_1$ of $S$ points in the most significant direction of the data.
What does the "direction of data" mean over here? I am guessing it implies a subs... |
I wonder if case-control matching will bring a new confounding bias into the matched design. In the following figure, $L$ is a confounder, $E$ is the exposure, D is the disease outcome. In the matched design, $L$ can be correlated with $D$ through 1) $L\rightarrow E\rightarrow D$; 2) $L\rightarrow D$ (initial confoundi... |
My task is to run a logistic regression that models the probability that revenue is non-zero (in the
logistic regression parlance, a positive revenue is a success). Revenue variable is numeric and expressed in thousands of euro.
My code looks like this:
my_data <- dataset
my_data$success <- ifelse(my_data$revenue > 0, ... |
Let's say I want to compare the correlation of BMI and blood pressure in two independent groups and see, whether there is a difference between the correlations (whether the correlation is stronger in one group than in another). This can be readily analysed with the 'cocor' package (and Fisher's z) in R.
But what if, i... |
I have conducted a randomized 2x2 cross-over trial of 8 participants measuring the effect of a specific diet (intervention) vs normal diet (control) on the number of sleep hours.
The study design includes one week periods: run-in, intervention/control, washout, intervention/control, and then washout. Thus in total 5 we... |
I am trying to train a NN model in MATLAB to predict the amount of overflow for flooded junctions in an urban runoff system and I have 45 samples and 15 features. The issue is, I don't think 45 samples are quite enough for predictive modeling. Is there anything I can do to have a have good model without the need to aug... |
I am using PCA to do the data inspection. First 3 PCs explain nearly 82% of the total variance. Suppose the number of features is $n$. And I found 4 of the features have similar PCA feature importances for first 3 PCs. Say in the attached figure:
evap_c_5, evap_c_7, w_s_5, w_s_7 have similar feature importance for pc_... |
I am trying, without success, to calculate the log-likelihood of the most basic logistic regression model - a constant probability model (i.e. only $\beta_0 \ne 0$).
For the simplest model with 1 coefficient (i.e. constant probability):
$$
E(y) = \pi = \frac{1}{1 + e^{-\beta_0}}
$$
The maximum likelihood estimate of $\... |
This is a question seeking to follow up on this post.
I have a multigroup SEM with a mix of observed and latent variables.
In the measurement model to inspect latent variables, metric invariance holds (loadings), but scalar invariance (intercepts) does not hold.
The regression is one manifest variable (Std_LC) and one ... |
I'm building a search engine of technical documents based on Word2Vec, using cosine similarity metric. This search engine is very specific because it is meant to work with technical writings written in both French and English, to be used by end-users who don't necessarily know the exact technical words to look for. Usi... |
There are 197,058 record holders (population) with an average of K shares each. I don’t know K, and the sample collected so far of ~24,000 observations appear to be non-normal (inverse gauss). I’m wondering how big the sample size would need to be such that the sample mean would be approximately equal to the population... |
Given a bivariate joint distribution of random variable X and Y, $P(X,Y)$, consider the expectation value $E[(X-Y)^n]$ for different n values.
If one observes that while the variance becomes smaller as $n$ is increased within even and odd $n$ series, the even values are hierarchically larger than odd, what does this sa... |
In regression models such as linear and multiple regression models, there are several conditions that must be met such as normality, non-autocorrelation, heteroscedasticity etc. does ANN also have conditions that must be met as well? If there are, what are the conditions?
|
Question
Suppose there are two groups on treatments and an individual follows a Weibull distribution with the following probability density function.
\begin{align}
f(x; \alpha, \lambda) = \alpha \lambda x^{\alpha - 1}e^{-\lambda x^{\alpha}}, \quad \text{where } x \geq \alpha \; \text{and } \lambda > 0
\end{align}
It is... |
I am trying to implement a variational extension of some kind of Bayesian network estimation method. The main goal is to improve speed, since the current method is pretty slow due to MCMC.
My question should be pretty simple for veterans in the field: "How to obtain the optimal variational density?" "Is it fixed a prio... |
The code below gets a: error in mean(abs((y_true - y_pred)/y_true)) :
argument "y_true" is missing, with no default
I've seen MAPE used on forecasts. Can one use this and similar methods on models? Or is there some other R package that would work?
Edit 1: Seems lke MAPE wants a forecast. While my arima:
> class(arima)
... |
I have a series (sensor readings) with different events and I'm trying to segment/detect those events for further analysis using change point detection in python.
In general, the series consists of a mean with a fairly small standard deviation. Occasionally, an outlier reading will occur for one, maybe two points, and ... |
I'm a newbie to the world of deep learning. I know that in practice what a lot of people do while training these models is to decay the learning rate as the number of iterations increases.
In a similar fashion, when we are trying to minimize a function via Newtons Method we use the inverse of the second derivative as t... |
Is there any reference about backpropagation of the Transformer's multi-head layer or multi-head attention (MHA)? I have searched various journals but have not found one yet.
|
I have similar recurring use case at work whereby we are wanting to understand attributes/features of a datasets such as 'how many customers talk about this', 'how many customers do that' and generally the only knowns that I think are relevant are the populatation sizes.
In this current example what we have is a datase... |
when we compute self-attention in a decoder model, we compute, for an embedding $x$, the tensors $Q = W_Q x, K = W_K x, V = W_V x$.
However, in the next step, we compute a dot product on the embedding dimension:
$(Q|K) = x^T W_Q^T W_K x$.
In this way, the matrices $W_Q, W_K$ only appear through the product $W_Q^T W_K$.... |
I read this post How is the minimum of a set of IID random variables distributed? where I can find how to compute the density distribution of the minimum between $N$ positive random variables. If the cumulative of these random variables is $F(x)$ the cumulative of the minimum between $N$ of these random variables is:
$... |
Sorry if the question sounds stupid. I am new to this. Consider the following dataset:
|Month | Temperature|
| -------- | -------------- |
Jan | 10
Feb | 12
Mar | ?
Apr | 16
May | ?
Jun | ?
Jul | 22
Aug | ?
Sep | 18
Oct | ?
Nov | 14
Dec | 12
Now, can we evaluate "?" for this dataset? I cannot find the documentation fo... |
Could you please help to write down the exact equation?
It is clear for Garch part but not clear how to add ARFIMA (1,0,1) or here just ARMA(1,1) in model equation specification.
Should we also type formula for our distrubution type that follows normal here?
How change the equation for same model but with Student-t dis... |
A spline of order $r$ (with $K$ knots) can be written as:
$$f(x) = \sum_{i=0}^{r-1}\beta_i x^{i} + \sum_{j=1}^K b_j(x-\kappa_{j})^{r-1}_+$$
A natural spline is defined as a spline that has order $2r$ inside $\left[ x_{(1)}, x_{(n)} \right]$, and is a polynomial of order $r$ outside of $\left[ x_{(1)}, x_{(n)} \right]$.... |
Suppose I have the Bayesian network in the figure and the corresponding conditional probability table for each node, where A and B are the hidden variables, and C and D are the observed variables. What probabilistic inference algorithm can I use to get all the conditional probabilities in Table - 1? can I use likelihoo... |
I am a bit confused about how people calculate p-value when calculating odds-ratios.
The log-odds ratio (LOR) for a contingency table with two entries is $L = \log \frac{p_{1}}{p_{0}}$ and has an unbiased estimator using sampled frequencies: $\hat{L} = \log \frac{n_{1}}{n_{0}}$. This estimator has asymptotic variance $... |
I have this exercise where is the answer. Using this annex(text at the top means tenths of the x), the value becomes . What I don't understand is how it becomes 2,58. Our first answer is 0,495, so I'm looking on the left searching the 0,4 table. After that, I'm looking at the tenths of our answer, but there is no num... |
In the first derivation of dL/dW, I use the rule for the derivative of a constant with respect to a matrix and then apply the chain rule.
\begin{gather*}
Y\ =\ XW\ +\ B\\
X=\begin{bmatrix}
x_{0} & x_{1} & x_{2}
\end{bmatrix} ,\ Y=\begin{bmatrix}
y_{0} & y_{1}
\end{bmatrix} ,\ W=\begin{bmatrix}
w_{00} & w_{01}\\
w_{10} ... |
Long story short, I'm seeing in the literature that linear instrumental variables models are identifiable, even in the presence of unobserved confounders. The unobserved confounding aspect befuddles me, since it is not clear where this insight came from.
Briefly, given a linear instrumental variables setup where
$X = ... |
I am doing some research on a provider's network geographical distribution. If my data looks like this:
Country
Quantity
Continent
Ireland
5
Europe
Singapore
9
Asia
Canada
25
North America
UK
43
Europe
USA
50
North America
but for 70 countries and 2,000 servers. How could I best visually display thi... |
After making a neural network using ReLU as the activation function throughout, I had a look at the input layer activations and noticed that about 10% of the neurons are dead on initialization (never activated). At first I assumed it was caused by the large magnitude of my inputs and/or large input layer weights, but s... |
In semi-supervised learning, when a portion of unlabelled data is combined with labelled data during the training process, I'm wondering how one can perform inference specifically on the unlabelled data used for training. What are the recommended strategies or techniques for conducting inference on this subset of unlab... |
I am trying to combine GNN and CNN in my model.
Every node of my graph has 2d space coordinates, so as a whole it's like an irregular 2d mesh.
I think we can't use deep GNNs due to oversmoothing. So I am thinking of sampling this 2d mesh into a regular one so that I can use CNNs.
So the first part of the model is a GNN... |
I have a dataset with 96 records in the following format:
State Period WHC WVC
Aguascalientes 2010-2011 79,333 118,192
Aguascalientes 2015-2016 79,802 60,427
Aguascalientes 2020-2021 89,301 73,652
Baja California 2010-2011 178,822 247,565
Baja California 2015-2016 169,765 101,350
Baja... |
I am having difficulty understanding how the skip connections occur in resnet50 when the input and output layers are different in shape.
For example, in the first residual block, a 56*56*64 size matrix needs to be added with 56*56*256 size matrix. In the paper they mentioned when input output size are different, they d... |
I am using SAS PROC Reg to develop an OLS regression equation for a random sample of 190 observations. These observations contain the Old_Area of_oF_Polygons (var X) and the true area of GIS polygons (var Y). The REG equation is then used to score a larger dataset with PROC Score. In cases where there is no real dep... |
Im currently working on specifying a seasonal ARIMA model with an exogenous variable. I'm using the forecast package developed by Hyndman for this. I have specified the following:
Arima(endogenous, order = c(1,1,0), seasonal = c(0,1,0), xreg = exogenous)
Q: I was wondering if the seasonal differencing is also applied ... |
I have a control variable firm size in my regression model. I want to examine the moderating role of the firm size. I added the firm type that is 1 for small-sized companies, 2 for medium-sized companies and 3 for large-sized companies. Now in this situation, should I remove firm size as the control variable and then r... |
I understand that with multiple components, the result will be coefficients that lead to maximally independent series.
When requesting only one component I'm unclear if it actually does optimization and what that optimization is. Since there is only one component, there is nothing to measure an independence against? My... |
Let's assume that I have two groups that I would like to compare in terms of death rates. One group (group A) got a specific treatment and the other group (group B) did not get any treatment. I matched the groups using full propensity score matching because the groups differed systematically from one another. Now I wou... |
Statisticians and Data Analysts sometimes draw conclusions from surveys given to people.
Often times, there is a question, and there are 2 to 5 options to choose from if you are a survey respondent.
One of the mistakes people make when writing these surveys is asking survey respondents to choose exactly one option at t... |
I am new to working with time series and have tried several methods on my data including SARIMAX, Croston and forecastHybrid. The most accurcate result I've gotten so far is with stlf(), based on Explain the croston method of R. and https://laurentlsantos.github.io/forecasting/seasonal-and-trend-decomposition-with-loes... |
Suppose $\mathbf{X}$ is a vector of iid Bernoulli variables with the fixed success probability of $p$. The variance of X is $np(1-p)$.
Now, suppose, I am interested in the conditional probability of $s$ successes given the weighted sum of Bernoulli RV, formally, $P(1^TX=s|w^TX = w^Tx)$. How would that pmf look like?
Pa... |
I know that random variables can take negative values, so can independent and identically distributed random variables be negative?
|
Question
Suppose two groups on treatment and can be modelled by a Weibull distribution with a normal probability density function
\begin{align}
f(x; \alpha, \lambda) = \alpha \lambda x^{\alpha - 1}e^{-\lambda x^{\alpha}}, \quad \text{where } x \geq \alpha \; \text{and } \lambda > 0
\end{align}
Where in the study $n... |
I'm really newbie about neural network and optimization. When I read the references, I found this journal Wang et al 2018.
The journal stated:
One disadvantage of SGD
is that it scales the gradient uniformly in all directions;
this can be particularly detrimental for ill-scaled
problems. This also makes the process of... |
I am using SGD & Adam optimizer in a simple NN for a binary classification problem.
The model converges every time, but when I run the same model for 100 times, I notice that I won't get the same coefficients every time. There is a deviation in coefficient values from benchmark coefficients (that I obtained from Statsm... |
Q: If $X_t$ is an AR(2) process, what is $Y_t := X_t - X_{t-1}$?
Attempted solution:
$X_t = \phi_1 X_{t-1} + \phi_2 X_{t-2} + W_t$, where $W_t$ is white noise.
\begin{equation} \begin{split} Y_t &:= X_t - X_{t-1} = \phi_1 X_{t-1} + \phi_2 X_{t-2} + W_t - \phi_1 X_{t-2} - \phi_2 X_{t-3} - W_{t-1} \\
\end{split} \end{equ... |
In my textbook $p$-values are defined as follows:
$$p\text{-value} = P(T \text{ is at least as extreme as } t \text{ given } H_0 \text{ is true}) $$
where $T$ is the test statistic. It goes on to say that
The smaller the $p$-value, the stronger the evidence against $H_0$.
Here is my issue. Surely if the probability t... |
Given that that correlation coefficient can only be between -1 and 1, it can never increase the steepness of the slope when calculating the steepness of a slope in a regression line.
Say correlation coefficient r = 0.946, standard deviation along the x-axis Sx = 0.816, and standard deviation along y-axis is Yx = 2.160 ... |
I was reading about normal distributions and the Central Limit Theorem (CLT) and I came up with a question.
Why do we bother ourselves to use machine learning techniques when the CLT gives us the permission to assume that the mean of our data has a normal distribution? I can understand the usage of deep learning when w... |
I wondered if anyone could help with the following issue…
Rather than just assessing whether there is a difference between two means (considering the variance of each sample), I would like to be able to assess the difference between multiple samples’ variances, or coeeficients of variation (i.e. answering the question ... |
I'm conducting a survival analysis using Cox proportional hazards model. The failure in the analysis is crime.
I have a binary covariate (1 = yes, 0 = no) for which I get huge hazard ratio – usually between 2,000-4,000 (depends on the specific model).
I checked and it turns out that around 90% of observations who have ... |
Let $X_{1},X_{2},X_{3}$ be i.i.d samples from $N(\mu,\sigma^2)$.
Let $u$ denote
$$u=\frac{X_{(3)}-X_{(1)}}{S_{3}}\,,$$
where $X_{(i)}$ denotes the $i$th order statistic, and$$S_{3}=\sqrt{\frac{\sum_{i=1}^3(X_i-\bar{X})^2}{2}}$$
Now I know the density function of u is$$f(u)=\frac{3}{\pi}\left(1-\frac{u^2}{4}\right)^{-\f... |
I am asked to test a hypothesis that a manufacturing line makes p% faulty parts in a month, it's assumed that the p% is independent of the month. My approach is as simple as it gets, take a random sample from this month and get the proportion and proceed with my test normally. However i am only provided with daily data... |
I am currently looking at the effect of the introduction of Carbon Tax/ETS on corporate investment behavior. I do have a cross-sectional panel-data from the period 2000-2022 and grouped the firms by industry and whether they are in a country that has introduced such a policy or not. I have found 5 industries where ther... |
I have a number of embeddings (300-dimensional FastText vectors for each instance of each class) that I apply a classifier to (Logistic Regression for now). I want to visualize the embeddings as well as the decision boundary as part of model debugging so I can see which classes are not linearly separable, which instanc... |
Suppose that we are in a Bayesian context, we we have the following matrix $n,$ $K\times K,$ as parameter, and we assume that
$$n_{ij}\sim Pois(w*w_{ij})$$
where $w\sim Gamma(N+1,1)$ and $w_{ij}$ is another parameter which follows a dirichlet distribution. Can the following be seen as a different parametrization for $n... |
I need to compute the posterior distribution of a parameter $\theta$ conditionally on signal $t$. $\theta$ is uniformly distributed in $[0,1]$, while $t=\theta+\eta$ where $\eta$ represents a noise, distributed uniformly in $[-0.5,0.5]$. I know Bayes' rule but I don't know how to apply it when distributions, instead of... |
model = flexsurvreg(Surv(START,STOP,EVENT) ~ predictor1+predictor2,data= infection,dist="gamma")
p=ggflexsurvplot(model, xlab = "Time (Months)", censor = F, conf.int = T,
fun = "survival")
I am trying to do visual predictive checks such as KM curve overlaid with model prediction and prediction interv... |
A common prior for the unknown variance of a normal distribution (with given mean $\mu$) is the scaled inverse $\chi-$squared distribution. It turns out this is a conjugate prior! A simple proof can be found here https://real-statistics.com/bayesian-statistics/bayesian-statistics-normal-data/conjugate-priors-normal-dis... |
In the study of tweets pre- and post- metoo (set as Nov 2017), we are looking at whether there is gender differences in the use of masculine language in tweets for male and female social media users.
We have tweets collected for the period 2008-23 for 400 users. Some of these users were only active on Twitter before me... |
Say that you had data for the point spread of a basketball game: Team A points - Team B points (where team A is the home team and team B the away, if there is no home and away team, then team A is randomly allocated).
You run the regression $spread=\beta_1 home + \beta_2 away + \beta_3 neither$
i.e. regress the point s... |
I found some data on the number of self-employed people per one thousand inhabitants in Europe here. However, in the year 2020, for instance, some statistical units have over one thousand self-employed people per one thousand inhabitants. How is this possible? Am I mistaken?
I am attempting to find and interpret a corr... |
I am running a random forest for classification of a data with three classes in R, and each class has around 20 samples. I am partitioning data into train and test in 80:20 ratio using caret package. As the sample size is low, I used a for loop 1 to 100 to build 100 models to see how accuracy changes with each partitio... |
I'm running a few simple mediation models with differing IVs, but the same M and DV.
IV_1 = race (0 = white, 1 = minority)
IV_2 = racial dissimilarity (continuous variable)
M = engagement (continuous variable)
DV = turnover (binary; 0 = did not turnover, 1 = did turnover)
How can I compare the direct and indirect effec... |
I need to compare two distribution $p$ and $q$. But I don't have access to the distribution $p$, I want to approximate it by distribution $q$ that I construct iteratively by choosing design point. What metric to choose ? Kl divergence ? JS metric ?....
|
What is the difference between the following four random effect structures in R?
m1 = lmer(dv ~ pred1 + (time|id), data = df, REML = FALSE)
m2 = lmer(dv ~ pred1 + time + (time|id), data = df, REML = FALSE)
m3 = lmer(dv ~ pred1 + (1|id) + (1|time:id), data = df, REML = FALSE)
m4 = lmer(dv ~ pred1 + time + (1|id) + (1|ti... |
I have three proportional data H1, H2, and H3. And my null hypothesis H0 would be H2-H1=H3-H2.
What would be the test statistics here? I tried to use the proportional test for H_0:P2=P1. But the test required the sample size for P2 and P1. So in my case, H1, H2, and H3 all have different sample sizes. What test should ... |
In step one of judea pearls causal inference book it is to define your graphical causal model. The second step is identification of the estimand for estimation in step 3. Are there any cases where identification may not be possible? i.e. where our dowhy expression cannot be expressed in terms of conditional expectation... |
Does MLE give a distribution of the possible parameter values?
I don’t think so, but I’m not sure.
I think MLE selects the best parameter assuming that we have, for each parameter value, the possibility of the current dataset given that value. (But when we don’t actually have all those values, we can still infer the be... |
Let's say in a research study, participants receive training, and I measure their learning gains before and after the therapy. At the beginning of the study, before the training, I also administered a questionnaire to measure participations' motivation using a LIKERT-type scale. I want to find out if the training has a... |
I am new to time series analysis.
I need to determine whether my series is seasonal or not, and if it requires differencing for building an ARIMA model if it is possible? The time series data is monthly.
Thank you!
|
Are there any competitions/challenges/datasets fit for testing Pearl's graphical causal inference methods? I do not necessarily mean live competitions.
I would expect these setups to be different than any other ordinary dataset found in Kaggle, as we should be expecting the following components to be part of the setup ... |
I have a dataset containing observations of wave lengths in milliseconds and the corresponding durations of noise in milliseconds. Each observation is labeled with a group (A or B) and a subject.
I want to determine if the proportions of noise in the waves of group A are greater than or equal to those in group B. To qu... |
I want to understand how quantized networks can calculate activations like sigmoid and tanh. I stumbled over this question which mentions the implementation of TF-Lite Micro as an example. Specifically, the implementation of the tanh function in internal/reference/integer_ops/tanh.h lines 62 and 94.
I can see that a LU... |
I am Automatic Differentiation Variational Inference for bayesian inference using PyMC. I am using ADAM optimizer learning rate = 0.0005, number of monte carlo objects = 2, 20,000 iterations and full batch. Below is the -log(loss) graph.
It took 24 hours to run the above optimization process. I wonder what is the best... |
I am working on a logistic regression problem with 2 classes (let's say 0 and 1) where the positive class (1) is rare. In this case, I have found that Fractional-Random-Weight
Bootstrap (FRW) is a good procedure for logistic regression. I was wondering if I get clarification of:
i) FRW bootstrap concepts for logistic ... |
Consider the context of this answer:
It claims that
$$E[\hat{MSE}_{out}] = E[\hat{MSE}_{in}] + 2/N\sum_{i=1}^NCov(y_i, \hat{y_i})$$
However, the reference (ESLII Section 7.4; PDF page 248) does not prove this. According to this post, $2/N\sum_{i=1}^NCov(y_i, \hat{y_i})$ is actually the difference between in-sample erro... |
We gathered driving data from two cohorts of drivers belonging to the same age group. The first cohort, Group A, utilized System A (treatment group), whereas Group B drove vehicles without this system equipped. These two groups were based in different locations. The primary objective of our study is to evaluate the imp... |
I am working with a dataset that consists of three different factory groups, each producing laptops and receiving feedback reports on their products. Each observation includes the total number of laptops made, the number of feedback reports received, and the count of negative feedback. My objective is to analyze the va... |
I have a set of intensities from unordered independent events (with no date or timestamps), many of which constitute extremes, and I want to generate an extreme value distribution. The only information I have other than the intensities is the average number of events that occur per year.
My approach is to generate a se... |
In multiple linear regression model can I use dependent variable as index (composite food security index) and also one independent variable as index. For example livelihood vulnerability index for every household with other determinants. Can I get the answer with proper reference?
|
I would like to obtain the p-value of an interaction term in a logistic regression model. I have tried two methods to accomplish this.
First, I fitted a logistic model that includes the interaction term and obtained the p-value returned by the model (SELECT_GroupGene12:CDKiY, p-value = 0.994). Here's the code and summa... |
Let $\mathbf{u}_t = (u_{1t},u_{2t},\ldots,u_{pt})^{\prime}$ be a $p \times 1$ (stationary) random vector, and let $\mathbf{\Sigma}_{u}$ be the covariance matrix of $\mathbf{u}_t$. Further, denote the precision matrix $\boldsymbol{\Omega}_u=\boldsymbol{\Sigma}_u^{-1}$.
Then there is an interesting reslut linking the pre... |
I have some vector $x$, with mean $\mu_x$ and standard deviation $\sigma_x$, coming from an unknown distribution. I’d like to perform the linear transformation $y = Wx + b$, where $W$ is a matrix and $b$ a vector. I know everything about $W$ and $b$, however I’m only given $\mu_x$ and $\sigma_x$ (i.e., I don't have $x$... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.