instruction stringlengths 9 38.7k |
|---|
I'm running into a problem after trying what I thought would be a simple analysis. I have 47 sites where I measured a variety of habitat characteristics (canopy cover, habitat type, percent of bare ground, elevation, etc.). The habitat type consists of 4 categorical variables, canopy cover is continuous, and then there... |
Inspired by Richard McElreath's "Full Luxury Bayes" in his Statistical Rethinking course, I wanted to implement a "Full Luxury Bayesian Marginal Structural Model".
Briefly: MSMs are a two-step model for the average treatment effect. First, you regress the (binary) treatment $A$ on confounders $X$; second, you compute t... |
Suppose I fit a generalised linear model with a binary response on multiple predictors with a logit link. When calculating the inverse of logit, I have the following exponential formula:
$$\frac{e^{\theta}}{1+e^{\theta}}$$
I have been taught that $\theta$ can be represented by the following $\beta_0+\beta_1x_i$, suppos... |
I know that theoretically stacking multiple linear layer does not make any sense, as multiple affine transformations are no more powerful than a single one, however I heard many DL practitioner saying that multiple linear layer speed up the learning of a network
However, I found no documented case of this in the litera... |
The plot below models a sample of departure delays of flights, the x-axis is minutes delayed. The mean is about 10 (red line) and std is 36. The distribution has a very long tail (some flights are 800 minute delayed). The blue line is a fitted normal (mean=10, std=36) and the purple distribution is a shifted Poison (su... |
My team is conducting propensity score matching with 1:1 nearest neighbor replacement for a case-control healthcare study.
While we're obtaining match rates of 80-90% with good covariate balance, we have noticed a handful of treatment subjects are matched to 20+ controls.
Is it acceptable to manually trim the number of... |
I am trying to recover the formula of my regression model. I build the polynomial regression model using glmer(optionval ~ nt1 + nt2 + nt3 + section:(nt1+ nt2+ nt3)+(nt1-1|participant.id),...). "nts" are time based natural polynomials generated using poly(..., raw=TRUE) and "section" is a categorical factor consisting ... |
I have taken hourly-based wind power data, by taking its periodogram after making it stationary in R. It gives me four seasonal patterns at periods of 24, 12, 08, and 06, as shown in the figure below.
Is it possible to have sub-hourly seasonality in my wind power data?
The data is given as follows:
|
I would like to perform multiclass segmentation on DRR(digitally reconstructed radiographs) by using Unet network. For binary segmentation, unet works well (dice score over 0.93)
What I’m trying to do is multiclass segmentation to segment multiple bones.I looked the topic up on Kaggle and different sources, but those b... |
I tried looking for my specific question, but I only found partially related questions here, here, and here. I think my question is much simpler than what was asked and answered in these queries. I'm working through Statistical Rethinking by McElreath and there is a portion where they explain grid approximation for Bay... |
I'm working on an unassessed course problem,
The file Pas-mile.txt contains the monthly numbers of passenger miles travelled on US airlines for each month between January 1960 and December 1977. Find an ARIMA model for the series, carrying out appropriate diagnostic checks.
I've put the data at the bottom of this pos... |
Propensity score matching techniques can be assessed and compared with covariate balance metrics like the standardized mean difference (SMD).
However, SMDs don't account for varying matching rates.
For example, how would you compare Matching Technique A, which achieves 95% matched rate but low covariate balance (SMDs i... |
While studying univariate time series analysis, I got curious about how I can apply the AIC metric to determine the appropriate order for an ARIMA model.
As far as I've investigated, in many texts ARIMA models assume the error terms to be white noise, not Gaussian white noise, which means that there is no distributiona... |
I am using the utilities package in R to conduct the DES for a forecasting project. My problem involves forecasting the service requirement for patients. On average five patients get admitted to the ward daily and there are 46 beds in a ward.
In order to do this simulation I have set K=46 (since I believe K = users/tot... |
I am computing forecasts with ARDL models of different lag length across both dependent and independent variables.
Regardless of the lag lengths, the actual observations for the dependent variable lag the forecast values consistently by one time period (a quarter in this case).
What could be a possible explanation for ... |
Update prior to posting
So I had just finished writing my post and got suggested "time series segmentation" for my tags. Then I looked it up and it seems like it is the thing I need to do. I did some reading just now and found some options such as Hidden Markov Models as well as a python toolbox (seglearn) that seems l... |
I'm currently submitting a paper about elements in soil solution. Reviewers told me to justify the conclusion by the data, and I need some of your unlimited knowledge.
Here is a plot of $\textrm{Al }$ present in soil solution over $6$ years. My conclusion to be supported is that during winter (trees dormancy, the purpl... |
Suppose we have a posterior sample of parameter $\theta$ obtained by fitting some Bayesian model to $n$ data points.
In black is the empirical posterior density and in red is a normal approximation to the posterior.
Is there a way to write the normal approximation to the posterior in terms of $n$?
(My goal is to have ... |
I have fit a GAM with two continuous independent variables and one discrete covariate with two levels ("gray" and "brown"). All variables are scaled and the model runs fine:
mod3 = gam(cont1 ~ disc1 * cont2 * cont3 +
s(cont2, cont3, by=disc1, k=4),
data=data_so)
summary(mod3)
Family: gaussian ... |
Some context : I work on insects and most of our tests are mortality assays : we subject groups of insects, in replicates (usually 5-6), to insecticides and record the mortality 24h later. Since we prepare our own assays, we include one or two susceptible strains in each one : those strains should have a 100% mortality... |
I wonder who first suggested and defined weak stationarity, and which paper it is. It seems that many paper using it as given, but I'm just curious of how it is defined and proved, and the discussions over the definition.
|
I'm trying to determine whether it's appropriate to use the Cochrane-Armitage trend test on this set of data? I don't have any specific hypotheses I need to investigate, just to choose an appropriate test to look for a significant difference.
I've attached the contingency table. There is an observed trend in the latter... |
I have the following problem:
Here is my approach:
With the activation function: $F(x) = x^2 + 2x + 3$, we can calculate the activation of the two units of the second layer by: $a_1^2 = F(w_{13}\cdot x_1 + w_{23}\cdot x_2) = F(2\cdot 1 + (-3)\cdot (-1)) = F(5) = 38$
$a_2^2 = F(w_{14}\cdot x_1 + w_{24}\cdot x_2) = F(... |
My current work involves asking subjects from different groups to pronounce multiple words, and I am interested in understanding the relationship between word duration and groups.
In R syntax, this can be expressed as:
Duration ~ Group
However, since there is a random effect on the durations that is unique to each subj... |
I have just started learning about using reproducing kernel hilbert spaces for regularisation in machine learning. I am looking for some examples of reproducing kernels that produce identifiable and non identifiable models of the following form:
$$
Y_i \sim \text{EF}(\mu_i,\phi),~g(\mu_i) = \gamma + f(x_i), f \in \math... |
Suppose I am a doctor trying to predict the probability of a patient getting a heart attack. The way I would approach this, in a clinical setting, is by using a logistic regression. For exmaple: P(HA) = 1/1+e^-(b0 + b1age + b2race + b3sex + ... + bnvariable_n).
Is it possible to obtain predicted probabilites from other... |
I have the following dataset:
Date
ID 1
ID 2
ID1avg_rtg
ID2avg_rtg
ID1avg_Importance
ID2avg_Importance
16/7/2022
1001
1000
1.21
1.68
23
68
In this dataset I have the average score of electric output samples and the average importance with which this rating came. So rating 1.21 was achieved with importance 2... |
Assume I have a pair of vectors $a,b$. Upon discussing their correlation $\rho_{a,b}$ we can usually test whether $\rho_{a,b}=0$, $\rho_{a,b}>0$ or $\rho_{a,b}<0$ (as asked previously here and here). These tests can be easily conducted in R using cor.test. For Pearson's $\rho$ we even have a specified distribution of t... |
I study the use of the emergency treatment by children with asthma at home using electronic monitoring devices.
For each child, I will have the date and time of each actuation of their emergency treatment.
Thus, on a x-axis corresponding to time, I have for each asthma attack the following patterns:
Child A: ++++++++ ... |
During capture-recapture sampling, we aim to estimate a population size (e.g. of organisms) by capturing a sample of size $ n_1 $, marking them, releasing them, then re-sampling (assuming they have mixed) with size $ n_2 $ and counting how many are marked. If we find that $ m $ out of $ n_2 $ are marked, then we estima... |
I've been asked to help determine the design of an RCT. The design is primarily interested in the benefit of using a laser on some dental procedure in addition to a local anti-biotic and scaling, versus just the anti-biotic and scaling.
The outcome us gum attachment loss. A dentist will probe the area between the too... |
Does significance testing (p-value, 95% prediction interval of a forecast, etc.) of an ARIMA model require time series data to be normally distributed? As in, according to the tests used to assess normality before linear regression (histogram, qqplot, etc.)?
If not, why?
Similarly, what about state-space models, such a... |
I am replicating the Bhalotra-Figueras paper on women's political agency and health (Paper Here) an IV model where $x$ is measured at the district-level and have an instrument $z$ measured at the smaller constituency level. They use the mean of $z$ at the district-level as an IV for their endogenous $x$. They cluster t... |
I have utilized the ClusterBootstrap package in R to run bootstrap analysis for mixed models. Is this possible in SPSS? Using the BOOTSTRAP-command in SPSS combined with
/RANDOM=INTERCEPT | SUBJECT(id) COVTYPE(VC)
does not work for repeated measures data unless there is a way to identify the clusters to be sampled. A... |
In considering ROC AUC, there is a sense in which $0.5$ is the performance of a random model. Conveniently, this is true, no matter the data or the prior probability of class membership; the ROC AUC of a random model is $0.5$ whether the binary classes are balanced or not.
Does PR AUC have a similar notion that is data... |
I'm preparing for an exam and I got stuck on this question.
I understand that the alpha values 'affects' how much influence corresponding data point has on the position of the decision boundary, and that the alphas are between 0 and C=4 in this case.
Therefore, since point b) is closest to the decision boundary it mak... |
I have data of the following form:
Rating
1
2
3
control
0
20
11
treatment
6
14
12
Where 1 is a plant of top quality, 2 is a plant of lesser quality that USED TO BE top quality, and 3 is a plant of poor quality that USED TO BE of type 2 quality. The values listed are the counts of each type of plant from a... |
I have a small survey dataset with 10 variables (Gender, International (Yes or No), and some Likert scale data) and all of them have categorical data. Having performed descriptive analysis, I was curious about what can I do to make good inferences. I have worked with a regression with numerical variables but never with... |
I have the follow variable
$$y_t = e_t + u_t + \theta u_{t-1}$$
Here $u_t$ and $e_t$ are mutually independent i.i.d
and $u_t \sim N(0, \sigma_u^2)$ and $e_t \sim N(0, \sigma_e^2)$.
I am trying to show that I can re-write $y_t$ as an MA(1) process, i.e. : $y_t = \lambda_t + \phi\lambda_{t-1}$ where $\{\lambda_t\}$ are i... |
Right censoring was not a major issue in my prior research on education because I was modeling outcomes like grades and graduation rates where all participant results occur on the same day.
But now I am seeing loads of hypothesis tests where data arrive sequentially such as when patients enroll in a medical study or on... |
Suppose I take two samples, $a$ and $b$, from a population (or super population) but that I only observe $b$. However, I want to construct a confidence interval for $\bar{a}$, the average of the sample that I don't observe.
Now, a confidence interval that contains the population mean 95 percent of the time cannot also ... |
If your task is to predict $t_{n+1}$ given tokens $(t_1,...,t_n)$, you could do two things:
Straight NN - feed $t=(t_1,...,t_n)$ into a neural network as an n-dimensional input and train it on predicting $t_{n+1}$ (with all the embedding / layernorm / skip connection stuff that transformer models have)
Attention - tak... |
Rookie question - is it possible to compare a single year's total number of cases of a disease in a specific region compared with previous years. I have a data set showing total yearly cases of a certain disease over the past 10 years. I want to know whether the increase in 2022 is statistically significant compared to... |
I have a problem deciding whether my data has dependant/pairwise or independant samples.
I have read multiple online guides now, but I can't figure it out:
I am testing about 10 different surface materials, which are placed outside for about half a year. In cold weather those materials begin to ice over. This icing beh... |
Background
The lecturer of statistical computing asked such a question in title. To be specific, the population distribution is
$$
f(x_1, \cdots, x_p) = \left(x_1^{p-1} + \cdots + x_p^{p-1}\right)I(0<x_i<1,\forall 1\le i\le p)
$$
The theory of drawing an approximate sample is conditional distribution.
$$
f(x_1, \cdot... |
Consider the probability distribution $D \sim X - a$ where $X \sim \text{Exp}(\lambda)$. My task is to find the MGF of probability distribution $D$. I think I have a solution but it contradicts what I thought would be the intuitive solution, so I would like to confirm my work:
For $D \sim X - 5$ where $X \sim \text{Exp... |
Can $\chi^2$-test be used to compare two densities?
For example count of something per 5000 meters: like 2050 counts/5000 meters and 1500 counts/5000 meters.
Can $\chi^2$-test be used to see if these two densities are significantly different? I know $\chi^2$-test is used to compare two proportions but not sure if it ca... |
Using a generalized linear model; I got particularly large or small OR with 95% CI; while these are all insignificant as P > 0.05 for these, I just wanted to ask on the community if I am missing something?
Some of the strange values are as follows:
# Intercept OR: 3.913049e+08 2.5%: 2.776314e-29 97.5%: 2... |
Is it possible to rewrite
$$
\frac{-1}{2}\left(x^T\Gamma^{-1}(\mu_1-\mu_0)+(\mu_1-\mu_0)^T\Gamma^{-1}x\right)
$$
as
$$
-\theta^Tx
$$
where $x,\mu\in\mathbb{R}^d, \Gamma\in\mathbb{R}^{d\times d}$ and $\theta$ is some function of $\mu,\Gamma?$
Tried to rewrite as
$$
\sum x_i\Gamma^{-1}_i\mu_i + \sum \mu_i\Gamma^{-1}_ix_i... |
I have the following matrix:
$ U = \begin{bmatrix}u_{1} \\ u_{2} \\ \vdots \\u_{T}
\end{bmatrix}$
where $u_i$ are $k \times N $ matrices and
$E[vec (u_i) vec (u_i)'] = \Sigma_i \otimes I_k $
for $i=1, \ldots,T$ and $I_k$ is the $k \times k$ identity matrix. The $\Sigma_i$ matrices look like:
$\Sigma_i = \begin{bmat... |
I am confusing about the relationship between z-score and the normal distribution.
Do we apply z-score normalization to get a data with normal distribution, or given we have a normal distribution, we can apply and use z-score?
What is the exact relationship?
|
While fine-tuning a deep neural network I ran into the following situation:
My train- and validation loss are both decreasing and have very similar values throughout training. Especially the train-loss is not significantly lower than the validation loss. Still both loss values are rather high. Thus, I would argue the ... |
Let $X_1, ..., X_n$ be i.i.d. samples drawn from a pdf $f(x)$ on the real line. The kernel density estimator is defined as follows,
$$\hat{f_n}(x) = \frac{1}{nh}\sum_1^n K(\frac{x-X_k}{h})$$
where $K:\mathbb{R}\to [0, \infty)$ satisfying $\int_{-\infty}^{\infty}K(x) = 1$ and $h>0$.
How to prove that $\Vert \hat{f_n}(x)... |
The subsample option in XGBoost is described here as follows:
Subsample ratio of the training instances. Setting it to 0.5 means that XGBoost would randomly sample half of the training data prior to growing trees. and this will prevent overfitting. Subsampling will occur once in every boosting iteration. [default=1]
... |
With regarding to OLS estimators why $\hat\beta_1$ and $\hat\beta_0$ have a variance?
|
In ESL section 4.3.3 , Author gives three steps for finding optimal subspaces using LDA as below
compute the K × p matrix of class centroids M and the common covariance matrix W (for within-class covariance);
compute M** = MW-(1/2) using the eigen-decomposition of W;
compute B** the covariance matrix of M**(B for betw... |
I am fitting the following model (random intercepts and slopes) on my data:
lmer(MuscleActivity ~ Period+ (1 + Period|ppnr), data = df)
My goal is to test whether the muscle activity during stimuli presentation is larger than during muscle activity during random time points.
The data frame looks something like this:
... |
I plan a study where I predict variables with machine learning methods integrating data from multiple surveys. The questionnaires assessed with each survey slightly differ, so that I have a lot of missing values (e.g. Questionnaire 1 was assessed in survey 1,2,3, but not in survey 4).
My question is, do the Missing at ... |
I have some highly skewed real world data, from which I want to create a probability density function which I can then use to generate random samples that mimic the original data. The data is a long list of lengths and it approximates this function in R...
library(rBeta2009)
x <- rbeta(10000, 1, 3)
plot(density(x))
... |
I am analysing the time to the end of rehabilitation; however, not all patients receive rehabilitation. Therefore, for making Kaplan-Meier curves for the whole study population (including non-receivers), these curves should start below survival 1. For example, if only 70% of patients received rehabilitation, the y-axis... |
I have this data:
x = np.array([[ 6.2120e-01],[ 8.4310e-01],[ 1.2467e+00],[ 1.0147e+00],[ 3.0860e-01],
[ 5.2160e-01],[ 6.9720e-01],[ 4.2600e-01],[ 6.5200e-01],[ 1.3448e+00],
[-3.5860e-01],[ 1.0618e+00],[ 1.0513e+00],[ 7.5890e-01],[ 2.8270e-01],
[ 5.2180e-01],[ 3.9240e-01],[ 1.6279e+00],[ 1.8290e-01... |
I wanted to cluster https://www.kaggle.com/datasets/iabhishekofficial/mobile-price-classification?resource=download data.
I used 2 different R implementations of Hopkins statistic:
hopkins::hopkins() (https://github.com/kwstat/hopkins/blob/main/R/hopkins.R) and
factoextra::get_clust_tendency() (https://github.com/kassa... |
This is my first question here, so I hope it is posed correctly. It is a Bayesian probability question:
I would like to know the probability of P(A|B,C,D).
I can sample everything (including P(A), P(B), P(C), P(A|B,C), P(B,C|A), P(A|C,D) etc.), except for anything that requires sampling B,C and D all at the same time.
... |
Exercise. Suppose you train a Ridge model to a regression problem that has a normalized perfomance measure (say K) that attains a value in the interval [0,1], where 0 means that the model is terrible and 1 means that the model is perfect. Suppose that you evaluate the trained model and obtain in the training set K = 0.... |
I have a dataset of 2 variables collected repeatedly at 5 different timepoints on a group of individuals, structured like this:
ID TimePoint Variable Result
1 1 Var1 5
2 1 Var1 7
3 1 Var1 3
1 1 Var2 5
2 1 ... |
I am trying to fit a decision tree on a data with only one explanatory variable and both explanatory and response variables are continuous. I believe in such case the result tree is almost like a step function as in a constant prediction value will be assigned for each subinterval of the horizontal axis. Most of the pl... |
I'm doing a study with five proportion predictors that sum to 1. I'm wondering if a LASSO regression is an appropriate analysis?
|
I'm a new learner to R. I can properly find a KM curve for Overall survival, but stuck when it comes to relapse free survival. In RFS, is your time to event the time to relapse vs censoring? How do you account for death? I'm confused as the two variables here, relapse Y/N or death Y/N. Ive been using the survfit (Surv ... |
I'm having trouble fitting my model to a bacteria growth curve. I made a sample of my data below.
Code:
df <- data.frame(Bacteria = "EC",
Strains = c("AR1", "AR1", "AR1", "AR1", "AR1", "AR1",
"AR2", "AR2", "AR2", "AR2", "AR2", "AR2",
"AR1", "... |
In the context of machine learning, consider a scenario where multiple models are trained to make predictions on a particular task, which could be either a regression or classification problem. However, the ground truth data of the target phenomenon is unknown. The objective is to determine whether there exists a metri... |
I'm going back through Simon Wood's book on generalized additive models (GAMs) and came back across the definition of the penalty term employed, which is supposed to combat overfitting of smooths. The equation used is the following:
$$
\Vert{y-X\beta}\Vert^2 + \lambda \sum_{j=2}^{k-1}\{ f(x^*_{j-1})-2f(x^*_j) + f(x^*_{... |
In the mgcv package in R, I'm working on models whose covariates are forced to change shape at the median (=0). These are the models:
gam1 <- gam(Y~ s(X1, pc=0)+s(X2, pc=0), data=data)
gam2 <- gam(Y~ te(X1, X2, pc=c(0,0)),data=data)
Unfortunately, the constraint on the gam2 model with tensor products doesn't work and ... |
Let dataset $D = \{(x_1,y_1),...,(x_n,y_n)\}$ where $x\in\mathbb{R}^d$ and $y_i\in\{0,1\}$
There are 2 mean vectors $\mu_0,\mu_1\in\mathbb{R}^d$ that represent the means of each feature split by label. Meaning that $\mu_0$ represents the means of data with $y=0$
The likelihood function is given by
$$
\log\prod_i^np(x_i... |
I'm a student working with https://www.kaggle.com/aksha17/superstore-sales, primarily as an exercise in resampling and using prophet and it was suggested to me to create dummy variables and use the likes of 'Category' and 'Segment' as additional regressors to improve the 'Sales' forecast
And for the life of me, I can't... |
Start with a normal distribution with mean M and standard deviation S. Now exclude all values below the Kth percentile. What is the mean of the remaining 100%-K% of the values as a function of M and S?
I'd just like a simple answer and don't need a proof or generalization which are provided in lengthy answers to relate... |
I am trying to do a simple linear regression of a scatterplot and it results in this:
So, the red line is the result I get, but I expect something more like the black line (drew it roughly). I use ordinary least square minimization and I understand that the black line would have huge residuals for the points on the fa... |
I am unsure as to how to compute a two sided p value following permutation testing, following different examples online.
For example, this post Two-sided permutation test vs. two one-sided, gets the proportion of the absolute correlation coefficients from the permutation test greater than or equal to the absolute non-p... |
I want to compare two alternative approaches for evaluating the uncertainty of the multi-dimensional MLE $\widehat \theta$ based on a log-likelihood function $l$:
Compute a Fisher-information-based quadratic confidence interval for the MLE as $$l(\theta_i) \approx l(\widehat \theta_i) -\frac12 I_n(\widehat \theta)_{ii... |
I have been told to estimate a gender and nationality gap using a regression model for a dataset provided by a third party.
The dataset contains information about workers in a very specific sector.
A sample of X companies was drawn from a population of companies operating in that specific sector. Then, data were collec... |
I created two donation campaigns, one loss framed (N:1993) and one gained framed (N:1989) I understood donations are usually veeeery low and the sample was a lot smaller than previously expected, so I had to let go the idea of having a control group (as if I divided my group into three I most likely would have gotten ... |
I am looking for a method that incorporates historical data and future incomplete data. I have historical demand data (container usage at a rail yard) that I can use to predict future demand. However, I also have future container booking/reservation data that customers placed in advance. This data may change in the fut... |
I have the following problem:
The weights of large eggs are normally distributed with mean 65 grams and
standard deviation 4 grams. The weights of standard eggs are normally distributed with
mean 50 grams and standard deviation 3 grams.
One large egg and one standard egg are chosen at random. Find the probability that... |
Im currently working on a regression model that looks at how the electricity price is impacted by imports of intermittent (wind, solar) electricity from interconnected countries. In the research process I have found that demand is an important factor that may "hide" the effect of intermittent generation especially when... |
I have a corpus of book publications split into different clusters. I have information about the nationality of the authors (variable A) and the nationality of the publishing company (variable B).
In the case of variable B, publishing companies are either US-based or Euro-based (2 categories). In the case of variable A... |
I know that a family of Gaussian copulas generates a standard bivariate normal distribution if and only if the marginal ones are standard normal. This characterizes the Gaussian copulas, where I have a problem is, if I change the standard normals for normals with mean $\mu$ and variance $\sigma^2$, do I get a family of... |
During my work I encountered a plot, in which we have two curves indicating:
Mean value of observations of dependent variable $Y$ (in my case it was annual frequency of claims), calculated for diffent values of some other variable, let's say $Z$;
Mean predicted value $\hat{Y}$, which is an evaluation in data point of ... |
Good afternoon all,
I've got a model that models a time series and I am trying to decide which how the residuals are correlated. The first model, called $m1$ is models $AR(1)$ residuals and the second model models $AR(2)$ residuals called $m2$. I'm looking at the residual plots, ACF/PACF plots and also the AIC/BIC valu... |
Looking for the circumstances of when we should use a ROC curve vs. a Precision Recall curve.
Example of answers I am looking for:
Use a ROC Curve when:
you have a balanced or imbalanced dataset (Source).
when the cost of false positives and false negatives is roughly equal (needs verification)
...
Use a Precision Re... |
I have many variables ( ~2000 and 320 samples) and I have found the correlation coefficient for each unqiue pair of these variables through Spearmann (underlying data does not have normal distribution). As some outliers can affect the correlation coefficient value, I am considering bootstrapping and/or permutation tes... |
I am using the BaSTA package in R to estimate sex differences in survival parameters for a capture-recapture dataset. When I use a simple Gompertz model the parameters are very interpretable (b0 represents the baseline hazard and b1 represents age-dependent mortality rate, or senescence). However, when I look at a simp... |
I am trying to perform t-tests and ANOVAs on numerical parameters (eg. bone density) comparing groups. t-tests will be applied to a 2-group grouping method, and ANOVAs will be used when I hope to analyze in a 3-group manner. I want to adjust the parameter (bone density) taking another numerical parameter into considera... |
I'm super new to R and wanted to make a pie chart of the results found from a 6 faced die. From what I understand, this is supposed to throw the 6-faced die 500 times, and then map out the results in a pie chart.
It seems fairly simple, but the pie chart splits into 500 ways. What am I doing wrong?
die <- 1:6
result <-... |
I'm sorry if the title is confusing. I am working with a model with $(X,Y_1,Y_2,...,Y_k)$ such that $X$ is some random variable (a latent factor) and the $Y$'s are generated according to:
$$ Y_i = \mu_i + \lambda_i X + \varepsilon_i$$
with all $\varepsilon$'s and $X$ mutually independent, all $\mu$'s and $\lambda$'s ar... |
Let's say we have a probability distribution in x,y space:
$$
p(x, y)=\frac{1}{4 \pi} \sqrt{x^2+y^2} \exp \left(- \sqrt{x^2+y^2}\right)
$$
This can be converted into polar coordinates as:
$$
p(r, \theta)=\frac{1}{4\pi} r^2 \exp (-r), r\geq0
$$
Now let's say we want to know the most probable distance from the centre, th... |
From this post, Confidence regions on bivariate normal distributions using $\hat{\Sigma}_{MLE}$ or $\mathbf{S}$, the equation
$(\mathbf{x} - \boldsymbol{\mu})^{T} \mathbf{\Sigma}^{-1} (\mathbf{x} - \boldsymbol{\mu}) \leq \chi_{p, \alpha}^2$
can be described by the parametric curve
$
\mathbf{x} = \boldsymbol{\mu} + \sqr... |
Let $x \in \{0,1\}^N$, and
\begin{align}
D &= \begin{bmatrix}
x_{1} \\
x_{2} \\
\vdots \\
x_{M}
\end{bmatrix}
\end{align}
So that $D \in \{0,1\}^{N \times M} $.
This is the original dataset. The zero indicate a trait and 1 indicate absence of the trait. The ord... |
Consider the general problem of predicting the conditional mean $E(Y|X)$ where $X$ is the predictor. One assumes $Y$ can be written as:
$Y=f(x)+e$ where $E(e|X)=0$ which implies covariance of predictor and $e$ is 0. Is $E(e|X)=0$ an assumption that is made or is it something that follows automatically from the fact tha... |
I am dealing with the following exercise:
Exercise. In a linear regression model of the form $y = w_1x + w_0$, if we increase the value of $x$ by one unit, what can we expect from the value of of $y$?
$(a)$ An increase of value equal to $1$;
$(b)$ An increase of value equal to $w_0$;
$(c)$ An increase of value equal to... |
In statistics there are 4 type of data ; ordinal, nominal, interval and ratio. Based on what i read on many website, in a multiple linear regression analysis you have to use interval or ratio data. Let's say i have Y as dependent variable and X as independent. I have Y = stock price (in usd), X1 = profit (in usd) and X... |
Let $X_1,\dots, X_n$ be a random sample from the geometric distribution $P(X=x)=\theta(1-\theta)^x$ for $x=0,1,2,\dots$ where $0<\theta<1$.
Find a function of $\theta$, say $\tau=h(\theta)$ so that there exists an unbiased estimator $\hat{\tau}$ of $\tau$ and the variance of $\hat{\tau}$ coincides with Cramér-Rao lower... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.