instruction
stringlengths
9
38.7k
Good morning, I am performing a risk factor analysis of the individual and household-level factors associated with Plasmodium infection in individuals located in 8 villages in Cambodia. I have established the prevalence of infection at the village level. I want to perform an initial statistical test to determine if the...
$A$ is uniform (0, 2) and $B$ is uniform(1, 3). Find the Cov$(W, Z)$, where $W=\min(A,B)$ and $Z=\max(A,B).$ Since $WX = AB,$ then by independence of $A$ and $B$, $E(WZ) = E(A)E(B),$ so that $$Cov(WZ) = E(A) E (B) - E (W) E (Z) = (1)(2) - E (W) E (Z)$$ It suffices to find E(W) and E(Z) which I have \begin{align*} F_{W...
The sandwich package in R is not working properly. All of the following methods are giving the same results: Regular standard error Robust (HC1)Standard One way Clustered Two way Clustered This is the code I used : # Load data library(pacman) p_load(data.table, fixest, magrittr, sandwich) set.seed(1) data(airquality...
In one of Data Science classes, we were given a dataset to explore that contains medical/health information on patients and whether they missed their last doctors appointment or not (e.g. most of the patients have multiple rows in this dataset, some of them only have a single row). patient_id age gender appointment_n...
I have a data set of time series. Each time series represents trajectories of the same path taken. So, the time series captures acceleration in $x$, $y$ and $z$ direction, respectively for the rotation. In addition to that environmental properties are collected such as temperature, humidity, air pressure, light spectru...
I have fitted a polynomial regression (4 degree model) to describe a non-linear relationship between my two variables. My question is why does this model begin to decrease towards the right hand side of the plot, from x = 39 onwards, despite the only available data point suggesting that the line should continue to incr...
I have a dataset in which there are Features of both float and object type . I want to apply feature selection On this dataset in such a way that fisrt Find Mutual Information Score of all the features with Target. Then I choose 20 high score feature and do SFFS on them. So, I use mutual_info_classif in my codes but I ...
I am starting to study Bayesian calibrations of computer models. I am not a statistician and just starting to learn so bear with me if I do not use the correct terminology. The general approach is based on Kennedy and O’Hagan, ‘Bayesian Calibration of Computer Models’, but I am following specifically Van Oijen, Rougier...
In a 5 horse race. Lets say the probability of a horse to win the race are as follows: Horse A : 25% Horse B : 4% Horse C : 35% Horse D : 10% Horse E : 26% How would you determine the probability of Horse E finishing the race in front of Horse C ? i.e. (Horse E could come 4th and Horse C 5th). Is there a method for de...
I have two table with size 199*170 and 199*160 of two groups which contains a set of drugs on two different groups, since the sample size is large, how do i calculate p value Table 1 DrugA DrugB DrugC Sample1 0.0188195099 18.8376134835 25.8114015207 Sample2 0.0112548226 6.0024840676 36.5992030979 Sam...
I am doing a robust regression and I want to estimate robust standard errors for my regression. I do know how to do a robust regression in R and how to estimate a robust standard errors for a lm or nls model. I read a paper where it explains the theory but is there a function in R that is supposed to do what I want? I...
I noticed that there's usually a limit for the input length of transformers. But considering there are actually two input layers - one for the Encoders and one for the Decoders, can we and should we have two separate MAX_TOKENS for them? If we have different MAX_TOKENS for Encoder input and Decoder input, then the cro...
Referring to the picture, for each sample i in n, why do i only take the lambda for 1 class out of all k class instead of taking the product for the lambda's for all classes?
I'm performing some Mann-Whitney U tests on datasets for a project, and I'm a little confused about what the P value as shown in this question means. Where it states for example "(Mann–Whitney U = 10.5, n1 = n2 = 8, P < 0.05 two-tailed)" (and that "the significance level" should be included) as an inline reference to t...
Let's say we want to calculate the two-sided $p$-value for a linear regression coefficient using bootstrapping. The null hypothesis is $\beta_1 = 0$. For the non-parametric (case-resampling) bootstrap, we would do the following steps: Calculate the original statistic $T_0$, e.g. the $t$-statistic of the coefficient of...
Prediction ability of a model is usually being used for model validation/evaluation. But in a high noise to signal ratio setting, and when you are not caring about prediction but inference, then prediction ability is not a good metric. Another option is to use posterior predictive checks. But I am not sure when we can ...
Below you'll find the data and the corresponding R code used to perform the bootstrap hypothesis test to compare the ratio of the means of two samples and additionally, to estimate the 95% confidence interval of such ratios for each of the sample, again via bootstrapping. X1 <- c(9947.2, 3978.9, 37799, 755.99, 6883.5, ...
From this answer https://stats.stackexchange.com/a/437474/346940 seems that batch norm scales the standardized input by a factor $ \beta $... why don't we restrict this $\beta$ to be greater than zero? if with one gradient update we pass from a $\beta > 0$ but very close to zero, to one small and negative, the input of...
I have a large simulated dataset uniformly drawn from the state space of a dynamic programming problem. I did some experiments and found that increasing my sample size does not change the hyperparameters of the kernel functions a lot. So, I wonder whether I can train the kernel of GP on a subset of my whole dataset whi...
I'm conducting a meta-analysis and trying to figure out the best way to determine the effectiveness of a particular treatment using results from multiple studies. As the studies vary in several important characteristics (ex. patient population, sample size, co-morbidities, training level of provider, etc.), my initial ...
I am trying to examine the interaction between temperature (factor: 6 levels) and species (factor: 2 levels) in determining the duration of the first larval stage in insects using the following model and the package emmeans: model3<-lm(sqrt(Duration.1st.days)~Temperature*Species, data = first.1) Analysis of Variance T...
I'm reading this slides. At slide 10 there is written that in "Single Experiment Design" we assume "Randomization of treatment", that is: $ \{ Y_i(t,m),M_i(t') \} \perp T_i \lvert X $ I don't understand how the outcome and the treatment can be conditionally independent given X, as long as the treatment has an effect o...
I am performing a multi-level logistic regression analysis of cross-sectional survey data, and I am curious as to whether "taking antimalarials" is a confounding variable in the following situation: The exposure is "sprayed insecticide in the house", and the outcome is "infected with malaria". Given the complex relatio...
I am reading an intro to statistics textbook, and they were telling us about pie charts. They were saying that pie charts can be used for categorical data sets. But then they said that they can be used for "other purposes" as well (without specifying what is different about those other purposes). Instead they gave an e...
Let $X_n = Bin(n,p)$. We fix $p$, and we want to show that as $n \to \infty$, $\frac{X_n-np}{\sqrt{np(1-p)}}$ converges to $N(0,1)$ in distribution. And I want to show this using characteristic functions, not using the CLT. The characteristic function of $X_n$ is $(pe^{it} + (1-p))^n$, so the CF of $\frac{X_n-np}{\sqrt...
I am currently doing some research on cardiac arrests in R. I've constructed some Kaplan-Meier curves, which showed me a significant p-value for the log-rank test. But after visual inspection I can not comprehend how that is possible, as the graphs are overlappin almost constantly. I have tried univariable Cox regressi...
I trained two models using the same algorithm - logistic regression (LogisticRegression(max_iter=180, C=1.05) for ~27 features and ~330K observations). I used the same features for both models, except six additional feature for the second model. When I use the threshold 0.5, the second model has better precision than t...
I'm currently working on a university project using publicly available data. I'm collecting genome data on cancer patients at different pathological stages (Stage I, II, III and IV). I'm aiming to compare microRNA expression at each of these stages in order to identify potential biomarkers for disease states, and I hop...
When sampling from a probability density function of the form $$p(x)=e^{-\beta E(x)},$$ where $E$ is considered to be the energy of a system and $\beta=1/T$ is the inverse of a temperature parameter $T$, using a Markov Chain Monte Carlo method (like the Metropolis-Hastings algorithm) there is a phenomenon called "criti...
I am performing a risk factor analysis of the individual and household-level factors associated with Plasmodium infection in individuals located in 8 villages in Cambodia. I want to perform an initial statistical test to determine if there are significant differences in infection prevalence in different categorical exp...
I'm not sure why results differ when I'm doing hypothesis with wilcox test for data, the hypothesis results differ from normal boxplot and histogram. Which is the best graph to check the results for the hypothesis if its correct. whereas hypothesis is rejecting null; which is men and female are equal First graph says: ...
This is a figure of PCA Map of several class data that i am trying to classify: By looking at it, I wanted to be sure if this is not really applicable to be classified? (since it has a high overlap rate) or is there anyway I can do to somehow separate the class (so it minimize the class overlay) and make it more favor...
I tried to work on the problem Let $(X_n)$ be a sequence of random variables follows the discrete uniform distribution on $\{0,\frac{1}{n},\frac{2}{n},\cdots,\frac{n-1}{n}\}$. Let $X$ be a continuous uniform random variable on $(0,1)$. I want to show that $X_n$ converges weakly to $X$. That is $E[f(X_n)] \rightarrow...
For example, I have the following feature set: {a:1, b:1} -> 1 {a:2, b:2} -> 1 {a:3, b:3} -> 1 {a:1, b:2} -> 0 {a:4, b:6} -> 0 {a:3, b:5} -> 0 And some more data points. I don't give features like a == b or a != b. Can a neutral network get the following logic? (a == b) -> 1 (a != b) -> 0 Assume I give inputs li...
Is there any way to find the critical values for Anderson-Darling test on Lomax distribution? I have searched the literature but have not found any tabulated values. I specifically need to find the correspondence between p-values and critical values.
I have a received comment for my research that addresses concern on the 'volume of null hypothesis test' being performed throughout my study and if any corrections are being done to account for 'an increased change of a false positive conclusion' (Type 1 error). It also pointed out the large number of Chi-squared resul...
I need to forecast daily electricity demand. It seems that the outliers in my dataset are additive as they are affected by an anomalous behavior and are not induced by a random process that also affects the subsequent observations. In this case, is it possible to impute them by the average of the previous and next obse...
I am trying to conduct an explanatory factor analysis for data with dichotomous variables(csv Google link, n = 1000 originally but only 500 here) with a WLSMV estimator using lavaan package, whether the data sample is suitable for the analysis or not. I tried using Horn's parallel analysis by psych::fa.parallel(df, fa=...
For A/B test, one can use power analysis to determine the duration of experiment to run. What about synthetic control method? Is there a way to determine the duration of experiments post intervention?
I am trying to find the formula for the Empirical Rule, but all I can find are examples of how to use the rule. For example, I know that 68% of my data will fall within one standard deviation of the mean. Given a mean and a standard deviation, I can calculate the range within my data set. What I am looking for is th...
Take the simple simulation below. set.seed(3424131) x_1 = rnorm(100, mean = 10, sd = 4) x_2 = rnorm(100, mean = 3, sd = 2) covariate = 0.05-0.03*x+0.04*x_2 y = rnbinom(n= length(x_1), mu = exp(covariate), size = 50) temp = glm.nb(y~x_1+x_2+x_1*x_2) summary(temp) x_new_1 = scale(x_1) x_new_2 = scale(x_2) temp_2 ...
My goal is to identify a potential spillover effect. I study the industry-level profitability (e.g. profitability in agriculture, profitability in finance and insurance etc.). I calculate the industry-level profitability change based on the profitabilities of the companies within the industry. I have a panel data of ap...
The cox time varying covariates (x(t)) model is as such: The above formulation can be seen here: https://lifelines.readthedocs.io/en/latest/fitters/regression/CoxTimeVaryingFitter.html Here, can anyone please let me know the following two things: What is '$\bar{x}$' in the above formula? How are the coefficients β b...
I am learning and doing the Mixed ANOVA using Python pingouin under a clinical example dataset that contains one between factor (drug: A, B, C) and one within factor (Time: T0, T1, T2, T3, T4) from 5 subjects interested in the weight reduction. What I am interested in: significance between (T0 vs T1, T0 vs T2, T0 vs T...
I have pdf of a continuous distribution as below $$f\left(x\right)=\frac{1}{\sqrt{2 \pi x^3}} e^{-\frac{1}{2} {\left( \frac{x-\mu}{\mu \sqrt{x}} \right)}^2}$$ Is there any specific name for this distribution? Apparently it looks like a normal distribution, but it is not the case
I can't get something settled in my mind regarding epsilon. So let's say that the "real" model in the population looks like that: y = a + bX + ε. just a simple linear regression. one of the assumptions of OLS is that ε ~N(0,σ). and another assumption of OLS is that every single ε has the same probability density functi...
I have 7 study subjects which I have grouped in 3 combinations ID1, ID2 and ID3. I have 15 behaviours which I have grouped into 5 combinations (Bgroup1, Bgroup2 etc..) Within each level, there are different amounts of data. I want to know which combination of Bgroup and ID best explains the data set. I don't know whic...
How to calculate the appropriate sample size for the development of a new clinical test? The test would either be a quantitative test if the accuracy is good enough (i.e., test would predict a quantitative value similar to blood concentration) or be a semi-quantitative test if not accurate enough for quantitative testi...
I have two-time series of daily temperatures for two locations for 30 years. Is there any way to compare them statistically? To see if the differences are statistically significant?
I have used gepia2 site to look for survival associated with genes I output something like this I understand this part which is Logrank p value which shows PTDSS2 gene high and low group have survival differences but what is HR(high) and p(HR)? how do i interpret that
I have sub-reddit data that shows total monthly mentions of collective action amongst the unemployed individuals using the sub-reddit of interest, and another variable that shows whether the month falls before or after a specific treatment was introduced (i.e. the treatment refers to an announcement of a UI benefit ext...
I'll work on developing computer-intensive Bayesian sampling algorithms for spatio-temporal applications (e.g. MCMC, KF). So far, I'm thinking of coding my algorithms in C++. However, I've heard that Rust is becoming popular within the scientific computing community. Would you recommend Rust over C++ and why/why not? O...
I have a multiple regression with 7 explanatory variables. All are statistically significant and the coefficients, in general, make sense. However, I produced a correlation matrix and noticed that correlations between some explanatory variables are quite high. Data came from different sources, so this is a 'genuine' c...
I am trying to get direct connection between Gain and Logloss for XGBoost. It looks to me that in Xgboost paper formula 6: for a model with depth 1 and number of trees=1 this formula contains Similarity score for the node. On the other hand formula 6 approximates minimum loss and should be equal to logloss value of t...
What value of ICC should I use when calculating the effective sample size of clustered data? A previous publication conducting a similar study reported ICCs of 0.04 for the full mixed model (random intercept plus individual and household-level variables) and 0.19 for the null model (only the intercept term). Which valu...
The following JavaScript code is supposed to calculate R2 based on two numerical arrays of equal length- yPred and yTrue. It is based on the formula R2=1-RSS/TSS. function rSquared(yPred, yTrue) { // Calculate rss var rss = yTrue.map( (value, index) => Math.pow(value - yPred[index], 2) ).reduce((par...
I am trying to setup a model in R. I want to test if strategies picked by different agents have a joint significant effect on the outcome. My idea was to create a partial F-Test: DV = success variable (0 or 1) IV1 = agents IV2 = strategies (around 10 types) IV3 = agents_strategies (help variable created by me; a combin...
I heard a remarkable claim at work last week Fixed effects in logistic regression of panel data introduces bias, so we would want to do a linear probability model. I find this remarkable for two reasons. The usual maximum likelihood estimator for a logistic regssion is biased, so if you are intolerant of biased esti...
I have an example of dataset like this: Members of insurance plan 01.01.2021 01.01.2022 <18 y. o 2100 3000 Total members 200000 230000 How can I compare proportions and define if proportion on 01.01.2021 (2100/200000) is statistically significant differ from proportion on 01.01.2022 (3000/230000)? Also he...
I have determined malaria prevalence in 8 villages with household-level clustering. As an initial test (basic descriptive statistics), what test (as the independence assumption of K-W is violated) is appropriate for determining a statistically significant difference in prevalence between the villages?
I'm working through "Forecasting: Principles and Practice (3rd edition)" by Rob J Hyndman and George Athanasopoulos to better understand times series forecasting in an R environment. This resource relies on the fable and feasts packages for forecasting. I need guidance for finding a reasonable model for forecasting a t...
I am trying to find a test to compare how median wages have changed for college graduates after graduating. I am comparing the median wages for individuals based on the programs they graduated from (engineering, health, social science, etc.) and I am comparing their wages to themselves. So, for instance, I want to see ...
Accuracy, as a KPI for assessing binary classification models, has major drawbacks: Why is accuracy not the best measure for assessing classification models?. The exact same issues also plague the F1 score (actually all Fβ scores), sensitivity, specificity and alternatives. Is there a standard academic article one can ...
When a research design includes treatment and control group and the number of samples in the treatment group far exceeds that in the control group due to the nature of a data set, the treatment effect from a regression result becomes not significant. I wanted to do a bit of experiment here by randomly sampling the trea...
I’m wondering if anyone could recommend a diversity index to look at the differences in breeding bird territories between two sites. These are my data - the numbers represent the number of breeding pairs of each species: c(4L, 3L, 14L, 1L, 4L, 11L, 2L, 1L, 2L, 7L, 1L, 5L, 7L, 3L, 1L, 2L, 1L, 1L, 4L, 1L, 1L, 4L, 2L, 4L,...
I run a human evaluation on a recruiting website. The situation is the following: There are 78 annotators. There are 100 questions. Each annotator annotates 5 questions. So, on average*, each question is annotated by 4 people. I say on average as the number of responses might vary. Each question has 4 dimensions (gram...
I am planning a study with three between conditions. Let's say "Experimental group" vs. "Control group" vs. "Placebo group". And I have a numeric outcome "DV" from 1 to 10. My prediction is that that "DV" will be higher in "Experimental group" compared to each of the other two groups. And I predict that there will be n...
I need to test the proportional odds assumption of an ordinal logistic regression of complex survey data. The model is estimated using survey::svyolr(). How can I use test the PO assumption of this svyolr model? I've found several options for non-survey weighted data (for example those estimated using MASS::polr(), b...
What would be the most appropriate post-hoc test after a Quade omnibus test? Are any of these suitable? t-test with Bonferroni adjustment (potential problem: parametric, Quade is non-parametric) Holm Finner Hochberg Li
I am trying to compare the average visual acuity between to sets of independent groups using logMAR visual acuity. As the sample size is small I have opted for the Mann-Whitney U test which, in my understanding, is the same as the Wilcoxon Rank Sum test. I am using scipy in python and my code is as follows; import scip...
When creating nested models, does the addition of a predictor that turns out to be significant (Pr(>|t|) < 0.05) mean that the larger model is significantly better? If not, why not?
I've been handed some data that is obviously left-censored. Many zeroes, probably due to insensitivity of the assay. However, since it is a protein level assay, it is theoretically impossible for any result to actually be less than zero. Thus, the data is both censored at "zero" and bounded at true zero. I seem to reca...
The jackknife is often described as non-parametric, and not relying on distributional assumptions. For example: https://blogs.sas.com/content/iml/2017/06/21/jackknife-estimate-standard-error-sas.html says: "The jackknife method estimates the standard error (and bias) of statistics without making any parametric assumpti...
Suppose $A$ and $B$ are two independent, continuous random variables with bounded supports $[min, max]$ and densities $f_A(a), f_B(b)$ and CDFs $F_A(a), F_B(b)$. Can we write $P(A > B)$ in terms of their quantile functions? Right now, I know \begin{align} P(A > B) &= P(A > B | B = b)f_B(b) \text{ by conditional prob...
Following are two linear regression models with the same predictors and response variable, but with different contrast coding methods. In the first model, the contrast coding method is "contr.treatment" and in the second model, it is "contr.sum". options(contrasts = c("contr.treatment","contr.poly")) model1<-lm(RISKINE...
I have tried to run the following Cox proportional hazards model where the dependent variable is Latency (time to a particular event), Censor denotes whether the event happened or not (1 = Yes, 0 = No) and Temperature (factor: 5 levels) and Species (factor: 2 levels) are the explanatory variables. model.F<-coxph(Surv(L...
Let $A$ be a $k \times 1$ random vector, and $\mathbf{A}$ be a $n \times k$ matrix of observations. Letting $t \in \mathbb{R}^{k}$ be a vector of weights s.t. $||t||_2 = 1$, suppose we are interested in maximizing the variance of a linear combination of the columns of $\mathbf{A}$, i.e. $\mathbf{A}t$. I have read that ...
I have 100K customers from a population with a KPI name "spent" which is lognormal distributed. The customers were split into 2 groups - 1st group - customers with an id ending with 0 - control 2nd group - customers with an id ending with 1-9 - treatment The treatment group got 20 marketing campaigns during 2022. durin...
I am reading a paper that reports "For a 10-fold decrease in x, y increased by 0.50". The predictor (x) has been log-transformed but no base specified (presumably natural log). There is also the question of what does a 10-fold decrease mean? Is this 100/10 = 10 = a 90% decrease? Assuming this is the case I am getting c...
Problem : Recomment 2 markets (States) for A/B test Solution tried : Cluster rows based simply by ZIP codes but then each state could appear across multiple clusters. How do I then dedup the results? If I am able to dedup the states, how would I go about ranking based on the given features? Group data by STATE and g...
A nice property of maximum likelihood estimators is that, while they can be biased, they are consistent for $iid$ observations. In a logistic regression, unless the conditional distributions all have the same probability parameter, we lose the "identically" distributed of $iid$. Nonetheless, logistic regressions tend t...
I have two sets of data (>10k observations), each having a binary feature describing the activity of every customer within the groups (1=active, 0=inactive). I've seen parametric tests being used to compare proportions (z-test) of the 2 groups, but I have also seen it being tested with a non-parametric test (chi-square...
I've searched online materials for Customer Segmentation for a while. Most materials are related with K-means or some other clustering algorithms. Are there any other machine learning or statistical models that are widely used in industry for Customer Segmentation? Any tutorials or related links are helpful.
I plotted the same data in R using geom_density, but the blip for "Yes" is much, much smaller in Python using kdeplot from Seaborn than for R. I am using the dataset default from the ISLR package. It's included for R and I downloaded it for Python from this link. R code: install.packages("ISLR") install.packages("tibbl...
Suppose I have data $Y$ regressed against $X$, where $Y$ is the level of health for an individual (from 1 to 10), and $X$ is the whether or no the individual is above 50 years of age. If I wanted to estimate the difference in mean level of health in individuals above or equal to 50, and under 50 — and wanted standard e...
I have to variables X (continuous) and Y (binary with two value 0 and 1). When I ran the t-test and F-test with critical value of 0.05, I got the following results Welch Two Sample t-test data: Xa and Xb t = -6.1225, df = 467.26, p-value = 1.954e-09 alternative hypothesis: true difference in means is not equal to 0 9...
Suppose you had 2 waves of longitudinal data. The univariate outcome $y$ was measured at baseline ($Time=0$) for $N$ units, each unit randomly received a treatment ($Treat=1$) or control ($Treat=0$), then y was measured post-treatment ($Time=1$). We can estimating the effect of the treatment while using baseline inform...
I am comparing some ML classifiers (RF, KNN, SVM, NB, and XGBOOST). After training these classifiers, I extracted variable importance scores from each of these models using varImp function in CARET. I noticed that the variable importance scores for SVM, KNN, and NB are exactly the same. I am wondering, how is this poss...
I have a basic question about copula. I am not an expert in statistics myself but use statistics for modelling and data analysis a lot. I have read in multiple sources and also in Wikipedia that: This implies that the copula is unique if the marginals F_i are continuous. I cannot understand why it is said that copula...
I understand that I'm supposed to integrate with respect to x and y to find the marginal distribution of Y and X respectively, but my answers seem wrong. I got marginal distribution of $X = 1$ and of $Y = \sqrt{(y)} + 1 - \sqrt{(y-1)}. $
I am just starting anew in econometrics, and am presently trying out statistical arbitrage, specifically cointegration. I have stochastic time series data for variables A, B. Engle-Granger testing is used for the project. What I have done: Performed a stationarity test. Performed differencing Performed OLS regression ...
I am writing R script using bnlearn package for learning a DAG from a dataset. Is it possible to define a terminal node beforehand? ie I want a node Y to be the final one in the graph, which will not affect any other node.
Today I attended a seminar in which a tutorial was provided on how to "estimate a proportion using Bayesian estimation". In particular: Suppose we flip a coin 10 times and observe 7 heads We are interested in estimating the "probability of success" (i.e. the "p" parameter in a Binomial Distribution) using Bayesian est...
Say we are sampling a standard normal distribution (a gaussian distribution with mean 0 and variance 1), repeatedly. Do the following statements make sense and are they correct? The probability that we get the number 4, n times in a row is 1 for any finite n. The probability that we get the number 4 infinity many time...
It is well known that a characteristic function (CF) is uniquely associated with a probability density function (PDF). Knowing this, I was nonetheless intrigued by a remark in a video I have been watching. The remark implied that CFs can prove useful when it is not easy to show directly that two random variables have t...
Assume $A$ is $Bin(1, 1/2)$ and $B$ is $Bin(1, 1/4)$, where $X=A+B$ and $Y= AB$ and I am interested in knowing how to find their inversion so that I could use the good old transformation theorem $$f_{XY} (\cdot, \cdot ) |\mathbf{J}|$$ where $\mathbf{J}$ is the usual jacobian to find their joint distribution. But the in...
So I am training a linear support vector machine on my dataset using lssvm function from kernlab package. I get this error that I don't understand: Error in G[(kadv + 1):n, 1:kadv - 1, drop = FALSE] : subscript out of bounds I can't seem to find anything similar online and I don't know how to access the cod...
I'm having trouble understanding how I build a model to help me find out whether there are differences between referees and the personal penalties (temporary suspensions from the game) they give out to players during matches. In the sport in question we expect that any one referee should be interpreting and applying ga...
Let $P$ be a probability distribution on a set $V$ of variables and for any $X\subseteq V$ and any possible realization $x$ of $X$ let $P_x$ be a distribution on $V\setminus X$. Let $P^*$ the collection of such distributions. Pearl (page 24 of Causality, 2009) says that a DAG $R$ is a Causal Bayesian Network compatible...
I have been analysing a study where around 500 participants each were given a survey, so there were repeated measurements of each participant. Participants were male and female uni students who were presented with 4 character descriptions differing on gender (male/female) and health behavior (healthy/unhealthy), which ...