instruction
stringlengths
9
38.7k
I have been working on a project where I have a lot of time series data(3000 csv file) from 6 different devices and I am trying to convert those data to an image array so that I can use them in CNN to do a classification task. My goal is to train the model with existing data and then predict from which device the data ...
Suppose we have the following data generation process: \begin{align*} U &= N_{U}\\ X_{1} &= \alpha_{1}U + N_{1}\\ X_{2} &= \alpha_{2}U + N_{2}\\ X_{3} &= \alpha_{3}U + N_{3}\\ Y &= \beta_{1}X_1 + \beta_{2}X_{2} + \beta_{3}X_{3} + N_{Y}, \end{align*} with $(N_{U}, N_{1}, N_{2}, N_{3}, N_{Y})\sim \mat...
I have two distributions (see histograms below) and I would like to know, whether they are significantly different (let's say alpha=0.05). The sample size is n=500 in both cases (obtained by bootstrapping). Given the high number of samples, I defined the 2.5th and the 97.5th percentile as the the bounds of the 95% conf...
If we assume we are fitting the following regression model using ordinary least squares or maximum likelihood: $$ Y_i=X_i\hat{\beta} +\varepsilon_i \\ \varepsilon_i \sim N(0, \hat\sigma^2)$$ Computing $\hat\beta$, $\text{Var}(\hat\beta)$, and $\hat\sigma^2$ is straightforward using the usual formulas, but what are the ...
I'm trying to learn how to use PyTorch and to do so I pulled some Forex + COVID data I've used with other models in the past to predict the next-day exchange rate. The data has some COVID infection rates in both countries as well as some lag features. I first tried a single-layer network and that gave something (basica...
First of all, sorry if this format of question has already been answered - but I've had a look at previous answers and still can't figure this out for the life of me. So, I have these 15 samples of bacterial colonies. Leftmost column are 3 replicates of a cell line that I think should be more shiny when they get hot, a...
I would like to estimate the probability density function of a data set with a very large number of samples (50,000+) and a large number of continuous variables (2,048). Compute efficiency is somewhat important, so I would like to avoid approaches based on artificial neural networks. Considering the high-dimensional se...
Setup Let X follow a fininte mixture model with density \begin{equation} f=\lambda f_1+(1-\lambda) f_2 \end{equation} Where $f_1$ and $f_2$ are both log-normal densities with parameters $(\mu_1, \sigma_1)$, and $(\mu_2, \sigma_2)$ respectively and $\lambda \in [0,1]$ is the mixing probability. Let $Z_i$ be a random var...
I've been running a Cox regression with a dummy encoded dataset. For certain reasons, I tried doing the same procedure by using factor in R to designate my categorical variables. When I do this, some of the dummy encoded variables that previously violated the PH assumption are now merged with the rest of the levels in ...
I would like to fit a one-way between-subject anova that assumes unequal variances between groups. Reproducible example: library(emmeans) library(car) set.seed(123) n <- 50 DF <- data.frame(score = c(rnorm(n, sd = 10), rnorm(n, sd = 30), rnorm(n, sd = 40)), treatment = rep(c("A", "B", "C"), each = n),...
I'm trying to analyze data where site is nested within habitat which is then nested within region. Site is a random variable, but habitat should technically be fixed based on how the study was designed. What is the difference in coding this analysis as: 1.nest= lm(logDen ~ Region/Habitat/Site , data=data) Anova(nest, t...
I'm working on a meta-analysis and one study provides odds ratios without standard errors, confidence intervals or exact p-values. The only information provided is odds ratios, whether the p-value was greater than or less than 0.05, and the study sample size. Is there any way I can calculate a standard error from an od...
In principle, it should be possible to build a gradient boosted tree model on a loss function that only has (nonzero) first derivatives. I've found in practice xgboost and lightgbm make heavy use of second-order information in their custom objective function API. However, lightgbm (for that matter sklearn's random fore...
I am working on a linear regression model predicting the quantity of goods to order in the future. However, with some items, the model return negative values (despite the fact that all target values for the training set are positive). To solve this problem, I've used log transformation with the target variable (in this...
Sampling 100 random respondents for a binary true/false response from a total population of 220,000,000 yields a margin of error of 9.8%. If a new random sample of 100 respondents from the same population is surveyed each day for 90 days (each day's results having a 9.8% margin of error) and the 90 daily results are th...
I've spent countless hours reading up on the wonders of GAMs and believe the method is a great approach for my data and research questions: was the COVID-19 pandemic associated with increased hospital charges? The unit of analysis is at the hospital level (n ~ 5,000). I would like to determine if charges in 2020 were a...
I'll provide a little of introduction based on my example. I have a small collection of RGB (but 'gray-looking') brain MRI photos, divided into 2 classes: healthy and tumor. My data split looks like this: Training: healthy: 444 tumor: 444 Validation: healthy: 55 tumor: 55 Testing: healthy: 54 tumor: ...
This from the description of a kaggle competition: Note that the negative class has been subsampled for this dataset at 5%, and thus receives a 20x weighting in the scoring metric. They don't mention the metric used – I am guessing its accuracy, since it's a classification problem. But I don't understand the subsampl...
I am trying to do MLP regressor for my data (6 INPUTS & 19 OUTPUTS). I am using 2 hidden layers MLP. I have 100 datapoints. I am following the guidelines mentioned in this post for the selection of the number of my hidden nodes. According to the above source, the number of my hidden neurons should be between 6 and 15. ...
The probability of a fair coin landing heads is $p(H)=1/2$ and since there is only one other outcome we can deduce that the probability for tails is also $p(T)=1-p(H)=1/2$. Yet if we examine a distribution of coin tosses, knowing just one parameter (for example heads) is not enough to describe the distribution. We also...
Imagine you have some data with one continuous predictor x, a categorical predictor A, and some dependent variable y. You have some amount (enough) data for several subjects S across all conditions. You fit a model: y ~ x * A + (x*A|S) using lme4 and brms (using Stan) in R. The lme4 model returns the following error "b...
I understand that in LASSO/Ridge it is best practice to scale covariates so that no single covariate dominates the penalized norm. However, when entering interaction terms, it is unclear whether only the constituent terms should be scaled, or the interaction should be as well. More formally, Let be $x$ a vector of obse...
I am comparing several OLS multivariate regression models of a dependent variable (we'll call it $Y$) using various transformations, some of which also involve one of the independent variables ($X_1$). These transformations include: no transformation $\frac{Y}{X_1}$ $\ln(Y)$ $\ln\left(\frac{Y}{X_1}\right)$ I want to ...
I have done an analysis using Bivariate Cox Proportional Hazards Model Regression, to estimate the rate of exits from unemployment for people with mental illness relative to people without mental illness. I have done this for 2007, 2008 and 2009 (year of inflow into welfare), by age groups and gender. I am a bit confus...
I would like to report a chi square statistic evaluated from an experimental population in a manuscript. Do I use (1) the lower case Greek letter ($\chi^2$), (2) the upper case Greek letter ($X^2$), or (3) the standard upper case Roman letter "X" (X$^2$, as found in Microsoft Word on a standard QWERTY keyboard)? Many t...
My friend flipped (past tense) a fair coin and does not tell me the result. From a frequentist perspective, what is the probability of heads for the flip? The strict frequentist says, "The flip already occurred. There is no uncertainty to measure. Therefore, probability for the flip does not apply. The coin is either h...
I am confused about some maths in the help for calculating sample size for time to event data in the PS Sample Size calculator. One of the fields you need to enter is the m1 paramter, which is listed in the help as 'the median survival time on control treatment'. The help goes on to say "If you do not have a direct est...
We can see that the GDP growth, represented by "y" is the dependent variable and independent variable. I would like to perform quantile regression in Eviews, with y = FC + y + c , and the coefficient for y is 1, which make sense. Do I have to do something like y(+4) = FC + y + c if I wish to get the h quarter ahead?
This might be a dumb question, but I'm serious. Per the wiki page about conditional entropy: quantifies the amount of information needed to describe the outcome of a random variable $Y$ given that the value of another random variable $X$ is known. My question is what if I know two variables $X_1$ and $X_2$, can I say c...
I'm new to probability so apologies if this question is very basic. I was preparing a tree for an experiment involving drawing two cards from a deck of 52, one after the other. The events of interest were the probability of drawing an ace followed by a black card. The first part of the tree was simple - 4/52 for an ace...
I have a dataset with which I want to perform binary classification. The distribution of the target class is imbalanced: 20% positive labels, 80% negative labels. The positive class is more important than the negative class, false negatives (FN) are more costly than false positives (FP), and I need to give out probabil...
I'm looking for a fast and stable method to compute high-dimensional GLS estimator. Specifically, let $\mathbf{A}$ be a $p^2 \times m$ matrix with full column rank ($rank(\mathbf{A})=m$), $\mathbf{H}$ be an invertible $p \times p$ symmetric matrix and $\mathbf{S}$ be a symmetric $p \times p$ matrix. The GLS estimator i...
Given models M1 and M2, the first with q parameters and the second with p>q parameters, and assuming that M1 is nested in M2, then we can test the hypothesis that the smaller model is adequate by computing an F statistic: $$ F_1 = \frac{(D_1 - D_2)/(p-q)}{D_1/ (n-p)} $$ where $D_i$ is the deviance of model $i$, and whi...
While developing deepfm model network I want to add batch norm layer because model seems to suffer from vanishing gradient. There are embedding layers, 2 layers a in deep model part and one dense that connects fm model and deep model. If I want to add batch norm which layer do I added on? What do I have to look at to ...
I have taken the survival analysis class a few years ago, and we have learned both Kaplan-Meier estiamtes for survival curves, and the log-rank test for inferencing the difference of hazard rate between 2 groups. That being said, I can use software (such as proc lifetest in SAS or survival package in R) to do KM estima...
I am using linear model to do prediction, and I would like to calculate my prediction's prediction interval, which, when there is only one predictor, is However, my model has three predictors. What is the formula for multivariate case? I have been searching for a while, but I cannot find a formula for this.
I am reviewing a paper on prognostication after bleeding where the authors present two different logistic regression models; one for survival and one for an unfavorable outcome (dependent living and death). Plugging in the exact same values for the predictive variables (age, hypertension) and using the beta values and ...
I'm asking myself the question of why studies with small sample sizes are not as convincing as those with larger sample sizes, and when this becomes a statistical issue. A complaint I've heard a lot with studies is while they show a certain "desired" result (e.g. the treatment group had lower cholesterol than the place...
I am studying Hidden Markov Models and I'm trying to understand the following exercise: Consider Hidden Markov Model with hidden states $h_{1:T} = \{h_1,...,h_T\}$ and observed states $v_{1:T}=\{v_1,...,v_T\}$. Let $v_t\in\{0,1,2\}, h_t\in\{0,1\}$ and the parameters of the model are as follows. $p(h_1=1)=0.5$, the tran...
I have one dataset (A) containing several fields (strings) per sample. One of these fields is a name, and the others are all alphanumeric identifiers. I have another dataset (B) which contains highly unstructured strings of text which can include some of these names or unique identifiers. These strings have a large num...
What is the difference between Power law distribution and Exponential distribution? They both look similar!
I want to get ideas of how to approach this problem and what is the different effect of each one. Assume you have a set of time series (several variables measured always at the same time) and you want to detect anomalies in these time series. Assuming each time series varies slowly in time, so changes are seen as a sm...
I usually normalise my input variables for linear models (i.e. apply a log transformation, or rank-based inverse normal transformation). One of the reasons I like using tree based methods like Random Forests and XGBoosts is that I do not need to transform the input features (when using these algorithms for classificati...
I have a bacterial killing assay with 3 drug concentrations and one control. I have data for 6 time points including time point 0. I want to use statistical tests to compare the control to each treatment type to determine if there is a statistically significant difference at each time point. I'm not sure which tests to...
Suppose that I had some variables characterising health states. Namely, the variables characterise health on a scale of 1-3 (where 1 is good, 3 is bad). However, it just so happens that the jump from health states 1-2 is qualitatively less significant than the jump from health states 2-3. In such circumstances, would a...
I want to interpolate the dataset below using lognormal distribution in R. As you can see from the data below, I have different land size classes (ha) and I would like to interpolate the data using the standard land size classes I will use for all countries. This is the original land size classes Size classes (ha) ...
I am looking at various plant community traits and how they relate to a number of environmental variables in a woodland. I am using mixed models as some samples come from the same woodlands so I'm modelling 'woodland site' as a random effect. My response variable is a measure of a plant functional trait scored on a sca...
I need some advice here. My dependent variable is binary (snows or not) and my independent variables are temperature, pressure, and some wind index. I have daily data for 30 years. The data are correlated (since they are daily) so I am afraid to use logistic regression. Any idea of a model that I could use?
I'm reading ESLII, in particular the chapter about shrinkage methods, lasso, and ridge regression. The optimal model parameters for a given constraint $\sum | \beta_j |^q < \alpha $ are given by the equation $$ \tilde{\beta} = \text{argmin}_\beta \left\{ \left(y_i - \beta_0 - \sum_{j=1}^p \beta_j x_{ij}\right)^2 + \lam...
I understand that the L1 norm promotes sparsity and is a Laplace prior in the LASSO regression framework. I am interested in how this prior changes when we apply L2,1 regularisation instead? Is it possible to visualise this new distribution if it is different at all? The formulation is $$X=\text{argmin}(||Y-AX||_\text{...
For a timeseries data $\{D_t\}$ with some seasonality $s$ and high volatility $\sigma$, we often want to perform a rolling average $\frac{1}{n}\sum_i D_{t-i}$ to denoise the data and take some differencing $D_t - D_{t-s}$ to deseasonalize the data. For certain financial assests that follows exponenial brownian motion, ...
I currently have the following problem. I have some data following a linear model $$y=\beta_1x_1 + \beta_2x_2 + \beta_0$$ (let's say with some Gaussian error) which I would like to estimate. However, I know that there is some additional dependency between the variables involved. Namely, I know that $x_1,x_2,y\geq0$ and...
I want to run an xgboost algorithm on my data. I have about 35 predictor features (numeric) and one target feature (catigorical). 1550 samples as rows. The training set contains about 1150 samples. The rest is in the test set. There are many tuning parameters that are just confusing and I don't know how to use them. I ...
What are some specific examples of when PCA should be used instead of NMF? PCA is a widely used method for dimension reduction in data science, machine learning, and bioinformatics. NMF is also a popular method for dimension reduction, much like PCA, and can be used for many of the same types of analyses (e.g. graph-ba...
i was reading this article on towarddatascience and at a certain point the author says "An important difference is that local reparametrization works only for fully connected networks, while Flipout can be used effectively in fully-connected, convolutional, and recurrent networks." but i do not understand why the local...
I estimated a ZINB model with the probability of producing a structural zero as equal for all observations with ziformula = ~1. For context: I want to know what predicts the number of cigarettes smoked per day (CPD) over 20 days. zinb <- glmmTMB(CPD ~ 1 + day + X2*X3*X4 + X5*X6*X4 + X7 + (1 + day + X2||ID), data = dat...
I am new and I don't have background in time-series analysis or machine learning. Therefore, I am posting this question here: I have three time-series data. temp_anomaly is annual temperature anomaly data from 1959 to 2021. co2_annual is annual CO2 data from 1959 to 2021. temperature is hourly temperature data for one ...
I need to understand how Playground on Tensorflow works. How can I interpret x1, x2, x1^2, x2^2 and... . Because in real neural network, we just have some numbers but, here, how we can interpret the values and colors inside those square boxes? How we should interpret the white line in features? How we can interpret t...
I have a data set with 440 responses. I have 11 people who did not answer any question on the survey. Then there are a couple of missing values here and there outside of the full 11 non-responses. Is list wise deletion my best option? In all, I think I would end up having to delete 19 responses.
For a zero-mean stationary stochastic process $\{X_t\}_{t \in T}$, assume that $\hat{X}_{t+1}$ as a linear combination of $X_t, X_{t-1}, ..., X_1$ is the best linear predictor for $X_{t+1}$ in term of unconditional minimum mean squared error MMSE (i.e. $\mathbb{E}(X_{t+1} - f(\mathcal{F}_t))^2$ is minimized if $f(\math...
In the F1 score, the harmonic mean of precision (Positive Predictive Value) and sensitivity/recall (True Positive Rate), I understand that we use the harmonic mean in order to penalize extreme values of one or the other, and because the harmonic mean tends to be better than the arithmetic mean for averaging rates. See ...
I got the following problem: If one would have fitted a generalised additive model allowing a smooth function to capture the effect of Age, which form would have it taken? Call: glm(formula = y ~ Age + I(Age^2) + Sex + Height + Weight, family = binomial, data = data) Coefficients: Estimate Std. Error z value ...
The statistical folklore I have heard is that the choice of link function usually does not considerably affect the resulting fit of a GLM. For example, usually probit regression and logistic regression give models that generate similar predicted probabilities. D. R. Cox made a similar comment in Analysis of Binary Data...
Imagine I collect time series data from a group of people before and after treatment. Now if I want to compare the results before and after should I take the average of the time series and apply a paired t-test? I assume taking average will lose some information. Is there any other way to apply a comparison test withou...
I would greatly appreciate an easy-to-understand answer. To my understanding, if the adjusted residual is +/- 1.96 or more (or less if negative), then something is going on. What exactly does the adjusted residual tell me, and if possible please explain with an example. I am using SPSS. According to the explanation in ...
I'm applying for a data scientist job, which requires a lot of knowledge in A/B testing/Experimental design. But actually I'm not very familiar with it. For A/B testing I was recommended a great book called Trustworthy Online Controlled Experiments. but I still want to know what's your textbooks for A/B testing/Experim...
I am having a hard time understanding how to use Non-Max Suppression (NMS) when trying to evaluate an object detection model, especially when paired with trying to calculate metrics like the mean Average Precision (mAP). For example, I trained an EfficientDet model to find and classify objects into three categories. No...
I have the following model for returns as a function of firm_profitability, sentiment, and additional predictors (included in the Gamma * Z term), with error term e. positive_sentiment is a dummy variable representing sentiment > 0, so that the association between returns and sentiment can differ between positive and n...
Hypothetical example: I want to regress a vehicle's fuel efficiency to the following variables: Vehicle type (car, truck, van, SUV) Year built Weight Manufacturer Gas vs Diesel etc.. When (if ever) would I split this 1 model to several models? For example, would it be wise to create 4 separate models: one for cars, t...
For binary item response $i$ by person $j$, the 2-PL item response model is of the form: $$Response_{ij} \sim Bernoulli(p_{ij})$$ $$logit(p_{ij}) \sim \alpha_i(\theta_j - \eta_i)$$ Usually, $\alpha_i$ is called a "discrimination" parameter affecting the scale of the item characteristic curves while $\eta_i$ is a "diffi...
I am trying to find a rigorous mathematical definition of a data generating process (DGP) under a well-defined probability space. The closest source I have found on Cross Validated is this one, and it seems to come from a Evans and Rosenthal textbook (see the post). Are there other rigorous definitions of a DGP or a re...
I'm interested in finding the interaction impact of 3 genes together on a quantitative phenotype with adjustment of 3 covariates . I want to study the interaction effect but not the main effect. I'm fitting this model: model<-lm(quantitative trait~ covariate 1+ covariate 2+ covariate 3+gene1:gene2:gene3,data) So my qu...
Consider the following two regression models using data from the table below. $ln(wage)=\beta_0+\beta_1 female+u$ $ln(wage)=\gamma _0+\gamma_1 male+v$ wage female male 10 1 0 20 1 0 30 1 0 40 1 0 50 1 0 15 0 1 30 0 1 45 0 1 60 0 1 75 0 1 I believe $\beta_1$ in the first model can be in...
I am trying to check if the model is over-fitting/under-fitting. I am using Decision trees. I am doing this using two approaches. I have three questions: Which one of these two approaches is correct? Or both are correct? How can I produce reproducible results in Approach 2? The code is not giving me reproducible resu...
While working on a machine learning project, in addition to the widely known opensource ML packages like tidyverse (R), pandas/scikitlearn (python), we end up using lot of other little known packages, built for very specific purposes. As the open source packages are not regulated/moderated unlike SAS, how reliable will...
Question It is stated in Probabilistic Reasoning In Intelligent Systems by Judea Pearl that, intersection property of information relevance axioms - $I(X,Y\cup Z, W)$ and $I(X,W\cup Z,Y)$ $\implies$ $I(X,Z,Y\cup W)$ holds only for strictly positive probability distributions, i.e., $P(x,y,w,z)>0$ $\forall$ $x\ \epsilo...
I have ordinal data from a Likert survey with $45$ questions and $15$ participants. Every participant took the survey six times, so I have six answers from every participant for every question. All answers are $\in \{1, 2, 3, 4, 5\}$. The participants are not divided into groups. I want to quantify the consistency with...
I've tried reading through the other threads here on this subject but I still don't really understand the specifics to the answer I'm looking for. I have a crossed effects model that looks something like this, where items are just the words they have to read: lmer(Word_Reading ~ XS_1 * XS_2 * XI + (1|Subject) + (1|Item...
Suppose I am testing a hypothesis on data that is bivariate normal, $(x,y)\sim N(\mu,\Sigma)$ where $\Sigma$ is known but $\mu$ is not. My null hypothesis is a contrast $a^T\mu=a_1\mu_1+a_2\mu_2=0$. The data gives me $(\bar x,\bar y)\sim N(\mu,\Sigma/n)$. I'm trying to understand the relationship between two testing st...
Suppose I collected 3 random samples (each of size n) from the same population. I calculated three estimates (of the same parameter) and three 95% confidence intervals (for the same parameter). What is the probability that all 3 intervals failed to capture the true parameter value? If I assume the confidence intervals ...
I'm coming with a problem in terms of performing MLE on a dataset which is unlabeled. What I'm doing is I have some variables (generated from some distributions) and few coefficients (predefined) which generate a score (by simple linear regression), later the score is transformed to probability. I'm trying to build a m...
Is it OK to say something like this: "A model-based clustering with a hard threshold is equivalent to a k means clustering"? One of my instructors stated this in his slides, I kind of doubt this. (For model-based clustering I mean the one based on a mixture of multivariate gaussian distributions, with totally flexible ...
Patients received two different vaccines twice and we collected their blood after each vaccination to measure antibody levels in the blood. There are other variables but here I omitted them and just want to know how different vaccines affect the antibody levels. It seems that the longitudinal data mixed effect model is...
I have a time series Y, and another time series X related to Y. The value of Y is affected by X and some noise. How can I separate the effect of X on Y ? That is, how do I find a mapping f : X -> Y to characterize the relationship between X and Y ? Here is the figure illustration of X and Y:
I am not sure the following derivation is correct Let $Y \sim N(\mu_y, \sigma_y^2)$, $\theta \sim N(\mu_\theta, \sigma_\theta^2)$, and $x=y\theta$. Since $X$ and $Y$ are dependent, the joint pdf is $f_{X,Y}(x,y)=f_{X}(x|y)f_{Y}(y)$ , where $f_{X}(x|y)=N(y \cdot u_\theta, (\sqrt{y \cdot \mu_\theta} )^2)$, referred to $x...
I am training a model, and I'm using an xgboost model. I used the following piece of code to find the cross-validation score score=cross_val_score(final_classifier, X, y, cv=5, scoring="f1") and I get the following result score=array([0.51165018, 0.97186588, 0.97350451, 0.9742288 , 0.85236734]) On the training data, I...
I often need to conduct power and sample size calculations for multilevel regression, typically for a fixed effect. I use the simr package which works great, but I can't figure out how to test the standardized, instead of unstandardized regression coefficient in a simulated multilevel regression, or otherwise get it to...
I am doing a project about predicting which car will win a race given car characteristics as well as road characteristics. I use features corresponding to those : my model takes car1 features, car2 features and road features (I don't care about the pilots yet) to predict whether car1 will win. Case 1: I use use the dat...
In statistics there is a lot of literature about sampling, but I have not found any machine learning literature that discusses the quality/usefulness of the data set itself. This comes as a surprise to me, as the i.i.d. assumption is important in e.g. Vapnik–Chervonenkis theory for generalization. Specifically, I have ...
I carried out a multiple linear regression analysis with three dependent variables. Two of them are measures as a logarithm, one of them is measured on a range from [0,1]. The dependent variable is also a logarithm. In order to make them comparable, I used the stdBeta command in Stata to obtain the standardized coeffic...
I applied several ML algorithms to my data. My data is made of several predictive numeric features and a target categorical binary feature. My aim is to build a classifier and predict the target class, based on those predictive features (the target variable is binary). After running multiple algorithms like XGBoost and...
I have a little problem with my data (GDP per capita, some control variables with negative minimums (e.g. FDI) and explanatory variables without negative values but also different ranges. Originally, I derived growth rates for GDP per capita = (GDPpc_t=0 - GDPpc_t=1)/ GDPpc_t=1) *100. Then I normalized all variables/ t...
Is the difference between two ordinal survey responses still ordinal?
Let's say I have a population of N specimen that I've succesfully genotyped by M SNPs. If I know allele frequencies for every SNP, how do I compute likelihood of parental link (e.g. mother-daughter) for two randomly selected individuals that I know the genotypes of? My guess is that for a single SNP I maybe have to use...
X and Y are independently distributed discrete random variables. is it possible to find an upper bound for P[X<Y] that is always less than or equals to 1?
$\newcommand{\Cov}{\mathrm{Cov}}$ $\newcommand{\E}{\mathrm{E}}$ Show that if the joint of $X$ and $Y$, $f(x, y) = \frac{1}{2}\sin(x + y)$ for $0 \leq x, y \leq \frac{\pi}{2}$ and $0$ everywhere else, then there is no linear relation between $X$ and $Y$. My strategy is to show that $\Cov(X, Y) = 0$, so I work out the ma...
In SPSS, you can use a variable as WLS Weight when carrying regression. In R, you can use a variable as an argument weight in lm(). I was wondering if they are the same thing or if there is any difference between them? I think there is none, but can not find anything on this topic. If there is a difference, how should ...
I'm taking samples in such a way that I record multiple discrete values for each sample. Given an instance of a sample, is there any way to test if this sample appears to "fit" the population of other samples I've taken? I think this is similar to the idea of "goodness-of-fit", but it's a slightly different question/fo...
I am trying to compare the AUC of multiple binary classifiers to see whether one is significantly better than the other. For each classifier I perform 5-fold cross validation. What I came up with so far is using a Wilcoxon Signed Rank Sum test, as described here. I am wondering if this is the best approach, as I also h...
I apologise in advance for the long post, my questions are deeply interconnected so it felt wrong posting them as separate threads. Please note also that I edited this post to account for Florian Hartig's comments and questions. Context and goal I would like to build a model to predict the physical condition of a bird ...