instruction stringlengths 9 38.7k |
|---|
I am aiming to compare predictions made using 10 different models with no reference to the observed value. The objective is two folds : i- check if the difference between the models predictions are significative ii- and which are the models that are similar to each other in terms of predictions.
For that purpose, I tho... |
Consider I have a linear mixed effect model fitted via the R package lme4 with a nested random effect structure as:
model<-lmer(y~x+(1|A/B/C))
If I look at the variances of A, A:B, A:B:C do they tell me how much variance is left in say C when controlling already for the random intercepts in A and B?
If I do not care a... |
I have frequently read about long term and short term forecasting in time series analysis, but I didn't get how this is determined. Is this empirical values and why? How can I determine the horizon in different term forecasting (like based on percentage of input data)? I would appreciate references.
|
If a regression has 100 observations and 100 variables and none of them are collinear, what is the r squared? I know that it means that the full rank assumption is satisfied, so does this mean the r squared equals 1? Also, what would the t-statistic for the 5th coefficient be?
|
In this question, the OP runs a “chunk test” and has a linear relationship between a variable in the restricted model and the variables in the chunk.
If this were a chunk of just one variable, that linear relationship would manifest through the variance-inflation factor and inflate the p-value of the t-test of that one... |
I am trying to find the keyword (if there is any) for the technique in which we use the same deep learning architecture that works well in one domain and train it again in another domain to find out that the architecture (not the trained model) is suitable for both the domains. It is unlike the word "domain adaptation"... |
Let $N\sim \hbox{Poisson}(\lambda)$ and $(X_t)_{t \in \mathbb Z}$ be a stochastic process. Consider the following stochastic process:
$$ Y_t = \sum_{j=1}^N X_{t,j}$$
where $(X_{t,1})_{t\in \mathbb Z}, (X_{t,2})_{t\in \mathbb Z},..., (X_{t,j})_{t\in \mathbb Z},... \overset {\mathrm{i.i.d}} \sim (X_{t})_{t\in \mathbb Z... |
We always use latent variable approach to derive probit model,
is there any way to derive probit model from the exponential family form (by using link function)?
Also, does logit-normal distribution has relationship with probit model?
Thank you!
|
I am trying to calculate the variance:
$$
\langle(\bar{O}-<O>)^2\rangle
$$
of the Monte-Carlo estimator
$$
\bar{O}=\frac{1}{M}\sum_{m=1}^M{O_m}
$$
For uncorrelated samples.
In order to do so, I need to know the expression for the covariance between two samples (so I can use: $Cov(O_m,O_n)=0$) but looking at definitions... |
The formula of autoregressive model is
y(t) = beta_0 + beta_1 * y(t-1) + Error
To me it seems the same as linear regression. I used lm function in r it gives this result:
I also tried package in python.
I used stats models.tsa.ar_model
The result is:
I checked the residual plot and of the lm model and it seems to be ... |
I have a MARS model, say:
set.seed(1111)
test <- tibble(
x1 = runif(rnorm(5000, 5, 10)) * .33,
x2 = runif(rnorm(5000, 5, 10)) * .44,
x3 = runif(rnorm(5000, 5, 10)) * .55,
x4 = runif(rnorm(5000, 5, 10)) * .66,
y = runif(rnorm(5000, 10, 2)) * 10
)
test_fit <- earth(y ~ ., data = test)
test_fit |>
coef() ... |
I am working on the movement of fish species from the centre of a protected area to a non-protected area. Based on the article by R. Abesamis, itself inspired by the work of B. Kaunda-Arar (page 91), I applied to my dataset a logistic decay D = 1/(1+exp(S*(I-d)) where D is the proportion of biomass in the middle of the... |
I have a question regarding Omitted Variable Bias (OVB):
I know that endogenous predictor can be an issue, as the association between the dep. variable and the indep. variable could be confounded by another variable, which is not controlled for in the model.
I'm wondering though whether the exogeneity of a predictor is... |
I'm running a PERMANOVA analysis using vegan's adonis2. I have (rarefied) fungal community data (18S sequencing) of 24 samples. As treatments I have subplot (1,2,3,4,5 or 6) and state (con and sup). Each subplot has 4 samples and a subplot is seen as either 'con' or 'sup'. Thus metadata looking like:
To perform the PE... |
I work with Nanopore DNA sequencing and do a taxonomic classification of each read - that is to infer which species it originated from. However, this process is not perfect because of the available databases, and so I want to filter the results afterwards.
For the true positive identifications I expect the DNA reads to... |
Group A includes 20 students who took an exam and their grade mean was 28(±9.15).
After taking the second exam, their mean grade has decreased by 14(±9.9) in comparison with the first exam.
My question is: How to find the average score of their second exam if it not given?
I know that I can subtract the averages and ge... |
I wasn't able to find anything on google, but is there a variant of the Metroplis-Hastings algorithm where the acceptance probability (not the proposal kernel) in the $i$th iteration might depend on the stats $X_0,\ldots,X_{i-1}$ generated so far?
I guess the problem is that the resulting process is not a time-homogene... |
A common way of getting confidence intervals for the mean of a normal random variable is to estimate the mean and variance by the method of moments and then compute a confidence interval based on those estimates. Since this is commonly used, I would assume that these are asymptotically valid and (in some sense) optimal... |
I have a categorical variable that encodes the answers of a certain population to particular question.
Each respondent can give multiple answers.
Which statistical test do I need to perform to check if the difference in the number (or perhaps better percentage) of people that gave a particular answer is statistically s... |
Suppose I have two random variables, $X$ with PDF $f_X$, and $Y$. Moreover, I know that $Y = h(X)$, and I do know the $h(x)$. Now I want to calculate the conditional expectation of $Y$ given $X$:
$$
E[Y|X] = E[h(X)|X = x] = E[h(X)] = \int_{-\infty}^{\infty} h(x) f_X(x)dx
$$
Is that correct, that despite not knowing the... |
A hypothetical pharmaceutical company organizes a poorly designed study as follows : It simply gives out its experimental drug to a pool of people with traits $X$. Only some of them are actually sick and the chance of them being sick depends on $X$. They only take the drug if they are sick, but doesn't necessarily do s... |
I was just reading a paper in the field of education and there was a part I couldn't comprehend.
The author did a multilevel regression analysis with the data which was nested in a school level.
So that the 2nd level was school. The dependent variable was school violence.
The syntax in R would be like
lmer(violence ~ (... |
The refutation methods in the dowhy causal inference library are useful.
https://www.pywhy.org/dowhy/v0.8/dowhy.causal_refuters.html
I'd like to learn a theory that explains these methods well, but I'm not sure what to search for to find resources that explain them.
What materials should I look at for knowing them?
Wha... |
Disclaimer: I'm new to the potential outcome framework so this question may not make lot of sense, in case please let me understand where I am failing.
I was reading this question about the unconfoundedness assumption for Rubin's causal models that claims that the potential outcomes are independent of the treament give... |
My posterior distribution
$$
p(\theta\mid y) \propto p(y \mid \theta) p(\theta)
$$
has a prior $p(\theta)$ that is a $\text{Beta}(2, 2)$ rescaled between $(0, 10)$. I don't want my parameter to be constrained, so I want to write it in terms of an unconstrained parameter $\vartheta$, preferably with prior $p(\vartheta)=... |
Let’s say I have fitted a regression model on a large dataset, and I obtain an estimation performance metrics (R-squared, RMSE) for the whole dataset, via cross validation or via a test set. However, this estimation is relative to the whole dataset, with no difference in different parts of the feature space. It would b... |
The discrimination of an item can be calculated as:
$$D = \frac {K_h-K_l}{N}$$
Where $K_h$ is the number of correct responses from the high scoring group, $K_l$ from the lowest scoring group (top and bottom 27% usually) and $N$ the number of individuals in either group.
This is a measure of the item's ability to discri... |
Would it be unwise to scale the Sex variable?
I'm teaching myself Clustering and will probably attempt UMAP, T-SNE, and K-means soon.
I saw someone else scale this dataset in Python. All the other variables, I understand. The first though, I don't, since there is only 0/1, Male/Female.
Thoughts?
Also, how would you go... |
I am conducting a multi-variate time series forecasting using an LSTM model. The model architecture and other details are given below:
Dataset split: (80/10/10 split)
Training Data Points: 367640
Validation Data Points: 45388
Test Data Points: 40849
Features Scaling: (After data splitting)
MinMax Scaler(-1,1)
Model Arc... |
I'm trying to derive conclusions on how uniform distributions with different alphabet lengths influence the information measured from any other random variable (not neccesarily uniformly distributed). Overall we measure the reduction in the uncertainty of the RV $X$ given $Y$ is observed by means of:
$$H(X|Y) = H(X,Y)-... |
I am working with a food preference dataset where individuals rank their food preferences (apple, banana, orange, coconut, pear). The goal is to determine whether one fruit is ranked as 'favorite' more than another. There are a few interesting aspects to the data:
People do not rank fruits they have not tried, so som... |
I know that the synthetic control method is used to estimate a causal effect by finding the difference in outcome between a real treated unit and a synthetic non-treated unit. However, I was wondering if it is possible and mathematically sound to use the synthetic control method to estimate the opposite counter-factual... |
I am dealing with a problem that contains multiple categorical features and different time series depending on these variables. So, for example the dataset can be represented as:
Day
catA
catB
catC
productA
1
A
B
B
1.8
2
A
B
B
2.4
3
A
B
B
2.8
4
A
B
B
3.8
5
A
B
B
4.4
6
A
B
B
4.8
7
A
B
B
5.4
...
.... |
I'm doing the t.test from a paired sample, only considering as alternative hypothesis that the mean is greater than 0. Why the confidence interval has a minimum value but not a maximum?
The only reason I can think of it is that the maximum value of the mean is not as important as the minimum value if your restriction i... |
I have a following problem:
Consider observations $Y_i, X_{i,1}, . . . , X_{i,p}, i = 1, . . . , n$ modeled as
$Y_i = β_0 + β_1X_{i,1} + · · · + β_1X_{i,p} + ε_i$, where $ε_i$ are assumed to be i.i.d. random variables with Gaussian distribution $N~(0, σ^2)$ and $β_0, . . . , β_p ∈ R$ and $σ^2 > 0$ are unknown model par... |
I ran a binary-logistic regression in SPSS. Block 1 shows that the Omnibus Tests of Model Coefficients is insignificant for step, block and model, p =1.06. However, I have two significant predictors in the Variables in the Equation Table. Because the Omnibus test is insignificant, are my two predictors also insignifica... |
Consider the Metropolis-Hastings algorithm with proposal density $q(x,y)$ and target density $p(y)$ with respect to some reference measure $\lambda$. If we don't use the proposals $Y\sim q(x,\;\cdot\;)\lambda$ directly, but replace them with $\lfloor Y\rfloor$, is there such a variant of the Metropolis-Hastings algorit... |
Hopefully, this post is appropriate for CV and won't be closed.
I have a non-symmetric matrix $M_{K \times K}$ comparing a new statistic, $\delta$, my colleagues and I developed and tested on a variety of $K$ species. $\delta$ ranges between 0 and 1, inclusive.
I've computed $\delta$ for all species pairs. Thus if the... |
The distribution function of a random variable $X$ is defined by $F(t)=P(X\leq t)$. If I have another random variable $Y$, then $F(Y)$ is also a random variable. But, using the definition, we have $F(Y)=P(X\leq Y)$, which is a number. A simple example I invented myself: $X\sim\text{Exp}(1)$, $F(t) = 1 - e^{-t}$, $Y\sim... |
I want to predict whether a machine will fail based on the most recent set of measurements taken by on-board sensors. I have several dozen machines, each with a sensor that takes a measurement at regular intervals. Some machines have already failed, but most have not. The resulting dataset looks something like the exam... |
Are there any named metric that calculates TP/(TP+FN+FP)?
It is like the accuracy, but disregarding TN
In my problem, we have thousand of possible labels. However, the models return a small list of labels(usually 1 to 5). The true values are also a small list. Weighting for FN and FP is important because I dont want th... |
Suppose I have the following problem - we are interested in modelling the number of animals that cross a certain point each year (e.g. swim across a river). Let's say that these animals typically migrate during the summer months (e.g. April - September), and in the winter months this number becomes almost becomes 0.
Su... |
Suppose I have two sets of three numbers: $x_1, x_2, x_3$ and $y_1, y_2, y_3$ and I want to test the Null hypothesis that they are drawn from the same distribution using the Wilcoxon-Mann-Whitney test.
So what I would do with pen and paper is the following:
Compute the test statistic $W_{observed}$ for my sample
Make ... |
I wanted to get random values for a logarithmic distribution but I only have max and min values (and not the mean and sd). Is there a way to do this in R?
|
Let's say you have an artificial neural network (ANN) where the last layer is a softmax, so the output could be interpreted to be a categorical distribution, i.e. output neuron $i \in \{0, 1, \ldots, N-1 \}$ represents the probability the ANN "thinks" the input sample belongs to class $i$.
Let's say that that we restri... |
After writing a simulation in python (code at bottom) I realized my calculations are incorrect but can't figure out where I went wrong.
Let {$D_1$, $D_2$, $D_3$, $D_4$} be the ordered dice rolls. Let $X = D_2 + D_3 + D_4$.
$$E[X] = E[D_2 + D_3 + D_4] = E[D_2] + E[D_3] + E[D_4]$$
I treated each $D_i$ as an order statist... |
When it comes to Survival Analysis, I understand that there are 3 main classes of models:
Non-Parametric Models
Parametric Models
Semi-Parametric Models
Non-Parametric models are like the Kaplan-Meier model - they do not require the outcome variable (i.e. survival times) to have a particular distribution. This makes ... |
A few times people have auggested to me to run a log reg with survival time as a covariate in place of a cox proportional hazards analysis. I am sure this has drawbacks but I am not sure what they might be. Anyone have an idea? When would you use one instead of the other?
|
In a hypothesis test, the null hypothesis $H_0$ is rejected in favor of $H_1$ if $|\bar X|>\mu$.
When tests found that $\bar x$ is the mean of the samples, a p-value is computed using
$$
p=\Pr(|\bar X|>\bar x)
$$
Using (e.g $\bar X\sim t(n-1) $ the p-value is obtained and the conclusion is:
Tests with significance lev... |
I'm struggling to find some clear math behind ensemble learning.
I can simulate it very easily, eg:
import numpy as np, scipy.stats
r = np.random.random(1000)
d = np.array([0]*1000)
cors = []
for i in range(100):
v = np.random.random(1000)
c = scipy.stats.pearsonr(v,r).statistic
cors.append(c)
d = d + v * c # <... |
I'm using the felm function in R for time-fixed effects but I'm having trouble specifying my model.
I tried the following two but they result into completely different outputs. Could you explain what does the 0 stand for? Which of the following models would be correct for my analysis? My sample consists of 400 observat... |
I have a little over 27,000 Facebook posts stored in a database. For each post, if the post has comments and replies, those are also stored in the database. The posts are from Facebook autism groups.
I am dividing the posts into what I call the scam era and the pre-scam era. The pre-scam era is the time period before 1... |
I try to compare the forecasting performance of several models. I do it for two situations: normal and extreme cases. My dataset set is not big.
One of the models (gradient boosting) requiers a minimal training set which is bigger than the other models (45), which makes the extreme cases check a bit useless. In each it... |
My hypothesis is that age predicts how resilient you are. So I need to run simple regression analysis on SPSS.
Age is measured in years and resilience is measured on a scale where you can achieve a total score between 1 and 94 (the higher the score the more resilient you are).
As I therefore have two different scales m... |
Suppose we have the following PDF of X:
$f(x)=\frac{1}{4}(2-x)\;;-1\leq x\leq 1$
We want to use $g(x)\sim\mathrm{Unif}(-1,1)$ as a proposal density to generate samples from $f(x)$ using a rejection sampling.
Our usual approach will be, to find $M$ such that
$M=Sup_{x\in [-1,1]}\frac{f(x)}{g(x)}$
But we can not calculat... |
Both Akaike's information criterion and Bayesian information criterion are calculated from the loglikelihood, eg AIC= -2 log-likelihood +2k.
To the likelihood of what does it refer to? The likelihood of 1) the model that I fit to the data or of 2) the distribution I draw my data from at each point? So, with 2) I mean, ... |
I want to perform a competing risks regression analysis. There are 3 competing risks + censored data. I would like to know if there is a way to calculate the minimal observations I will need per event to have enough statistical power.
For example, I have 40 observations of patients that finish the treatment without any... |
If an n-dimensional model $S=\{p_{\theta}| \theta\in\Theta\}$ can be expressed in terms of the functions $\{C,F_1,\ldots,F_n\}$ on a sample space $X$ and a function $\psi\in \Theta$(parameter space) as
$$p(x;\theta)=\exp\left[C(x)+\sum_{i=1}^{n}\theta^{i}F_{i}(x)-\psi(\theta)\right]$$ then we say that $S$ is an exponen... |
I am running into a tricky issue with the execution of the synthetic control method for my data. For reference, my outcome data has an odd temporal gap (uniformly, across all units, no data is avaliable for 1993). However, temporal coverage is sufficient barring this one-year gap. Unfortunatley, across various units, t... |
I have received this confusing task:
You have two variables and , where y is a response variable which can be written as an explicit linear function of . However, the technique used for measuring is twice as better than that for
measuring in the sense of error variance, i.e. the variance of the error in is twice
as... |
One of the functions that helps to characterize clusters is the catdesc() function. The output of this function is very informative giving the following bits of information:
Cla/Mod, Mod/Cla, Glabal, p-value, and v-test. In this post, I want to know what is going on under the hood regarding the calculation of v-test an... |
I am currently working on a machine learning model that yields a vector of offloading decisions. An example:
[-1, 0, -1, 1, 1, 0, ...]
The model does not return this vector directly. Instead, the model has 3 output layers, each returning the softmax result for a particular decision.
e.g.:
each of the below ones has the... |
How do I find the value at risk at 90% confidence interval i.e., VaR(10%) for a portfolio with the following profit/loss distribution?
[-120 with prob = 0.0036, -55 with prob = 0.1128, and 10 with prob = 0.8836]
I know the formula VaR(10%) = -(µ - z(0.9)*σ) but get the wrong answer when using it.
Any help would be much... |
I want to study the correlation between the individual's level of education (1=high school or less, 2=associate degree) and the customer service received in a convenience store (1=good, 2=bad), should I use spearman or phi test?
|
I have conducted an experiment looking at the decay rate of a DNA target in flowing water over time, with 4 replicates of each treatment. The data is collected via dPCR Quiacuity instrument that calculates well concentrations (gene copies/uL) based off of positive and negative plate partitions. At some time points (see... |
My question is what kinds of events is multivariate Poisson distributed ? I need to find or generate a dataset which has got this distribution ?
I thought of random vector $X=(X_1 , X_2)$ where $X_1$ descirbes the goal per game and $X2$ describes the foul per game for a football player ? But I am not sure if my $X$ th... |
I have been told that one of the main advantages of Semi-Parametric Models (e.g. Survival Analysis, Cox Proportional Hazards Model) is that these models do not require assuming the response variable (e.g. Survival Times) to follow a specific probability distribution, thus allowing for a higher level of flexibility.
Thi... |
I am currently studying the textbook In All Likelihood by Yudi Pawitan. In chapter 2 Elements of likelihood inference, the author presents the following example:
Example 2.4: Suppose $x$ is a sample form $N(\theta, 1)$; the likelihood of $\theta$ is
$$L(\theta) = \phi(x - \theta) \equiv \dfrac{1}{\sqrt{2 \pi}} e^{-\fr... |
I am trying to simulate a dataset based on an existing study.
60 participants completed the experiment twice. Each time, they were randomly assigned to either condition A or condition B. The condition assignment was independent of the measurement time, so the same participant might or might not have been assigned to th... |
All of the literature on synthetic control groups examines situations where 1 or more units receive a treatment and are compared to non-treated units. I am wondering if there is any statistical or mathematical reason why these techniques cant be applied to a situation where both treated and "control" units receive some... |
I have three raster layers, two coarse resolution and one fine resolution. My goal is to extract GWR's coefficients (intercept and slope) and apply them to my fine resolution raster.
I can do this easily when I perform simple linear regression. For example:
library(terra)
library(sp)
ntl = rast("path/ntl.tif") # coars... |
So, I'm running an EFA for a bifactor model. I've created models with different numbers of factors (between 2 and 13). After running an ANOVA, it's clear from the chi-square differences that the model must have at least 6 factors. It seems like a 10-factor model is a good fit (below RMSEA cutoff)...
But I really like t... |
I have a longitudinal dataset with continuous variables for 6 different time points nested within each ID. I prepared a longitudinal Poisson model with ID as a random effect for the intercepts, which in itself is working fine. In preparing the figures for the report, I prepared a figure with the predicted values for ea... |
I'm creating a linear model for an ANOVA to look for main effects and interactions. When I flip around the order of the interaction term, I get different statistical outputs (see below).
fat <- lm(percentpre~geno*transplant, data=subset(fat3w, phase=="avg" & transp.g=="0.8"))
anova(fat)
Response: percentpre
... |
In a computational statistics book, I found an optimization method to find local minimum of a function.
Let's assume that we have a differentiable function $f: \mathbb{R}^2 \longrightarrow \mathbb{R}$. We want to find a local minimum $f(\theta)$ of the function. Starting with initialization $\theta^{*}_i$, instead of u... |
A little bit about myself: I don't have absolutely any background in statistics. (I only learnt it till grade 11th and after that my job is in such a field where I do not have to encounter statistics. However, since I have taken on added responsibilites, I have to perform data analysis for a project which requires grea... |
Let's assume I want to compare two approaches to servicing some electric device. I have some performance indicator and I measure it over time, repeatedly.
There are 10 measurements + baseline (before any procedure), but I want to compare the methods only at time t5, t8 and t10.
That's what I can plan.
Option 1
I can te... |
I am using scikit learn's Bayesian ridge regression model and am training my model on log10(y), exponentiating (10 ** y_i) my predictions back to their original value, then calculating my error metrics to assess my model's performance. The error metrics I use are R^2 and MAE.
I chose to do this because (1) I have a log... |
For example if we have the encoder architecture as follows:
(number of channels@ h_size x w_size)
1@28x28 |
32@14x14 |
64@7x7 |
128@4x4 |
256@2x2 |
512@1x1
Should the decoder architecture be such that we get the following:
512@1x1 |
256@2x2 |
128@4x4 |
64@7x7 |
32@14x14 |
1@28x28
Or, is it okay if it is like the follow... |
My goal is to increase the F1 score of Class 1 by 1-2%.
I achieved this by changing the threshold from 0.5 to X using the precision recall curve when the dataset is imbalanced. I did this after I have done with the parameter tuning (ie First, parameter tuning. Then, threshold tuning)
However, my senior told me that I s... |
Consider a population of individuals of varying values. Suppose that 3 individuals are drawn
at random and with replacement from this population. Let X, Y , and Z be the values of the
individuals drawn respectively.
Consider the two derived variables $U = 2X+3Y$ and $V = 3X+2Y −3Z$. Obtain the correlation
coefficient b... |
Suppose there is a university that has data on different students. The university is trying to build a statistical model that will help them understand which "types of students" (e.g. males, low income, etc.) are at higher risk of dropping out of the university - based on the results of this model, the university would... |
I am trying to do K-means clustering on my data which has time series length of 3700 and for (latitude,longitude) points of around 6000 in length. However, timeseries clustering using tslearn package even with joblib capabilities is painstaking slow. I m trying to cluster using dynamic time wrapping method. Can anyone ... |
This is the emmeans output of my lmer() model. I want to report this in a written format.
I have two groups, where each did a pre and posttest, as well as undergoing two different training methods.
$emmeans
Gruppe Session emmean SE df lower.CL upper.CL
EF Pretest 2.29 0.204 23.0 1.86 2.71
IF ... |
I want to compare the daily average revenue of a promotion period (7 days) of a business with the daily average of the rest of the year.
So, sample 1 has 7 data points, whereas sample 2 has 300 data points (300 days). Sample 1 is a small sample and sample 2 is a right-skewed distribution because of seasonality.
My goa... |
I am reading "Methods of information geometry by Shun-ichi Amari"
and I got the following doubt
Let $X$ be a finite set and $P(X)=\{p:X\to\mathbb{R}/p(x)>0 \forall x\in X,\int p(x)dx=1\}$
which in turn is a subset of all all $\mathbb{R}$ valued function on $X$ denoted by $\mathbb{R}^X=\{A/A:X\to\mathbb{R}\}$
I have dou... |
My NN (a few linear layers with ReLUs + batch normalization, no activation in the last layer) learns to approximate vector-valued labels $y_z$ from data $z\sim\rho_z$ in a supervised way, i.e. net$(z)=y'_z\approx y_z$. I was wondering if there exists any literature that investigates the distribution of the error in eac... |
Assuming that $\epsilon \sim N(0, \sigma^2)$
I want to prove that the maximum likelihood estimator is equal to the least squares estimator. Now, I think I'm very close to making the proof, I just need some guidance.
MLE approach:
$y_i = \beta_0 + \beta X_i + \epsilon$ is the linear regression model, and we can get th... |
I'm trying to find out a model that adequately describes effects of gender and length on food choice. For gender; 0=Male and 1=Female, length; 0=Subadult 1=Adult, Choice; F=Fish I=Invertebrates and O=Others.
data3 <- data.frame(
gender = c(0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1, 1,
... |
Consider this problem in Montgomery's book:
Two types of plastic are suitable for use by an electronics component
manufacturer. The breaking strength of this plastic is important. It
is known that $\sigma_1=\sigma_2=1$ psi. From a random sample of size
$n_1=10$ and $n_2=12$, we obtain $\bar x_1=162.5$ and $\bar
x_2=1... |
For context, my company have outsourced a lifetime prediction to a big firm. The goal is to predict lifetimes of a categorical variable.
The data includes customers from 2012 to 2022. I have the survival times. If the customer is still with us, they get censored in 2022 (today). There is only 1 categorical covariate wi... |
I'm trying to use scipy.stats.beta.ppf(q, a, b), where q is referred to as quantile. I understand how beta works and its details, but I'm not able to make sense of q here (It is also called as lower tail probability). I mean, why lower tail probability here in this function ? What benefit does lower tail probability gi... |
I'm trying to build a statistical model which could capture the dynamic influence of different factors over years, for example, customers who buy a specific brand over different years, and I'm trying to see how the impact of their income level and education level could change over years. We don't have specifically the ... |
The root-mean-squared error(RMSE) values should be close to zero. Although the optimal value of RMSE is known as 0, we can say that it is low when RMSE =10 for the data set with high average (let’s say 300-1000 in average). However, in a data set with a low average (such as 5, 7 etc), the value 2 may be low. How can an... |
I read an article published in 2020 which claimed that the South Korean population had declined "for the first time", the number of deaths (~300,000) outpacing births (~275,000). However, this would seem to be mathematically impossible because the birth rate has been below 2 in South Korea for decades (see chart below ... |
I am trying to run a two-way ANCOVA on data from a multi-crossed design, looking at the effect of 4 treatments on the decay rates of 2 DNA target concentrations in moving water over time. Mesocosms were sampled at 8 time points after DNA additions. Is it even correct to run a two-way ANCOVA on this kind of data with "t... |
Assume I have the following dataset:
Race Id
Athlete Id
Athlete weight
Athlete height
Winner
1
1
50
180
0
1.
2
48
177
1
1.
3
52
182
0
2.
2
48
178
1
2.
1
48
178
0
2.
5
50
165
0
2.
7
52
188
0
We consider two races; the first race being ran by 3 athletes, while second by 4 athletes. Then, there is ... |
I have heard that Kruskal-Wallis test with two groups is equivalent to the Wilcoxon rank sum test, but I can't figure out how to prove it. Could someone please help me prove that under the condition $k=2$ test statistics are equal?
|
Could you give me the demonstration with all algebraic steps of the relationship $$F=(R^2/(p-1))/((1-R^2)/(n-p))?$$
|
Hello stackexchange community! I am new to mixed-effects modelling (MEM) or mixed-models. In order to gain a better understanding of MEM, I decided to replicate two examples in R (lme4 package) from the textbook "Experimental Design and Analysis" by Dr. Howard J. Seltman. In the textbook, the author used SPSS to solve ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.