instruction
stringlengths
9
38.7k
I've got sample data of the prevalence of a certain characteristic in two different groups, with prevalence in group 1 being 65% and prevalence in group 2 40%: # Generate data where the presence of the characteristic is higher in group 1 compared to group 2. group_1 <- data.frame(id=as.numeric(1:100), ...
I have two feature extraction pipelines giving the same features but with different distributions. To make it simple, it's like we have two types of cameras. We train the model on data coming from the first camera and want to deploy it on the second one. How can we transform images from second camera so they maych the ...
I'm reading about VQ-VAE, and trying to understand the commitment loss $\beta||z_e(x) - sg(e)||^2$, described in the following sentence: Finally, since the volume of the embedding space is dimensionless, it can grow arbitrarily if the embeddings $e_i$ do not train as fast as the encoder parameters. To make sure the en...
I'm currently working on an ensemble of 5 differently trained networks using MinkLoc3D v2 as base-net. I'm currently investigating the reason for lousy recall when I compare the extracted database embedding using one network (trained for example with seed 42) and the extracted query embedding using one network (trained...
If we have an underpowered study but manage to reject the null hypothesis, anyway, it makes sense to wonder if we have overestimated the effect size. However, such a concern seems unwarranted if we use an unbiased estimator of the effect size (such as $\bar X_1-\bar X_2$ to estimate $\mu_1-\mu_2$). At the same time, th...
If I have a data sample in the form of a matrix $X$ of dimensions $n \times m$, is there a standard procedure to optimally pick $n'$ rows ($n'$ fixed) of the matrix $X$ so that $C_{X'}$, the correlation matrix of the resulting matrix $X'$ of dimensions $n' \times m$, is the closest to the identity matrix? I am relative...
In brief, I am used to a definition of the P-value as: the probability of observing our sample data (or something more extreme) if the null hypothesis is true. Consequently, seeing null hypotheses of the form $$ H_0 \ : \ \theta \ge \theta^* $$ (or some variation with an equality statement). Recently, however, I encoun...
Data Here is the data I am using, which records my coffee consumption and productivity habits by day: work <- structure(list(Coffee_Cups = c(3L, 0L, 2L, 6L, 4L, 5L, 3L, 3L, 2L, 2L, 3L, 1L, 1L, 3L, 2L, 2L, 0L, 1L, 1L, 4L, 4L, 3L, 0L, 1L, 3L, 0L, 0L, 0L, 0L, 2L, 0L, 1L, 2L, 3L, 2L, 2L, 4L, 3L, 6L, 6L, 3L, 4L, 6L, 8L, ...
So, I wanted to cook up a statistic that was similar to the Wasserstein metric for finite sized samples from distributions on a continuous support that is also invariant to reparameterization of the 1-d support space. I'm familiar with the KS test (and its drawbacks), and aware of the Anderson-Darling and Cramér-von Mi...
fairly new to data science in python, looking for some help. If I have an array of ones and zeros, which is roughly say 1000 elements zero then 1000 elements one and so on, and an array of time data corresponding to the ones and zeros in ms. How would i calculate the average frequency of the pulses using python? but wh...
I am trying to give some theoretical foundations to the intuitive idea that three branches of mathematics are indeed tightly connected, specifically: clustering, graph-theory and principal components. I would like to post this as a very open question, without commenting too much on why I believe these fields are connec...
I came across this page and was surprised and confused by the following: A naive person attempting to do a bootstrap test just calculates a P-value as something like mean(tstat.star > tstat.hat) where tstat.hat is the value of the test statistic calculated for the actual data and tstat.star is a vector of values of th...
I am analyzing a RNAseq experiment constituted of 5 different groups of alcohol drinking mice: non drinkers, low drinkers, high-resistant, high-sensitive and water control. My ultimate goal is to identify genes changed specifically in one of the conditions (genes changed only in non drinkers, only in low drinkers, only...
I have been learning about standard methods in Statistics such as the Pearson's Correlation Coefficient, Spearman's Correlation and Kendall's Tau. My understanding of this so far is that: Pearson Correlation Coefficient measures the linear correlation between two sets of data Spearman's Correlation measures the "mono...
Suppose I have some data that includes height and weight measurements for 1000 people - I am interested in calculating the Correlation Coefficient to see if there exists some correlation between height and weight, and if this correlation is statistically significant. I was curious in learning more about how the Confide...
Most procedures I found use only one proportion per study. But all the studies I am analyzing have within-subject designs. They compare the proportion of successes in the manipulation with the proportion of successes in the control condition. All sample sizes are known. The meta-analysis method for dichotomous models a...
I read this question somewhere(one statement is apparently false) and all four seem to be TRUE to me. What am I missing? What statement is FALSE? (Sharing my thoughts below the statements) Bagging is used with Decision Trees (This seems obviously True) Bagging creates random subsamples from the whole dataset with rep...
Given independent random variables $X,Y$, and $M=\min(X,Y)$, what is $E(XM\mid Y=M)$ ? The specific case I'm working on is assuming $X$ and $Y$ are exponential random variables with mean $\theta_X$ and $\theta_Y$. I'm curious about what is the general formula for any random variable?
A few questions about the discrete-time voter model, described in the following way. Let $\Lambda = \{1, \dots , L\}^d \subset \mathbb{Z}^d$, and let $(I_n)_{n\in\mathbb{N}}$ and $( N_n)_{n\in\mathbb{N}}$ be i.i.d random variables uniformly distributed on $\Lambda$ and the set $\mathcal{N} := \{i \in \mathbb{Z}^d : |i|...
I am looking for a diagram of stochastic processes like the Univariate Distribution Relationship Chart Maybe someone know a visualisation of a relationship between families of stochastic processes ?
I am modeling a dependent variable which has significantly different distributions when grouped by various independent variables. Consequently, it is difficult to compare previous values of the dependent variable, because they may have been in different groups. I am trying to standardize the dependent variable by these...
Sorry if this question sounds very amateurish, but I am completely new to R and this website. So, I have a data set with counts of infected organisms as a response variable (for three different species) and 5 different predictor variables. The infected organism count data is from over 200 surveys where they did not col...
I need to calculate the sample size for a retrospective, cross sectional study. The outcome variable is fear of cancer recurrence and has 3 categories (normal, mild, significant). There are two groups (treatment vs no treatment). I want to conduct a 3x2 chi square. There is very little existing data on this population ...
I have always wondered - how confident do researchers tend to be in their "prior" information when deciding to create statistical models using a Bayesian Approach vs. a Frequentist Approach? As an example : Suppose a team of researchers has some data relating to the healthcare industry - let's say that they are interes...
In many classification problems, the cost of a FP is different from the cost of a FN. In spam detection, a FP (a regular email classified as spam) should have a high cost. In cancer prediction, a FN (a cancer goes undetected) should have a high cost. In spam detection for example, the cost of a FP is high so a natural ...
The number of registered users 1 group= 5873, the number of returned in 1 day=1887. The number of registered users 1 group= 6520, the number of returned in 1 day=1794. Is it possible to say with confidence that the retention of group 1 is higher than the 2? What statistical test can be used to prove this
My goal is to show that t-GAS is better than t-GARCH, so I am trying to analyze some data about Crude Oil volatility comparing these models with functions in R packages (GAS and rugarch). After estimation, values of AIC, BIC, LL are better in GARCH. How can I resolve it? Thank you!
The binomial probability, for one flip of $n$ unfair coins with probability-of-heads $p_u$, of flipping $r$ heads $$B(n, r, p) = C(n, r) \ p^r \ (q = 1 - p)^{n - r}$$
I came across a figure saying that the distance from mean-sd to mean+sd in a normal distribution has 68.2% of the elements. How can we demonstrate that mathematically?
I am learning the Cox model following following helpful advice from Therneau, Crowson and Atkinson. I am having some trouble interpreting the hazard ratios. In the "Using Time Dependent Covariates and Time Dependent Coefficients in the Cox Mode", a flexible fit by using nature spline was set as the time-transform funct...
I am doing a project where I want to forecast prices for the next day based on some lagged values of the price. When I read about how to implement this (in Python) what I find it that they use a training data set, fit the model, and then use these parameters to forecast a test data set. For example: #first until n-5 ob...
We can take the variance series and apply ARIMA model on it to have forecasting of volatility. "ARIMA modelling is not the best in this circumstance because it models the mean rather than the variance. Therefore ARCH modelling is preferable" What does this mean?
It is written in online lecture notes that series need to be stationary, and usually the RETURNS series are stationary. But my lecture notes say that the series needs to have heteroscedasticity in order to apply GARCH on it. So how can it be stationary as well as heteroscedastic? I am so confused!
It's been a while since I dealt with statistics, I guess I need to brush upon my knowledge about it but as I was reading an article for my class I had a hard time understanding the author's main point intuitively. Below is an excerpt from the article's abstract. The part where I had problem with is the meaning of a fir...
Probability of winning a game of soccer, given 1 of the 10 players is Messi, is = 0.8. Probability of winning the same game, given 1 of the 10 players is Ronaldo is = 0.6. What is the probability of winning if both Ronaldo and Messi are in the team? So, using notations - Given, P(Win | Messi playing) = 0.8 and P(Win |...
We keep on getting questions here about selecting ARIMA model orders based on ACF/PACF plots. This is the older methodology proposed by Box and Jenkins. More modern tools like the auto.arima() function in the forecast package for R or ARIMA() in the fable package instead use a grid search over different orders and sele...
Can someone help me understand in very basic terms what the quantile plot to the right shows? I have read the description in the DHARMA vignette but am unable to get my head around it. Does the cluster of points around 0 suggest zero-inflation?
Good morning, I have two groups of participants, and the same variable, measured in three different moments (categorical data- non-parametric test, between groups). I would like to know which test should I use, to know the significant difference in this variable. Thank you
I have a data set with a number of observations. Based on the results of some preliminary analysis, I have calculated a score for each observation that denotes how "important" each observation is. I want to then train a classifier but I want the classifier to "focus" more on the observations which are more "important",...
I am currently working on predicting the customer revenue in next 3,6 or 9 months using the below two methods a) Buy Till you die probabilistic models b) Tweedie regression and other regression techniques Currently, I have data from 2017-01-01 to 2022-05-30 of 5900 customers. However, out of this 5900 customers, only 1...
My question is simple, but I could not find any references for this particular case. When we have a random vector, we usually use $\boldsymbol{X}$ to denote the random vector and $\boldsymbol{x}$ to denote an observation of this random vector. Now, when we use matrices, the usual notation for a matrix is a non-bold upp...
I am trying to predict customers as a function of spend, company, product type and market demand. The purpose of this modelling is for understanding the causal impact of IVs and for accurate predictions. I initially tried to fit a negative binomial regression. When I used the Dharma package to test the goodness of fit,...
I've got a problem with some count data of mine. I am using a cohen's D/ Hedges G to compare the effect size between two different treatment groups in my experiment, and then repeating that process for a different strain of fly with the same treatment, and comparing effect sizes for the two different groups to see if e...
In the book Generalized Linear Models with Examples in R - Dunn and Smyth, in Chapter 6.8, it is recommended to use the Pearson estimator of the dispersion - "This makes the Pearson estimator the most robust estimator, in the sense it relies on fewest assumptions. For this reason the glm() function in R uses the Pearso...
I am trying to compute PCR manually in R where I try to compute the principal components for the train data then compute the coefficients from these data and use it to predict the test data. The problem I'm facing is that the size of the intercept will have the same size as the training data so I am confused as to how ...
I have been tasked with creating a machine learning model that will be used to identify what makes a customer successful such that we can look for non-existing customers that have similar characteristics to target. What makes a site “successful” will be the revenue generated from them purchasing our product. I am plann...
I have a dependency matrix as follows: Y X1 X2 X3 X4 X5 Y 154.52 154.52 363.28 86.04 98.42 105.21 X1 154.52 154.52 363.28 86.04 98.42 105.21 X2 363.28 363.28 598.73 276.12 287.94 291.42 X3 86.04 86.04 276.12 131.01 102.61 111.25 X4 98.42 98.42 287.94 102.61 164.29 109.33 X5 105.21 105...
I am trying to fit a multilevel longitudinal model and I am not sure how to conceptualize the structure and how to specify it with lme4 notation. My outcome of interest is the child's internalized symptoms scores, measured 12 times across childhood, by different informants at each wave of data collection. Not every inf...
I've seen many many many different questions on how to extract Leverage and Cook's distance for Lmers. I'm able to do that with different packages and functions by now, but how should I interpret them ? I've seen many different answers to that ... A more general question should be: What's the best method to identify ou...
kruskal.test(IRAmax.P ~ group, data = my_data) Kruskal-Wallis rank sum test data: IRAmax.P by group Kruskal-Wallis chi-squared = 20.745, df = 3, p-value = 0.0001189 +------------------------+ | group | Obs | Rank Sum | |-------+-----+----------| | 1 | 3 | 148.00 | | 2 | 36 | 1133.00 | | ...
I would like to regress $Y_t$ on $X_t$. I have concluded that the series are each $I(1)$ and not cointegrated. I am curious as to if I can still use an ARDL model to capture any possible long-term effects. Concretely, is there any reason that the model $$ \Delta Y_t = \alpha_0 + \alpha_1 \Delta Y_{t-1} + \beta_0 \Delta...
I have a dataset that has a categorical factor and numerical response variables as proportions. A simplified deput() included at the end of the body. But, here is what the data looks like: > head(df) ID treatment day alive prop 1 1 A 4 1 1 2 2 A 4 1 1 3 3 A 4 1 1 ...
My dataset contains data like the total amount of deaths in different countries. Then I have as columns indicating smaller parts of the total amount specifying the cause of the death. I have another column with a continuous variable indicating the wealth of the nation. For example: Nation Total By_car_incident Suic...
Here is my setup: I have B=100 pairs of samples (a_i1, a_i2) i=1..B Unfortunately, unlike in classical paired samples, for both groups k=1..2: (a_ik) i=1..B are correlated samples, supposedly from N(mu_k, sigma_k) I would like to know how I could rigorously test for differences between mu_1 and mu_2. In particular, I...
I am using the StandardScaler of Scikit-learn to scale my data. When plotting the data and comparing scaled with unscaled I get different results in how the plots look like. I expect that the plot of the unscaled data looks like that one of the scaled one but instead they look really different. Why is that the case? I ...
I need some help with fitting an ARMA-GARCH model. I'm analyzing a daily time series. I don't understand how the order of the GARCH impacts ACF or PACF plots. I mean: what is the difference I should notice in the ACF plot when I'm using GARCH(1,1)+ARMA(1,1) instead of GARCH(2,1)+ARMA(1,1)? What 'part' of the ACF plot s...
This is a very general question, but I couldn't find anything helpful via Google, or better, I didn't know how to formulate my question so that the right results turn up. Is there a way or an algorithm I can follow or a set of questions I can answer to find the best model / method for a given problem? Like e.g.: What ...
Say I have a random variable X, X~Uni(0,1). And for the parameters 0 < a < b < 1: Z = {a < x < 1} , Y = {0 < x < b} What does it mean for those two variables to be independent? I know that independence occures only when P(A and B) = P(A) * P(B), can this statement be shown here? If I for example want to calculate P(Y|Z...
Before now, I have typically used Kish's effective sample size estimator to estimate the precision in survey data with sample weights. I understand bootstrapping is another approach for estimating effective sample size, and I would like to compare the performance of the two in my data, especially for rare-events data. ...
I am doing a study project in data science. I have a number of experimental curves like the one shown below. I assume the curve can be described with an equation like this: So I need to find constants qi (initial value), b and Di. My first question: is there a library in Python or R (preferably Python) to find the co...
I've encountered the above problem and struggle to find any info about online. I'm messing around with a large dataset that I unfortunately cannot share. It has ~600 features of which not all are informative and there is some collinearity. There is upward of 150k samples with imbalanced, right-censored survival data wh...
Is there a name in the literature for the following experimental design? Suppose we have $i=1,...,n$ individuals in our sample. Denote their baseline covariates, binary treatment assignment indicator, and response as $(X_i,W_i,Y_i)$. Overall, we are interested in the Average Treatment Effect (ATE) and possibly also con...
Outcome #1 Outcome #2 Source #1 a b Source #2 c d Let p1 denote proportion of outcome #1 for source #1, p2 denote proportion of outcome #1 for source #2. I'm trying to calculate P(odds(p1)>odds(p2)) with the Fisher's exact test. Is this equivalent with doing a one-side Fisher's exact test with: H0 - odds...
Consider a stationary non-linear AR(1) model $$x_t = |\theta x_{t-1}|+w_t,$$ where $w_t$ is i.i.d. standard normal. Given a sample $\{x_0, \cdots, x_n\}$, I want to find an estimate of $\theta$ and using CLT to derive its confidence interval. Now I think there are two methods to derive the estimator. We can use moment...
I have a dataset about corn farmers in a certain region with informations like farm size, mean cost per planted hectare, number of employees, etc. Furthermore I also have from another source an estimated value for total corn area in this region. Suppose that total estimated value is 300,000 acres and I have a sample of...
I have two questions about the mice package. The first, is the mincor in the quickpred argument. When on the cran it says it is the absolute minimum correlation compared. Does this mean that if I set mincor to zero even very weak correlations will be accepted? If I understand correctly, for a good result I should put ...
autoML is a very convenient model for beginner to explore on Machine Learning and Deep Learning. The process itself rapidly growing and many ML algorithm can be found in autoML, but hardly to be analyses and interpret, the algorithm itself automates the data exploration, feature engineering and assess the best model. I...
I am running an ancova, dv= "usc", between var=group, covariate = gender. I am not sure if i should use * or + in my formula. also, if i wanted to add another covariate (say education), how would i do it. my goal is to show that usc is different between groups when controlling for gender as well (and also add education...
I've run a multilevel logistic regression in R, and I want to calculate the Odds Ratios for the predictors in the model. R automatically gives the unstandardized regression coefficients for a multilevel log regression, do I need to first standardize the predictors before calculating Odds ratio? In simple words: is Odds...
I was wondering if someone could clearly explain the extent of transfer learning, fine-tuning, and domain adaptation. From my understanding, both fine-tuning and domain adaptation are subcategories of transfer learning. I am not very clear about the difference between domain adaptation and fine-tuning.
According to machine learning mastery. We should use sklearn.feature_selection.chi2 or sklearn.feature_selection.mutual_info_classif for X nominal and y nominal. However, both chi2 and mutual_info_classif do not accept X nominal. It wants a X numeric. I am confused whether to encoded these X nominal with OrdinalEncoder...
Consider the loss function $L(A_1, ω_1, ..., A_d, ω_d)=\displaystyle\sum_{j=1} ^{m}(Y_j-\displaystyle\sum_{k=1} ^{d}A_k\sin(ω_kt_j))^2$ used to fit a time series to a sum of simple oscillations with frequencies $ω_j$ and amplitudes $A_j$. $L$ has a local minimizer with distinct frequencies. How can I find the number of...
I am trying to scale the data prior to clustering analysis, and got a question. The goal of scaling at this point is to unify(eliminate) the unit of all input variables so that make influence of each variable to results same. Thus, I guess I have to apply same scaling measure to all variables, and I am considering betw...
I would like to understand something that is bothering me. Suppose you have a dataset and a probabilistic model that depends on few parameters $\alpha, \beta $ etc, and suppose that you find an estimate of these parameters through an MCMC sampler. Such sampler will find the values of the parameters with the highest pr...
I want to use an Adaptive Lasso instead of a standard Lasso because of the Oracle properties of the former. However, I cannot seem to find an option to implement an Adaptive Lasso for a logistic regression in Python. For example, the package asgl lets one implement penalties such as an Adaptive Lasso, however, it only ...
I have a pooled cross-section dataset. Suppose that, for every year from 2010 to 2020, I observe the individuals that apply for a bank loan. Some individuals apply more than one time, i.e. more than one year (e.g. the first time to buy a house, the second time to buy a PC). So, sometimes, the same individual appears in...
I conducted an epxeriment with: 32 subjects 1 condition (Difficulty) with 4 levels (A, B, C, D) And I collected accuracy rates for each trial (1 = correct, 0 = wrong). I would like to analyze these data, but I'm aware that a classical ANOVA is not suitable, for example following this paper. Therefore, I tried to use ...
I am currently try to analyse differences in the number of individuals of certain insect species (factor: 2 levels - HA, AP) that reached a particular life-stage from the egg stage (e.g. 1st instar) at a range of different temperatures (factor: 5 levels - 20, 23, 26, 29, 32 degrees Celsius). I have data on the numbers ...
I am trying to use DAGs to think more carefully about my regression models. I have a question about the "backdoor criterion", as usually seen in the DAG below (we are interested in the effect of $X$ on $Y$). One way to deal with confounding in this case is to include $Z$ in the regression, i.e.~control for it. But if $...
consider the following R code rm(list = ls()) set.seed(1234) n = 1000 f = (n-1)/n data = local({ x1 = rnorm(n) x2 = x1 + rnorm(n) x3 = x2 - rnorm(n) x4 = x3 + rnorm(n) x5 = rnorm(n) x6 = x5 + x1 + rnorm(n) cbind(x1, x2, x3, x4, x5, x6) }) Y = data[,1:2] X = data[,3:6] m1 = lm(Y ~ X - 1) a1 = m1$coefficie...
I am conducting a study with the following design: Independent variable 1 (IV1): categorical variable with four levels Independent variable 2 (IV2): continuous variable - mean scores on 9 questions, each of which is measured on a range from 1 to 5 Dependent variable (DV): variable range 1 to 7 Firstly, my DV seems to...
I am trying to make a simulation of bacterium splits is exponentially distributed in R. I am assuming that initially, bacterias have an exponential distribution. Let's say: N_{0} = 1 N_{1} = 2^r with r ~ exp(\lambda) N_{2} = N_{1} * 2^r ... N_{t} = N_{t-1} *...* N_{1} * 2^r So, what I would like to do is a simulation...
I'm looking for a measure of how clustered (or converse empty) data is over a range (e.g. [0,1] in this case). The first obvious metric to use would be entropy (or rather an estimator for continuous distributions), however this weights the density of points too much. The second obvious route would be to look at how 'em...
I was looking for the difference between spline regression and piecewise regression. Can someone please explain it to me? Also, if someone can provide me good reference on these 2 topics, with implementation in either R or Python, that would be very helpful.
I think my most incisive retort thus far as to how Ranked Choice Voting is a bad idea, is: Why is the second vote of the loser so much more important than that of the winners’? If I hypothetically win as a third party candidate by first past the post rules, I would want to have my secondary-supporters’ winning votes fo...
At $t = 1$, I have $y_1 = 4$ with the corresponding standard deviation $0.08$, and at $t = 3$, I have $y_2 = 9$ with the standard deviation $0.09$. I want to obtain the value of $y$ at $t = 8$. We assume linear extrapolation works: one obtains first the slope of the line and then construct it and read off the $y$ value...
(positions, velocities, accelerations) = ($q$, $\dot{q}$, $\ddot{q}$) are generalized coordinates of a Lagrangian system I'm trying to learn the Lagrangian L($q$, $\dot{q}$) by comparing analytical accelerations and predicted accelerations. These are found by manipulating Euler-Lagrange equations into $\ddot{q}$=f(L)=$...
I've used a previously published land-type category dataset (with five categories) as the base for investigating how a subset of two of the land-type categories vary with different variables, including climatological rainfall and elevation. The original land-type category dataset was verified against ground based obser...
So there are a few questions that have asked this before here and here, but I seem to be missing a step. $$ \begin{aligned} p(f_*|x_*,X,y) &= \int p(f_*,w|x_*,X,y)~dw \quad \text{(marginalise $w$)}\\ &= \int p(f_*|x_*,X,y,w)p(w|x_*,X,y)~dw \quad \text{(chain rule)}\\ &= \int p(f_*|x_*,w)p(w|X,y)~dw \quad \text{($f_* \m...
I've been working with a dataset where there are judgments of brightness from 1-100 (1= less bright) for 5 different brightness categories. patient Brightness level Judgment 1 1 10 1 4 80 1 5 99 1 2 30 1 3 67 2 2 35 2 5 98 2 1 17 2 4 76 2 3 67 What I observe so far is that some subjects us...
Let's say we have a classifier, which we trained on some balanced data, and during the inference our data is imbalanced. Is there a way to leverage the information about the distribution of the imbalanced data during the prediction? To be more precise we have the following components: $P(C|X,B)$ - model; $P(C|B)=\frac{...
Can I use RMSE,r2 or other metric to compare models of different datasets and variables? And if I have the same dataset but different variables?
I want to acknowledge that this is a trivial edge case. As far as I know, the only case where this will occour is when fitting an n degree polynomial(with a constant term) to constant data. For example: x = [1,2,3], y = [1,1,1] when using least squares to fit a line to this data, it would trivially be the horizontal ...
For a university class I'm working on a imbalanced dataset that has ratio of 43:1 Class_0 to Class_1. Class_1 refer to companies that have declared bankruptcy based on feature columns of the dataset. On the other hand Class_0 refer to companies that haven't. My goals is to create the best possible classification model ...
Regarding to another question I'd like to ask the same way but for a quite more specific case. What are the general assumptions for a logistic multilevel regression? What are the reasons behind these assumptions? How to test these assumptions for my model/data? What to do in detail if these assumptions are violated? ...
Imagine you have a loaded die with a known number of sides, e.g 6. All the sides have a known given probability, and all sides but one have a known outcome; the last side has an unbounded outcome. E.g. 1, 2, 3, 4, 5 and 6+ (6 or more). Also, we can assume that the outcome of the last side is 6 most of the times and the...
If I train a model (e.g. a neural net) via maximizing the likelihood function on a given training set, then do I need to adjust for sampling bias? Let me give you an example for a classification task (where the cross entropy loss would be used to maximize the likelihood). I want to classify people into group $y \in\{ A...
I have two different t statistics which I want to use to compute corresponding p values. I don't understand why the second p value is what it is, when I compute it manually with pt(). First: t = -1.30922 Get p-value (two-sided): 2 * pt(-1.30922, df = 208) Result: p = 0.1919042 (correct) Check output of t.test() call: t...
I have match data across multiple years. I've collected the data in the form Date Total Points Scored Now here are some issues: (i) since this is match data, it does not cover every day- only the dates when matches were held. Moreover, multiple matches could be held on the same day. (ii) Moreover, each match consists ...
Just wondered if someone could provide some clarity on whether it is suitable to use partitioning around medoids (PAM) on a dataset that has not been transformed into a dissimilarity matrix? For example, suppose I wanted to use PAM for integer-based data. Would PAM be suitable in this context, or would it need transfor...