instruction stringlengths 9 38.7k |
|---|
In case of linear models (LM) it is possible to get ANOVA with planned contrasts by using a contrast matrix and aov.
Is there any equivalent of the same for analysis of deviance in case of generealized linear models (GLM).
# Random data
n <- 128
cond <- gl(4, n/4, labels=c("A", "B", "C","Control"))
dose <- gl(4, 4, le... |
In an upcoming release of my game I'm planning to add a hundred discrete items players can unlock. I'd like to assign each of these items a sell price and a rarity tier - I obviously have my own opinions, but I've learned in the past that I have terrible taste.
I was planning to re-use some old code to randomly preview... |
I am working with prophet library in python where I do some forecasts. While I split to train and test to check, it shows very good performance, but when I forecast for the actual future period it loses everything. See photo below:
Any ideas as to why this would occur?
Also, here is the part in my function that I do t... |
I'm using the lme4 package to assess the impact of a variable 'A,' which consists of three levels (1, 2, and 3), on the responses of 15 participants. My model is structured as follows:
m <- lmer(response ~ A + (A|participant))
Following the model fitting process, I realized that one of the participants only has data f... |
Currently working on a project that involves looking at aggression rates towards a variety of different objects in six primate species. I've created two linear models:
modelagg <- lm(log(Aggression + 1) ~ Obs_species + Object + Obs_id + Presentation_num + Group_size, data = New_data)
modelagg1<- lm(log(Aggression + 1) ... |
I cannot seem to find this proof anywhere. Suppose I choose $K_n$ to leave $\pi_{n-1}$ invariant, and $L_{n-1}$ to be the reversal kernel. I want to show that the incremental weights
$$
w_n(x_{n-1}, x_n) = \frac{\pi_n(dx_n) L_{n-1}(x_n, dx_{n-1})}{\pi_{n-1}(dx_{n-1})K_n(x_{n-1}, dx_n)} = \frac{\pi_n(x_{n-1})}{\pi_{n-1}... |
I'm studying chapter 2.5 of The Elements of Statistical Learning by T.Hastie.
Here, they assume the ground truth relation between Y and X as
$$
Y=X^T\beta +\varepsilon,
$$
where $\varepsilon\sim \mathcal{N}(0,\sigma^2)$.
Subsequently, they fit the least square model to the training dataset $\tau$ and then analyze the e... |
I am reaching out to seek guidance regarding an issue that has been troubling me for a while.
In my study, I had participants choose a strategy for expressing 6 different emotions across * 5 social media platforms. This was done by selecting one option from a list of seven strategies, making it a nominal variable.
I th... |
I'd like to illustrate my objective with an example:
Imagine we have collected data on the height, weight, and level of sports activity (represented as either a continuous or categorical variable) from a sample of approximately 100 individuals.
It's expected that weight and height will show some correlation. However, m... |
My and friend and I are complete beginners to statistical learning and we were playing around with a data set on loan approval using logistic regression. Each data point contains numeric variables like income as well as multiple qualitative variables like education level. I noticed that splitting up the data by the cat... |
If the Root Mean Squared Error is larger than the standard deviation of my dependent variable, does that mean that my model is inaccurate? What would be a good threshold for the proportion RMSE and SD for a model to be considered fairly accurate?
|
When comparing a non-normally distributed variable across multiple groups, is it okay to use a Mann-Whitney-Wilcoxon test or is it necessary to use (non-parametric) ANOVA?
The ggsignif package makes it easy indicate significant differences in plots (generated with the very helpful ggplot2 library.
However, looking at t... |
I have a set of humidity and temperature readings for several different locations on the same site. I am trying to determine whether these readings are fluctuating more in certain areas.
I've got the quarterly average and standard deviations for each location, going back about 5 years. They have the same units and are ... |
I want some help with predicting more than one future values in ARMA. I saw that the similar question has been asked here. But it is only helpful for predicting one future value.
For estimation of the error terms for the time series $y_1\ldots y_n$, I am using the following equation...
$\epsilon_t = y_t-(\sum_{i=1}^p\p... |
In a repeated measures design with multiple trials, what would be some appropriate statistical techniques used to analyze data when the variable of interest is a continuous variable? For example, let's say participants level of extraversion is measured on a continuous scale, where higher scores reflect extraversion and... |
I'm working on a personal project trying to model the Electricity consumption of a furnace, using R.
After creating my code I get this results for my model:
R2_adj N_Test N_trained_data E_relative RMSE
0.1022 1104 2593 0.03979 23.22kwht
My R2_adj is not great, h... |
after I've spent several weeks trying to fit a regression model to my flood damage data (x1=water height, x2=adaptation height, x3=(x1-x2), y=damage), it is now time for my very first question on StackExchange. It is also my first time working with all of these different regression models, so please bear with me.
I aim... |
I have two questions concerning variance reduction in the setting where I believe that some of my data is nonsensical/unreliable/incorrect/noisy.
To make my problem concrete, I'll use a toy example of students taking tests. Suppose I have $S$ students and I give them all an exam with $P$ problems. This gives us a matri... |
Four variables $X$, $Y$, $A$, and $B$ are assumed to have relationships as in the following diagram:
Here, $X$ is the predictor and $Y$ is the outcome variable.
Suppose that the research interest is the direct (not total) effect between $X$ and $Y$. On the one hand, $A$ acts as a mediator along an open causal path, $X... |
My understanding of histogram density estimation:
For $k$ predefined equal-width bins $(b_0, b_1], (b_1, b_2], ..., (b_{k-1}, b_k]$ and $n$ observations $x_1,...,x_n \in (b_0,b_k]$, we estimate density as $f(x) = \frac{1}{b_1-b_0} \sum_{i=1}^k P_k 1_{x\in (b_{i-1},b_i]}$, where $P_k$ is the proportion of observations f... |
Given a regression model $F(X) = y$, where $F(X) = \beta_0 + \beta_1:groupX + ... $ I want to test a null hypothesis that there is no difference in the coefficients between groups for each coefficient one at a time.
In other words, not just knowing the significance for each coefficient for group, one at a time. Instead... |
Suppose $Y|\Lambda\sim U(0,\lambda)$ with $\Lambda \sim U(0,1)$. If there is sample with size $n$ of $Y$ (To simplify, assume $n$ is odd, so $n=2m-1$). How do I calculate the expected value of median ($E[Y_{(m)}]$) and variance of the median ($Var[Y_{(m)}]$). Thanks in advance
Note: To clarify, my intention was that $\... |
Suppose I conduct an experiment to test the hypothesis that treatment A suppresses protein X. I am fortunate in that I work on kidneys, which come in pairs, however I am unfortunate in that I don't have much idea about how quickly or slowly any suppressive effect might appear. I therefore apply treatment A to six kidne... |
I am working on analyzing data from a randomized clinical trial which is studying the effect of a mesh type on patient-reported pain. The 2 study arms are the 2 different meshes (biologic and synthetic). One study arm received the biologic mesh, and the other received synthetic mesh.
The timepoints measured are before ... |
A large number of subjects repeatedly pass or fail a test. The test frequency is irregular and randomized per user.
Organize this data set in groups by the average test frequency being once per week (or more), once per month, once per quarter, or once per year.
For each group, we want to understand how much the fail ra... |
I'm trying to model a random variable $X_i$ related to updates in prices. The updates in prices are always non-negative, and my random variable is the update coefficient. For example, if product $a$ had a price of 100 and and now has a price of 110, then $X_a$ is $0.1$ because $NewPrice_a = OldPrice_a + OldPrice_a \cdo... |
This is a coding question. Basically, in a Poisson model, I would like to calculate risk ratio between 10th percentile and 50th percentile (i.e., predicted value at 10th percentile divided by predicted value at 50th percentile) and 90th percentile over 50th percentile.
The current codes that I know are:
poisson wt_num ... |
I have a dataset containing monthly sales data for different product categories spanning five years (60 months of data). I am using a Python process to calculate the seasonality for each category, resulting in a 12-item vector representing the expected monthly sales distribution over a year (it always adds up to 1). Th... |
Using the standard glm(...) function in R for Bernoulli regression, it appears that the residual deviance has the same value as the binomial deviance where each observation is calculated with $n_i=1$ [1]. Is there a reason for this formula?
Should it improve any properties? For example, the actual Bernoulli deviance sh... |
I'm running a generalized linear mixed models (GLMM) and am comparing the Laplace approximation to the Gauss-Hermite Quadrature. I have three predictor variables (fixed effects) and each is a number between $0$ and $1$. My response variable is either $0$ or $1$.
The Laplace approximation gives me a very large variance ... |
I have a dataset with $10$ inputs containing real numbers and an output which is binary ($0$ or $1$), and I need to make predictions. So, I thought of using multiple linear regression to predict an output. If the output is $\geq 0.5$, we can assume the binary output is $1$ and if the output is $< 0.5$, the binary outpu... |
I have a dataset of ads from two groups of advertisers. Each ad has a delivery parameter that gives you the fraction of the ad that went to the 50 states of the U.S. (The fractions add up to 1). I want to compare which advertiser had the dominant delivery fraction in different states. I am comparing the fractions at th... |
$\newcommand{\e}{\operatorname E}$"Obviously" if $g$ is a weakly increasing function and $X$ and $g(X)$ are both random variables with finite variance, then the covariance (and hence the correlation) between $X$ and $g(X)$ is non-negative. But there is the question of how to prove this "obvious" proposition. My questio... |
A heritability statistic, as I understand it, describes the percent of variation in a trait that is attributable to genetic variation, with the rest attributable to environmental variation.
I've heard it described that if you have a heritability estimate for a trait of 50% and two groups' means differ in that trait by ... |
I have a count of how many people responded to an ad, but I don't have an official count of how many people saw the ad in the first place. I do have an estimate of how many people saw the ad though based on industry knowledge. My question is can I use the estimate to calculate the response percentage? How should I go a... |
Consider that the database has only three transactions {<a1,a2,...,a100>,
<a1,a2,...,a50>, <a1,2,...,a25>}. Suppose min_sup = 2. Give the equation for all
frequent itemsets. Also list all the closed and maximal frequent item sets.
I didn't understand what is meant by 'equation'. I answered that itemsets have to conta... |
The statistical software DAGgity offers a graphical web-based UI as well as an implementation in R that allows for finding conditional independences corresponding to d-separation, minimal adjustment sets for causal effect, and much more. The rapid response of the UI indicates that the implementations are efficient.
Sin... |
I have two types of outcome from a big dataset and I performed prediction models and checked the prediction performance using 10-fold cross-validation, so:
for binary outcome: lasso logistic regression, then I calculated AUC after 10-fold cross-validation
for time-to-event outcome: lasso cox model, then I calculated ... |
Why density function of survival time is called instantaneous failure rate. I am confused why density function is a failure rate for survival time.
|
The basic KL-Divergence between two distributions is as:
$KL(N(\mu_1,\sigma_1) || N(\mu_2, \sigma_2)) = \log \frac{\sigma_2}{\sigma_1} + \frac{\sigma_1^2 + (\mu_1 - \mu_2)^2}{2 \sigma_2^2} - \frac{1}{2}$
I am reading VAE neural networks, that use KL-Divergence against $N(0, 1)$. However, in the articles the equation is... |
I have survey data from a complex survey with stratification, weights and clustering.
I'm using the survey package in R to run regressions:
svyglm(y ~ x, my_design_object)
Now, I need to add more weights - that is, I have a separate need to weight the respondents, independent of the survey design. Normally, I'd just r... |
I'm quite new at using the cox proportional hazards model and was wondering if someone can please offer some advice on whether this log - log plot shows whether proportional hazards assumption has been violated or not?
Thanks.
|
I am doing an analysis of the experimental data I have collected. In particular, I should do a panel regression.
I have collected data from my experiment on public goods. My variable of interest is Contribution, i.e. the choice of how many tokens to pay to the public good for each participant (0 to 9 maximum). the game... |
I cannot think of an appropriate statistical test: I am conduction a retrospective chart review on patients. I'd like to see what a specific condition B (All patients have Condition A, several of them have ALSO condition B) contributes to various outcomes.
To visualize it a bit
......................| Death | Intensive... |
The answer key says "Different link functions have different shapes and can therefore fit to different nonlinear relationships between the predictors and the target variable."
Shouldn't we say "relationships between the linear predictors and the mean target"?
|
It is common econometric disciplines to model an baseline + incremental quantity due to treatment. E.g baseline sales + incremental sales(due to marketing).
It is common to deploy loglog models to tackle e.g diminishing marginal returns.
Consider e.g the model $y = e^{\text{trend} + \text{seasonality}} \cdot \prod_{k \... |
Some details about my design can be found below:
There are 2 groups: Group 1 and Group 2.
There are different numbers of people in each group.
A pre/post (measurement) of stress is taken several times for each person. However, all people have a different number of measurement times.
My hypotheses are consequently:
S... |
In Chapter 1, Handbook of Markov Chain Monte Carlo, Geyer writes
Suppose you have a computer program
Initialize x
repeat {
Generate pseudorandom change to x
Output x
}
If x is the entire state of the computer program exclusive of random
number generator seeds (which we ignore, pretending pseudorand... |
Does anyone know why longitudinal regression models are still able to work when you have a different number of observations for each person (non-balanced design)... but ANOVA models are not able to work as well in this situation?
|
If I run $n$ samples of a physical experiment, I expect to see roughly similar time vs. position plots but with slight variations run-to-run. What are good statistical metrics to quantify the consistency of run-to-run variations of this time series data? Ideally, they would be unitless and easy to understand, perhaps s... |
I have data collected over a year in months Oct2021, Dec2021, Jan2022, April2022, July2022, Aug2022, Oct2022. Ultimately, I would like to understand how my response variable varies across time. I know I could consider time in two ways, either considering the seven months ( counting each October as a unique one), or co... |
Let's say I repeatedly toss a coin each day, until I get tails which terminates each run. I do that 1999 times (1999 runs). I count how many heads I got each run. 0, 1, 0, 3, 0, 2, 1, 5, 0 etc.
What is the probability I get both a run of 20 heads in a row, as well as a run of 18 heads on any given day? M = 20 N = 18 K ... |
Lets say I have a multivariate time series and I will run unit root tests for each variable to figure out if the variable is stationary and how many differencing are necessary to make it stationary.
If I am only doing forecasting, which is a prediction task, do I need to worry about the multiple comparisons problem in ... |
I have a features like below
id
x1
x2
x3
x4
x5
id1
0.4
1.4
5.6
1
0
id2
-0.01
0.5
-3.4
0
1
where x1, x2, x3 are continuous features and x4 and x5 are binary. The goal is to find $k$ clusters using Gaussian Mixture Model (GMM). However, given there are binary features (i.e., x4, x5) along with continuous on... |
As the title suggests, I would like to find the MGF of the max of iid exponential random variables. Assume $Z=\max(x_{1},...,x_{n})$, where $x_{i}$ is distributed as exponential($\beta$) and has pdf $\frac{1}{\beta}e^{-x/\beta}$. I already found the pdf of the max: $\frac{n}{\beta}e^{-x/\beta}[1-e^{-x/\beta}]^{n-1}$.
T... |
In the book "Quantitative Risk Management: Concepts, Techniques and Tools - Revised Edition" (by McNeil, Frey, and Embrechts)", there is the following example (example 2.11):
Suppose that the loss distribution $F_L$ is normal with mean $\mu$ and
variance $\sigma^2$. Fix $\alpha \in (0,1)$. Then
$$ VaR_\alpha = \mu + \... |
I want to ask a question about domain estimation (i.e., estimation of a parameter among subpopulations) in a stratified random sample.
It seems to me that in a stratified random sample, domain estimation can be easily done for sampling strata, because within each stratum the sample is an independent random sample. Howe... |
This data are from measuring optical density in a bacterial growth experiment. These correspond to 4 time series which are biological replicates of exactly the same treatment (with the label 0_4)
The series F6 looks like an "outlier", the trend is similar but the magnitude is totally different. This is evidenced furt... |
This post is to understand differences between multivariate linear regression models (i.e multiple independent variables predicting multiple dependent variables) and running multiple linear regression models for different dependent variables.
When we run multiple linear regression models for different dependent varia... |
In a classification problem, I want to know how to manually manipulate the data to weight the classes without using the features provided by the machine learning library. For example, if I double all feature values in sample with class 1, will class 1 have a weight of 2?
If there is a way to do this, I would like to kn... |
I wrapped up my undergraduate statistics degree recently and am about to start a stats heavy role as my first job. I've been brushing up on my frequentist knowledge and I'm currently trying to find a simple way of interpreting a confidence interval (say for the mean of the sampling distribution for convinience). Wikipe... |
I'm using a mixed model to do a hypothesis test of an intervention effect (group: 0=control, 1=intervention) in an RCT with two time-points: Baseline plus follow-up 6 months after baseline. In addition, I want to control for the effect of recruitment-site.
I've got the following questions:
I'm studying the following m... |
I have data collected from an experiment in which 24 subjects did the same task 4 times. So in total I have 96 data points. My research hypothesis is that there are always linear relationships between dependent variable Y and independent variable X regardless of time. I am thinking of two options.
Do 4 linear regressi... |
I have performed Wilcoxon signed-rank tests for variables $X$, $Y$, and $Z$, where it appears that (speaking informally) $X < Y < Z$. Indeed, the p-value for the one-sided Wilcoxon signed-rank test for $X$ vs $Y$ is $p_{X<Y} = 8 \cdot 10^{-3}$, and that for $Y$ and $Z$ is $p_{Y<Z} = 4 \cdot 10^{-6}$. Yet I have $p_{X<Z... |
As the question states, how can I prove mathematically that 2d support vectors are enough to always be able to formulate the Maximum Margin Hyperplane in d dimensions?
|
I have two empirical categorical distributions: P and q with |P| >> |q|.
P is the full description of my population, so I treat it as the reference baseline distribution. q, however, is a much smaller observed sample which I hypothesize to be coming from an unobserved distribution Q. All I know about Q is q.
Is there a... |
Assume that you have a model
$$\dot x = Ax + Bu$$
$$y = Cx$$
And this model is SISO. Single input and single output. You got the mission to determine of an observation is acceptable for the kalman filter.
What does that mean? What is the observation?
The tools you need to use to accept the observation is mahalanobis di... |
I recently was asked to help a colleague with some analyses thinking that we were looking at a cross-level interaction. When looking at the data it seems like the question being asked involves a Level-2 IV, a Level-2 moderator, and a level-1 DV. Can anyone point me to some good example syntax in either R or Mplus or an... |
I have the first impression the hierarchical two way table, it throws out the gasoline, it creates a new category called "other food at home"
How to reconcile the numbers under Food at Home in the hierarchical two way table, and that of the stacked barchart?
|
I do mostly econometrics but am faced with a repeated measures type sample. I can solve it as a regression with dummies, but feel like I'm losing information in the repeated cases. I know the medical literature has many debates about the experimental design for these types of situations and would appreciate advice.
Sup... |
I have a series of probability density functions (pdfs) such that I can create a ridge plot with them evolving in time. Is it possible to know the intermediate function in between two of the functions I have sampled? i.e. I have the pdf for instants $t=1$ and $t=2$ but I know that the time evolution is continuous, is i... |
Say I have treatment and control, perfectly randomized.
I have 70000 conversions for treatment in 80000 users.
I have 70100 converions for control in 800100 users.
My null hypothesis is that there is at least a one percent difference between the conversion rates.
prop.test does not allow you to set a "difference" level... |
I have the data below and We have a game, that has a prize jackpot. The jackpot prize starts at 1,000 credits and every round you play the jackpot increases, until someone wins the jackpot and it resets back 1,000 credits.
To play a round you 'pay' 1 credit and the jackpot prize increases by 0.011382 (1.1383% of your 1... |
Context
I work for a company that has an e-commerce website. Regularly we make specific campaigns in order to sell more. For example: We can make a campaign for fathers day, black Friday, crazy August, and so on.
Problem
It is hard to understand the impact of the campaign on sales. Because the impact of the campaign ca... |
In longitudinal models, we calculate correlation/covariance of individual subjects (e.g. mice in lab)... but in many experiments, we only have 3-5 measurements for each subject. Generally, we say that 3 measurements is too few to calculate variance ... so does this mean that even though I have 1000 subjects, but if I o... |
My problem is the following:
I have 1/0 "conversion" outcomes.
I have samples from three groups: people who speak russian, people who speak japanese, people who speak portuguese. i expect the conversion rate will be different from each group.
each language group is placed within a treatment or control cohort randomly. ... |
I am currently working on an image recognition project using AI, but I am facing challenges with bias in my model's predictions. The model seems to be biased toward the majority classes in my dataset. Despite attempting oversampling, undersampling, and ensemble learning techniques, I have not been able to resolve this ... |
I am training an object detection model using the YOLOv5 architecture. I have the following classes and counts.
| class | n_instances |
| ----- | ----------- |
| dog | 1000 |
| cat | 4000 |
| fox | 8000 |
My training dataset is imbalanced. The difference between the largest and the smallest ... |
I have a similarity score function, $s(x,y)$. I know that I have two items that I'm trying to compare the similarity of, but both are based on the same template. How would I remove the template from the similarity?
In other words, I have $s(a,b)$, $s(a,T)$, and $s(b,T)$. I'm trying to find $s(A,B)$ where $a=a+T$ and $b... |
Which regression model would you choose to model the following flood damage data? The variables are x1=water height, x2=dike height and x3=flood damage. The following plot shows how the flood damages depend on the water height, the zcolor is the overtopping of the water (x1-x2).
You can see two linear lines, in fact, ... |
I am following Bruce Hansen's Econometric textbook. Under the assumptions that $\{x_i,y_i\}$ are i.i.d., $E(e_i|x_i) = 0$, and errors are heteroskedastic, we derive the variance of the OLS estimator
$var(\hat{\beta}|\textbf{X})= (\textbf{X}'\textbf{X})^{-1}\textbf{X}'D\textbf{X}(\textbf{X}\textbf{X})^{-1}$ where $D = E... |
I am a little bit confused about normality assumption in T-Test for difference of two independent means. My reasoning now as follows:
If the distribution of the populations are non-normal, it's ok as long as the distribution of the sample means of both populations is normal for the given sample size.
If the distributi... |
I am measuring the distance between two time series that are of different length.
Time series were built by creating a score of windows of years:
t1 = (0,0.5,0.6,..,0.3) of length 72 representing years 1901-1931,1902-1932..
t2 = (0,0.3,0.8,..,0.2) of length 82 representing years 1901-1941,1902-1942..
Series are expecte... |
Before running the Hayes PROCESS for my moderated mediation, I would like to ensure first, that the linearity assumption is fulfilled.
However, at this point, I am not sure which variables need to be linear. Does the assumption only apply to the relationship between IV-DV? Or do I also need to include the Mediator & Mo... |
A while ago I came across the word "data leakage" for the first time, and after some research, I found that it is a common mistake among data science/machine learning practitioners. But the problem is that most of the data science projects I worked on Kaggle do the train test split after the data preprocessing step, kn... |
I have a couple Gaussian mixture models where each component comes from (component-wise) Box-Cox transformed data. These models do not describe the same data: the individual components are selected based on certain consistency criteria (irrelevant to this question). Because these data points represent measurements, I w... |
I want to calculate the sample size for a multiple linear regression with correlated residuals, specifically using generalized least squares. For OLS, it appears that there a various different rules of thumb recommendations and similarly, there are more specific formulae. For example, this is an excellent question and ... |
Say we have some real parameter $p$ we'd like to determine experimentally. If we have a single estimate of $p$ but no associated uncertainty, what prior probability distribution(s) can/should we use to represent our knowledge?
I can reasonably intuit that it would have to be a distribution with a defined mean but no d... |
I am currently reading a book on health technology assessment: Decision Modelling for Health Economic Evaluation (Briggs et al).
Given all information below, I'd appreciate if someone could show how they arrived at the transition probabilities.
Weibull output is given on Table 3.2 of the book:
And the transition proba... |
After performing GWAS, I calculated the percentage of phenotypic variance (SNP-based heritability) for top SNPs and random SNPs using GREML (GCTA).
The variance of random SNPs was calculated for 3 different groups of randomly chosen SNPs and then averaged to get the final result.
Top SNPs explained much more variance t... |
I'm working in Stata with a Cox model and I have a dataset in counting process style (multiple records per subject).
Each observation per subject has covariants that could potentially be different depending on the time (eg. diversity in quarter 1 vs quarter 10). Not sure if this would qualify as time varying covariates... |
I want to calculate the sample size for a retrospective non-inferiority study. I want to test if methodB has a sensitivity that is non-inferior to methodA in regards to detecting head traumas on patients.
MethodA has a sensitivity of 80%, and the non-inferior margin is 5%.
I'm using a sample size command in Stata:
ssi ... |
I am trying to learn the basics of Bayesian time series analysis, but am having trouble finding some up-to-date basic examples and a discussion forum where I might be able to get some guidance. (There are a number of questions here ostensibly similar, but they are quite old and I get the impression that the field has ... |
When building a glmm model with a binary outcome variable in R using the lme4 package I usually use something like the following structure:
model_1 <- glmer(binary_value ~ condition + variable + continuous_cov + (1 | ParticipantID), family = binomial, data = df)
model_interaction <- glmer(binary_value ~ condition + va... |
I'm wondering how to properly evaluate a trial which was performed using a cross-over design evaluating two instruction techniques. Group A is instructed by technique 1, Group B by technique 2, both perform the exam and we consider the percentage of correctly answered questions- and afterwards it's the other way round ... |
I'm applying hyperparameter tuning with techniques such as, randomized search and grid search in python. I could find important hyperparameters and tuned them for Random Forest Regressor algorithm, since there are many examples of this specific algorithm and I knew which hyperparameters are important to tune. But for o... |
Yesterday I was helping a friend in reviewing a clinical psychometric paper for his Bachelor's thesis. There, there is this table presented:
Now, the paper states that (the emphasis is mine):
"Data analysis
Data are presented as means with 95% confidence intervals or proportions (percentage) and rates (percentage per ... |
Here's my simulated data:
from scipy import stats
# Simulated dataset
n_sim = 1000
mu = 0
sigma = 20
df_sim = (
pd.DataFrame({
'delta_true': stats.norm.rvs(mu, sigma, n_sim),
'se_observed': np.abs(stats.norm.rvs(20, 10, n_sim))
})
.assign(delta_observed=lambda d: stats.norm.rvs(d['delta_tr... |
There are 3 events $A, B, D$ such that $D$ makes $A$ more likely and $D$ makes $B$ more likely. Does this mean that $D$ makes it more likely that both $A$ and $B$ occur? How can you prove this using mathematical formalism to prove it if it’s true or what counter example makes it false?
|
I am following this guide for training an Image Captioning model
It uses a dataset which always has 5 captions per image. My dataset greatly varies how many captions I have per image from 1-42. This is giving me errors when using the above code, because my data is not rectangular.
I had thought to rearrange the data so... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.