instruction
stringlengths
9
38.7k
Why is the Pareto Distribution a better fit to the upper tail of Income data, and the Lognormal distribution a better fit to the lower tail? What happens if we fit the data the other way around? My argument is that if we truncate the hump of the lognormal distribution it should perform nicely as a fit for the upper tai...
A person can be free from Cystic Fibrosis, a carrier of a single gene, or have two genes. Those with two genes have the condition (let's assume they can't have children, though that's not strictly true). Carrier frequency is 1 in 25. The probability of a carrier parent passing on their carrier gene is 1 in 2. So the...
I have read about SVD, and understand it as being similar to what PCA does. For recommendation, let's say I have a matrix where rows are users and columns are items, and the entry $(i,j)$ in matrix is rating given by user $i$ to item $j$, say 1-5 (discrete). Naturally, lots of entries are missing. How to apply SVD in t...
As someone new to statistics, I had a debate with my supervisor today on the definition of population and sample in the following case. Suppose we track all new users (1,000 in total) that used an app during a period of time, and want to look at the completion rate at each milestone step. The data looks like this below...
I have 2-mixture weibull distrubution. And this distribution haver the portion parameter θ whose value should lie between (0,1). Therefore, I am assuming the prior distribution of θθ to be a beta distribution with hyper-priors α and β ie. P(θ|α,β)=Beta(α,β)P(θ|α,β)=Beta(α,β). Is there a way that I can assign some hyp...
I have some data that I have fitted to a Weibull distribution and now I want to calculate the goodness of fit. At first I tried using the Kolmogorov-Smirnov test but I have read that this doesn't give a valid result when the parameters that I consider for the distribution are obtained from the data. Then I considered ...
I have a 10 dimensional random vector that I'm modelling with GMMs. I want to estimate the best number of mixtures ($K$) for my data via the following method: Divide the data to train (90%) and test (10%) by 10-fold cross-validation (i.e. perform 10 experiments where each time a different part is the test). Fit GMMs w...
I'm reading Steven Scott's slides about BSTS R package (You can find them here: slides). At some point, when talking about including many regressors in the structural time series model he introduces the spike and slab priors of regression coefficients and says that they are better compared to penalized methods. Scott...
I have a question about nested mixed effect model. For example I have species A with different populations; these populations belong to two kinds of habitat types (with or without predators). So I have population nested within habitat type, and I measured the body size of species A. I want to know if habitat type have ...
Hastie et al. "The Elements of Statistical Learning" (2009) consider a data generating process $$ Y = f(X) + \varepsilon $$ with $\mathbb{E}(\varepsilon)=0$ and $\text{Var}(\varepsilon)=\sigma^2_{\varepsilon}$. They present the following bias-variance decomposition of the expected squared forecast error at point $x_0$ ...
I have a data for each minute as shown below Timestamp cpu-usage 2017-02-14 00:00:00 1.80000 2017-02-14 00:01:00 16.04000 2017-02-14 00:02:00 23.16000 2017-02-14 00:03:00 24.21400 2017-02-14 00:04:00 24.74100 2017-02-14 00:05:00 12.88767 I have created a graph for this data >plot(data.ts) I have even plot C...
I would like to ask a question regarding prediction based on logistic regression model. At my work we are trying to predict if an employee is going to leave in the next period. We want to utilize logistic regression for this. Let’s assume we have developed a model based on both continuous (e.g. salary, age etc ) and c...
I have conducted an experiment where several students assigned to two different groups had to solve 13 different puzzles each in two different sessions. Thus, we have 2 sessions, and two different tasks with 13 puzzles each are needed to be solved. For example: if subjects solve 1 puzzle within a task, they completed 1...
Is it possible or reasonable to use the coefficient of variation in a GAM / GLM as a weight to incorporate uncertainty into a response variable? I've got density estimates that have a CV value and need to model while taking into account the observation error.
Cross posting from math.stackexchange... Suppose that $X_1, ...X_n$ is a random sample of size $n$ drawn from an exponential distribution with unknown parameter $\theta$. Suppose that it is desired to test the hypotheses $H_0:\theta=\frac{1}{2}$ and $H_1:\theta>\frac{1}{2}$. Find the UMP test that specifies the rejecti...
From what I understand, a one layer network (no hidden layers) is exactly the same as logistic regression. Now suppose I have a function $f(x)$ that is exactly a logistic regression function with say d features. If I insist on running a neural network with say 3 layers with d/3 neurons each, is this a bad idea? That i...
I need to perform some research on the consequence of a singular Fisher Information matrix in statistical inference. I am confused about what kind of problems a singular Fisher Information matrix creates. I've received a paper 'Likelihood-based inference with singular information matrix' by Rotnitzky (2000) but this se...
The caret R package includes functions to compare models via their resampling distributions. Specifically, it prescribes fitting multiple models using the same resampling profiles (i.e. same versions of the training data) then conducting a paired t-test on the matched differences (see: http://topepo.github.io/caret/mo...
Background: One of my hypothesis' is that several (more than 2) groups (hereafter sub-groups) can be grouped, based on an interval-scaled variable, into two groups that, based on the same interval-scaled variable, are statistically different from each other. Assumption: All conditions for the use of a parametric proced...
In 'Likelihood-based inference with singular information matrix' (Rotnitzky) an example is given as follows: Suppose that $Y$ is normally distributed with mean $\beta$ and variance $\sigma^2$. There are available for study $n$ independent individuals but for each there is the possibility that the value of $Y$ cannot b...
I am trying to optimize my business. Please give me some suggestions. Problem Statement: I need to maximize my sales for the given total budget (total budget can vary from minimum to maximum bound based on fixed intervals) for example: let's say my minimum budget is 100K and maximum budget is 200K and the objective is ...
X=randn(2000,1) Gaussian random variable with mean = 0 and variance = 1 how to transform $X$ to $Y$ that is a Rayleigh distributed?
In my study, 210 subjects had to choose three out of nine options. I want to find out what several predictors (X1, X2, X3, X4) had on the selection of these options (Y), where: X1 and X2 are objective attributes of the options (i.e., independent from the subjects) X3 is a subjective attribute of the options (i.e., sp...
I'm struggling with multiple linear regression where all independent variables are factors. My data set contain 6 columns: Day; (Levels: Friday Monday Saturday Sunday Thursday Tuesday Wednesday) TVChannel; (Levels: BFMTV C8 CStar France 2 France 3 France 5 HD1 RMC decouverte TF1 TMC) DayPart; (Levels: Access Day Night ...
I am reading the Pattern Recognition and Machine Learning book and on page 445, it states that the covariance of the Bernoulli mixture distribution is $$Cov(\mathbf{x}) = \sum^K_{k=1} \pi_k (\Sigma_k + \mathbf{\mu}_k \mathbf{\mu}^T_k) - E(\mathbf{x})E(\mathbf{x})^T$$ Can someone show me mathematically how is this deri...
To sum up the question: is there some recommended set of datasets or should I put the list together myself from articles on robust estimators? If I wanted to test performance of different robust estimators, what are the various datasets that are frequently used? I am interested in both simulated and real datasets that ...
While studying about Forward Backward Algorithm, I came across the question below. I was unable to solve the question after trying for a lot of time. Consider a two-bit register. The register has four possible states: 00, 01, 10 and 11. Initially, at time 0, the contents of the register is chosen at random to be one of...
I was wondering if someone can help me think about this in a simple way : Say you have to fit a mixed effects model on body fat measurements using calipers. A person is measured using calipers on their abdomen, thigh, back and arm (ie four sites) for a total of 4 weeks. I understand that this is a simple mixed effect...
I want to test if the outcomes of different algorithms are different with statistical significance. I am testing 4 algorithms, each of which output 0 or 1 after every run. I am running these algorithms for multiple series of multiple runs, e.g. 2 series of 5 runs in this example. So, the output of each algorithms looks...
I'm performing a survey where people will rate some things from 1 to 10 based on their characteristics and I'm having trouble understanding which model to use and how to compile the data. For example lets say that you ask women to rate men based on some data like length, weight, income, children (some of the variables...
Does anyone know if there's a general expression for the jth slope coefficient from a multiple regression with K independent variables, in terms of variances and covariances? Obviously, the expressions in the case where K=1 and K=2 are straightforward, but is there a more general expression? And yes, I know how to find...
In the seminal paper on Latent Dirichlet Allocation, the authors state that, A lower perplexity score indicates better generalization performance. $perplexity(D_{test})=exp\Big\{-\frac{\sum_{d=1}^{M}log[p(\textbf{w}_d)]}{\sum_{d=1}^{M}N_d}\Big\}$ As I understand, perplexity is directly proportional to log-likelihood....
My goal: a measure/test/score/etc. that can give me a numerical value for how similar two datasets are. Let's say I have two datasets, each with a differing number of datapoints, where each datapoint is made up of an ID : value pair. The IDs are the same for the two datasets, but not all IDs are present in both dataset...
Suppose $G$ is a simple, undirected graph. The corresponding adjacency matrix, $A$ is binary, symmetric, and has all zeroes on the diagonal. By definition (Networks: An Introduction, M.E.J Newman), the clustering coefficient $C$ is given by $$C=\frac{6 \times \text{Number of Triangles}}{\text{Number of Paths of Lengt...
I have a data set of which contains the name of buyers. I want to plot a CDF that shows what percentage of buyers purchased up to what percentage of products. Something like bellow: , but I don't know how to do it with categorical data in R? Can some one please give me a clue?
I have a (relatively) large feature space - about 200 variables, and +1 million observations. My dependent variable is forward price return (raw, not log-transformed). I apply a PCA transform of the independent variables, and subsequently plot observations against the first two PC dimensions, with blue for positive fo...
I understand the mechanics of calculating the weights using the propensity scores $p(x_i)$: \begin{align} w_{i, j={\rm treat}} &= \frac{1}{p(x_i)} \\[5pt] w_{i, j={\rm control}} &= \frac{1}{1-p(x_i)} \end{align} and then applying the weights in a regression analysis, and that the weights serve to "control for" or d...
A study of daily default rates allows me to conclude that they are distributed as a normal one. Previously, I had to eliminate some of the effects of stationarity. I have following two questions: How can it be justified that if the daily default rate is normal, then the annual default rate will also follow a Normal dis...
I am wondering about the effect of an event $Z$ on an outcome $Y$. I assume $Z$ does not affect $Y$ except through the channel of an intermediate outcome $D$, that is endogenous to $Y$. To understand the effect of $Z$ on $D$, I run the following regression: $$ D = X'\beta + \sum_{\tau \neq -1} \delta_\tau Z_\tau + \e...
I have a problem which I am having a great deal of trouble deciding which t-test is best. For starters I am using JASP. The problem consist of deciding whether attractive people have more daughters or sons, it consist of 274 names and the number of sons and number of daughters. Now I know It will be a t-test but I am...
I am training a random forest model with following parameters. n_estimators=50,criterion='mse',max_depth=None,min_samples_split=2, min_samples_leaf=1,min_weight_fraction_leaf=0.0,max_features='auto',max_leaf_nodes=None,oob_score=True My data set consists of 5258 rows and columns contain a categ...
I am wondering if Python has any implementations of Multi-Seasonal Time Series like msts method in forecast library under R. So far, I have found only following packages for Time Series in Python: FBprophet TSFresh (feature engineering for TS) PyFlux Statsmodels TStoolbox timeseries (https://github.com/sealevelresea...
I am researching what effect transport infrastructure quality has on political stability. I would like to add an interactive term - population density. I wish to investigate the effect that improving transport infrastructure by 1 point has on political stability in countries with differing population densities. I comp...
I know this is duplicated but I think the question is a bit different and needs different answer. How can CDF be continuous and have derivative at each point that is not equal to zero but the probability at each point is zero? Why not say for example if you want to choose a real number between 0 and 1 that the probabl...
I would like to classify bird species from audio recordings. To do this, I am calculating a number of features in a frequency spectrum: I take certain block size (say, 2048 samples) and compute mel spectrum coefficients, spectral rolloff, LSF coefficients, spectral flux etc. - they make together a very good description...
I am doing an analysis abut bank's performance between two types of banks(conventional and islamic), I have 250 observations(5 years, 50 banks) which makes it a panel data. the problem is that when running the regression analysis for each type of bank, I get all the variables are insignificant. I tried pooled OLS, rand...
I am trying to find a proper way of defining a right or left skewed continuous (0...100) distribution for my priors in a simple linear regression. Furthermore, I expect to find some outliers in my data (most concentrated on the right or left, but some very bad performers) Do you know how may I specify this in WinBUGs?
I am interested in estimating the ratio of two regression coefficients: $$\beta=\frac{\beta_{Y|G}}{\beta_{X|G}}$$ The numerator is the linear regression coefficient of a variable G on Y and the denominator is the linear regression coefficient of a the same variable G on X. I estimated this parameter by simply taking th...
I'm in an intro to stats class right now, and have absolutely no idea what's going on. How would I solve the following problem using R? "Let x be a continuous random variable that has a normal distribution with a mean of 71 and a standard deviation of 15. Assuming n/N is less than or equal to 0.05, find the probability...
I have a dataset of about ~49K entries and 31 columns. I ran a grid search with 3-fold CV for finding the hyperparameters of Random Forest (using sci-kit learn). I then used the best estimator to fit on the train set, and predict on the test set. The results of ROC AUC score are as follows: CV: 0.705 Train: 0.836 Test:...
I understand it to mean that the model is bad at predicting individual data points but has established a firm trend (e.g. y goes up when x goes up).
This is the Normal Probability Plot I've obtained for some data: As you can see the points seem to osciallate, as in a period, around the line of slope 1 and passing through the origin. I've obtained this plot by trying to fit a simple linear regression model. Can I deduce from this peculiar behaviour (just as an Anza...
I am going to model a response variable with multiple outcomes, e.g. clear, cloudy, rainy, snowy, and windy, on a set of explanatory variables. However I cannot simply use multinomial regression (or similar models) because the response variable is actually not one variable, since it can be, for example clear and windy ...
I am new to the concept of supervised classification technique. I am trying to use an SVM classifier for classifying Sea Ice types in the Arctic using satellite image. All the tutorials I have read for performing a supervised SVM classification use data that comes with labels. For instance, if we have a table which is ...
I have run the following glmm: mod<-glmer(data=newdata, total_flr_vis ~ treatment + flr_num + (1|individual), family=poisson) and get this output from summary() Generalized linear mixed model fit by maximum likelihood (Laplace Approximation) ['glmerMod'] Family: poisson ( log ) Formula: total_flr_vis ~ treatment + flr...
A few months ago, I wrote an Android App. I am getting two key pieces of data from this app regarding its usage. The first metric, is number of downloads per day. The second metric, is basically, how many times the app is used in that day. Obviously there is a correlation. If I get 25 downloads in a day, there are...
Given a labeled dataset $X$ $(x_0, x_1, \dotsc, x_n)$ & $Y$ $(y_0, y_1, \dotsc, y_n)$ and learnt parameter $\hat{\theta}$ in linear regression model $y \sim \theta^{T} x$, what is the formula for calculating predictive variance of the expected value on a new data point? (e.g. $\hat{\theta} x_{new}$ ), given the labeled...
The heaviest tailed smooth normalizable continuous distributions that I am familiar with are those with fat power-law tails $\frac{1}{x^{1+\alpha}}$, e.g. a Pareto with $\alpha\rightarrow 0^+$ or a Student's t with $\nu\rightarrow 0^+$, but are there distributions with heavier tails? I am curious about what is the wor...
In "Neural architecture search with reinforcement learning" (https://arxiv.org/pdf/1611.01578.pdf), the authors use a recurrent neural network as the controller to generate hyperparameters, but do not describe the architecture of the controller in detail. How are the predictions for each hyperparameter made? The paper...
Consider a simple model for school graduation: there is school $i = 1,2,..., N$, each getting $y_i$ of $n_i$ students graduated. Assume $y_i\sim Binomial(n_i, \theta_i)$ where $\theta_i$ is the probability of graduation of each student at school $i$. What is the best way to model the relationship between the individual...
I fitted a multinomial probit model with one independent categorical variable Y (levels 1,2,3) and two explanatory variables X1 and X2. Using mlogit package in R like this: library(mlogit) df = read.csv("https://gitlab.com/cristiandavidarteaga/rtraining/raw/b40daf27a52bf01ce58d0ea32c5e4854f5b23836/mlogit_2var/data.csv...
I am interested in estimating the gradient of the log probability distribution $\nabla\log p(x)$ when $p(x)$ is not analytically available but is only accessed via samples $x_i \sim p(x)$. There seems to be various possible solutions utilizing nearest neighbors, kernel estimates etc. See 'The Estimation of the Gradien...
I have a dataset as below. It is a classification problem with multiple x variables and a y variable. Y variable has 5 levels. The below picture has y variable on x axis and one x variable on y axis. As you can see from the picture below, for each value of Y, a x variable distribution is not very different (i plotted s...
Is it fair to say that robust estimation should be used when the iid assumption doesn't hold? My understanding is that the sample has to be random/independent/uncorrelated but it can follow non-identical distributions - and that's when robust estimation is useful. In other words, robust estimation should be used in cas...
When describing an n-way ANOVA in text, is it best practice to specify the number of factors and the number of levels in each factor? Here are some examples with varying amounts of information: "We ran a two-way ANOVA." "We ran a two-way ANOVA (factors A and B)." "We ran a two-way ANOVA (factors A, 3 levels, and B, 8 ...
I'm trying to implement a simple neural network to help me understand the concept. What I'm now not sure about is how the matrix of weights is formatted. Example: Input layer: 2 inputs Hidden layer: 2 nodes Output layer: 1 node From what I've understood, this is what I send as input to the output layer: outputFromLay...
In my trying to further unpack generalized estimating equations, I keep coming across these terms. But after a whirlwind of searching on Google, I really have no idea what it is. What does it mean when the covariance structures are treated as a nuisance, and to only model the mean response? I understand the model is...
I have data from many individuals. For each individual I have a predictor variable $D$ and a response variable $C$ which are continuous. Below I have plotted simulated data for three individuals. Every individual has a different sampling of $D$. I want to model the underlying relationship between $D$ and $C$ while remo...
Regarding the re-estimation procedure of the Baum-Welch algorithm, the sources I looked into so far all describe the process in an abstract manner. Therefore I am wondering the following about actually implementing the algorithm: The re-estimation of the transition probabilities covers all transitions, every single tra...
Let $X_1,\ldots,X_n$ be iid from $\chi^2_v$, where $v\in \mathbb{N}$. So $E(X_i) = v$ and $Var(X_i) = 2v$. Find a statistic $Y_n$ such that $$\frac{\sqrt{n}(\bar{X}_n-v)}{Y_n} \overset{D}{\to} N(0,1)$$ Suppose $n = 100$ and $\bar{x_n} = 10$. Use the asymptotic result in part 1 to obtain an approximate 95% confidence ...
Let $\phi_{1}(x_{1},x_{2})$ and $\phi_{2}(x_{1},x_{2})$ be two different normal density functions with zero means, unit variances and different correlation coefficients $\rho_{1}$ and $\rho_{2}$ respectively. Show that the density function $\frac{1}{2}[\phi_{1}(x_{1},x_{2})+\phi_{2}(x_{1},x_{2})]$ is not normal. I can...
I am using R caret::train for creating my model with imbalance data: 0 1 table 30,991 6,179 percentage 83% 17% therefore I am using DMwR::SMOTE (I get better result preparing the data first rather than using smote internally in caret::train) to generate a 60:40 proportion from my binary d...
I keep seeing this online, on Quora and Machine Learning subreddits but I don't get it. Here's some basic math to show otherwise: We use this equation for the cell state: $c_t = f_t \odot c_t\__1 + i_t \odot g_t$ Now, we want to compute: $\frac{\partial c_t}{\partial c_t\__1}$ Apparently, it's equal to the forget gate:...
I'm trying to do F-test (ratio of the variances) for two samples with 92 data points each. I look at several links for the critical value for degrees of freedom equal to 91 but most of them are skipping values in between. For example, from the link below, the df for the numerator skipped: 40,60,120 and the same as the ...
In sampling a complex spatio-temporal model by Gibbs sampling, I found if I change the order of sampling (for example, to sample $P(\theta_1,\theta_2|D)$, in one try, I sample $\theta_1\sim P(\theta_1|D,\theta_2)$ first, and in another try I sample $\theta_2\sim P(\theta_2|D,\theta_1)$ first.), I will get quite differe...
I'm trying to perform backpropagation on a neural network using Softmax activation on the output layer and a cross-entropy cost function. Here are the steps I take: Calculate the error gradient with respect to each output neuron's input: $$ \frac{\partial E} {\partial z_j} = {\frac{\partial E} {\partial o_j}}{\frac{\...
Let $X_1$, $X_2$, ..., $X_n$ be iid RV's following a mixture distribution of two lognormals such that the pdf of each $X_i$ is $f_{mix}(x)=pf_1(x) + (1-p)f_2(x)$ where $f_1(x)$ and $f_2(x)$ are lognormal pdfs with parameters $\mu_1,\sigma$ and $\mu_2,\sigma$, respectively. Define $S_i$ as a sum of 10 $X$s, e.g. $S_1 = ...
Unfortunately, I do not know where else to turn to for clarifications that I require regarding the notations and definitions in the initial sections of the paper by Berger et al (1996). In Section 3.2, they say, "To express the event that in translates as en when April is the following word, we can introduce the indica...
Suppose I have a proportion estimate and 95% CI: 0.39 (0.28, 0.58), how would I obtain the variance? Typically 95% CIs are defined as $0.39 \pm 1.96\cdot SE = (0.28, 0.58)$. And suppose I know that the sample size $n = 100$. Since $SE = \frac{\sigma}{\sqrt{n}}$, I can easily solve for $\sigma^2$ with algebraic manipula...
Is there a multivariate alternative to two-sample Kolmogorov–Smirnov test? What I mean is a test that can be used to check whenever two underlying multidimensional distributions differ.
I'm solving a SDP (semidefinite program) problem. I have read some examples using YALMIP package in MATLAB. But I can not find a explanation for what the algorithms that YALMIP use. Is that a certain Interior Point Method?
A simple 32x16 multi-layer perceptron is apparently overfitting my dataset. The training error goes way down while the test error balloons. Note that with smaller MLPs like 8x8 the training and test error both go down. Anything larger than 8x8 seems to result in overfitting. Given that the dataset seems huge to me (30 ...
I plan to make a Language Model in Python using Neural Networks. I've read that Neural Networks need vectors as input. One common vector representation in NLP is the Bag of Words model. Given a corpus with thousands of sentences, I could make a Bag of Words model out of it. However, I don't know what to do next or how ...
I have implemented a keras version of Network in Network Paper for Image Classification for college assignment but when I am running it in my system hangs. I would like to know whether I have implemented it properly according to architecture, loss function, layers etc as am I new to deep learning and I couldn't find an...
There are four variables have significant interaction effects in my logistic regression model, but I still did not get good way to interpret it through R software.  There are some discussion on 3-way interactions, it seems that plot would be a way. But their discussions are for linear regression rather than logistic re...
I'm currently looking at patient data and trying to use it to predict the importance of variables in prediction of response to a drug. I don't have many patients but have a lot of variables which I know is less than ideal. I've formed a svm ensemble and a random forest model containing all the variables. I have a sec...
I have a data set with one binary response variable $Y$, and three categorical covariates $X_1$, $X_2$ and $X_3$. I want to find out what effect $X_1$ has on $Y$ (and if the effect is significant). Naturally, I solve this by fitting a logistic regression model (using all three covariates), and analyse the table of devi...
Let $X\sim(m_X,\sigma_X^2)$ and $Y\sim(m_Y,\sigma_Y^2)$. We know that both $X$ and $Y$ are more like lognormal than normal. Also, Pearson correlation coefficient is known: $\rho=r(X,Y)$. We have the decay formula $\ f(X,Y)=X\ exp(a\ Y^b)$, where $a<0$ and $-1<b<0$. Is it likely, that $f$ will have "lognormal-like" dist...
As a measure of multicollinearity, some statistical packages, like SPSS and SAS, give you eigenvalues. See the image for an example output of SPSS (simulated data, two predictors). What I would like to know is how these eigenvalues are calculated. I understand how eigenvalues are calculated from a given matrix, but I ...
I'm trying to report the difference between the inclusion and exclusion of a site type (i.e. restored habitat/natural habitat). I have done linear mixed effects models and have done an anova showing that for species richness there is a sig. difference between the inclusion of site type, whereas for abundance there is n...
The model of a HMM consists of a latent Markov chain with state $X$ and transition probabilities $P(X^t \mid X^{t-1})$, and observation variables $Y$ that depend on the current latent state via $P(Y^t \mid X^t)$. This results in the following causal graphical model: Question What are reasons for why the arrows go from...
I know how to solve if roll dice 2 time and the sum is 10, but by drawing table. Therefore, with 400 times and sum is 1350, that is ridiculous. Let's say using Excel to solve the problem. Should I use Binomial random function BINOM.DIST.RANGE(trials,probability_s,number_s,[number_s2]). But the thing is how to know pro...
When I was tried to finish the exercise of 9.R SVMs in R of ISLR course(https://lagunita.stanford.edu/courses/HumanitiesSciences/StatLearning/Winter2016/). I found that my result is not in accordance with the answer. The problem is: In this problem, you will use simulation to evaluate (by Monte Carlo) the expected misc...
I have to compare the answers of 3 or 4 different groups (this depends on each question). The questions asked are asking the participants to fill in a 5-likert scale (totally disagree, disagree, not disagree nor agree, agree and totally agree). Can I use ANOVA for this? And how do I do this in R?
I have two matrices in which the sum of all the values in each row sums up to 1. In R they can be obtained by: m1 <-matrix(runif(5*6), ncol=6) m2 <-matrix(runif(5*6), ncol=6) m1 <- round(prop.table(m1,1),2) m2 <- round(prop.table(m2,1),2) I would like to test for changes in the proportions in each row between the two ...
I have some mortality data and I am trying to determine if the mortality is different in one subpopulation compared to the total population. The problem is I am having trouble determining which statistical tests to run. Data Say I am comparing the number of deaths due to murder in these two populations in a single year...
I have panel data (both ex-ante and post-ante data) and want to examine the effect of a policy change on my treatment group relative to the control group through a matched DiD test using propensity scores. How should the matching be conducted when you do a DiD? Should you match control and treatment at the baseline and...
I have 20 sequences that were coded by 2 judges, for example: Sequence 1, Judge 1: A-B-C-A-B-E-F Sequence 1, Judge 2: A-B-E-C-A-B-F I want to check the inter-rater reliability. Any suggestions on how to do this?
So I was advised to use a GLM to adjust for confounding factors, but I have two variables I want to plot against each other and both are influenced by the same confounders. Can I use GLM for this, and if so how? If I use a GLM twice, once for each variable, can I combine them (how)? There are large numbers of covariate...
I was confused about the differences between the F1 score, Dice score and IoU (intersection over union). By now I found out that F1 and Dice mean the same thing (right?) and IoU has a very similar formula to the other two. F1 / Dice: $$\frac{2TP}{2TP+FP+FN}$$ IoU / Jaccard: $$\frac{TP}{TP+FP+FN}$$ Are there any pract...