instruction
stringlengths
9
38.7k
There's a game called Cthulhutech which has a dice-based problem resolution system. I'll use a notation of nd+b where relevant, where "n" is the number of 10-sided dice (giving a value from 1 to 10), and b is the skill bonus. The first part is simple: The result of a roll is (initially), the highest of all dice. The ne...
However, when I checked the results using, vcovHC=sandwich, I found different results. Can anyone help me to figure out the difference? F1=lm(Rcf~Rmf) F1test=coeftest(F1,vcov=sandwich) ** VS.** F1=lm(Rcf~Rmf) F1test=coeftest(F1,vcovHC=sandwich)
The question: Is there an appropriate statistical test of a change in dispersion across a large number of variables as a result of experimental manipulation? Background: A manipulation has been made to a regulatory 'error-checking' gene and RNA-sequencing has generated count values for the level of expression of thous...
Due to an upcoming exam I came across the following past exam question which at first seemed easy. The question is as follows. Let $f(y_i) = (\frac{k}{y_i})^2$ be the density function of the (random) income of agent A where $k$ denotes the minimum amount. As such the income follows a pareto distribution with support $...
I want to use machine learning to predict/classify a set of samples with about 6 features each. My target is multilabel with 3 possible values. I've plotted all 2-length combinations of features, with the target color coded in either green, red or blue. Looking at the plots, there's no discernible pattern or boundaries...
My data consists of the behavior of animals. The "behavior", which we just call $y$, has a lot of variation. I have fitted a regression model, and my $R^2$ is at $30 \%$. The purpose is inference, not necessarily prediction, but still, is this sort of $R^2$ acceptable for such data? This is the first time I am doing ...
I have time series data from 1947-1971 for prices and quantity indices. In the original paper from 1975 which I obtained the data the authors did not detrend the data. Here is how I detrended the data: I applied the Hodrick Prescott filter to each of the variables via Eviews I obtained the residuals values from the...
My questions is: What is the "real" difference between Reverse nearest neighbor(RNN) and Nearest neighbor(NN) queries? In my opinion, these two should return same result.
I am using logistic regression to model habitat suitability for bighorn sheep. I've followed the "purposeful selection of covariates" method outlined in Hosmer, D. W., S. Lemeshow, and R. X. Sturdivant. 2013. Applied logistic regression. Hoboken, NJ: John Wiley & Sons, Inc. This went well, and I came up with a model w...
I am performing a meta-analysis of pharmacokinetic crossover trials with drug-metabolising enzyme activity as their endpoint(s), and as to be expected, the data are a mess and are reported in a frustratingly wide array of formats. In particular, I want to convert some of the literature-reported, natural log-back-trans...
In ?glmnet::glmnet documentation, it says Do not supply a single value for lambda (for predictions after CV use predict() instead). Supply instead a decreasing sequence of lambda values. glmnet relies on its warms starts for speed, and its often faster to fit a whole path than compute a single fit. Why? What is the "...
Consider $Y_1\sim \operatorname {Poisson}(\lambda\psi)$ and $Y_2\sim \operatorname {Poisson}(\lambda)$, where $Y_1$ and $Y_2$ are independent, and where we are interested in testing $H_0: \psi =1$. The joint likelihood function is given by $$f_{Y_{1},Y_{2}}(y_{1},y_{2})=\frac{e^{-\lambda\psi}(\lambda\psi)^{y_{1}}}{y_{1...
I have gone through various materials online but all the formulas were for small values of n(number of rows) say like 100,120 etc.But my problem is to calculate the critical value for values of n(number of rows).Using the tests like t-tests etc are givings unexpected results like the relation which is not actually sig...
I am trying to run a meta-analysis calculating the mean effect size of a manual therapy treatment on pressure pain threshold pre-post treatment (i.e. within-group change), so there is no comparison to sham/control. I will be using mean change from baseline (continuous) and I have SDs/CIs of the change. There are 10 stu...
I have generated histograms from each of the succeeding years. I thought of plotting the skewness and kurtosis of each to compare them. I am not sure if a qualitative description suffices to show their differences. Is it possible to do hypothesis testing to compare the measures of shape between histograms (e.g. skewnes...
This is with refernce to the paper Efficient Object Localization Using Convolutional Networks, and from what I understand the dropout is implemented in 2D. After reading the code from Keras on how the Spatial 2D Dropout is implemented, basically a random binary mask of shape [batch_size, 1, 1, num_channels] is implemen...
I have been often using GEE for complex panel analyses. However, it occurs to me that in many cases GLM would have provided similar results. What is the main conceptual difference between the two?
I am a bit confused on the size of the SOM grid size suggested by Vesanto. Here in this link, it says 5*sqrt(N) where N is mentioned as the dataset size. What is meant by dataset size? the number of observations (rows)? number of dimensions (columns)? or product of the two? And here also there is a mention of it, but t...
I have been trying to figure out the implementation in knime. The tool says it uses Fisher scoring (FS). I understand Newton Raphson-method from http://www.win-vector.com/blog/2011/09/the-simpler-derivation-of-logistic-regression/ but can someone explain what is the exact difference between Fisher scoring and the Newto...
I'd like to get advise if I'm doing it right. I have following dataframe (below attached) with the activities count with occurred date. An also per "Slug" I have its published day, e.g. zero-day in different dataframe. So I need to figure out what the probable lifetime (in days) of any random "Slug" is? So I computed i...
I want to create this kind of chart for my own data (also health indicators as in the example). I found that in the page were the image was included]1 that they call this plot 'spine chart' , but, after a long search in Google, I couldn't find any other examples. Neither I could find any other names for this kind of p...
I am currently working on a data set consisting of 300 predictors and a dependent variable. The predictors are categorical variables (taking values 0,1) and for every observation only a subset of them is active, i.e. taking the value 1. Every predictor is a client and the predictor takes the value one, if a client has...
I have two samples of binary variables (i.e. 0 or 1). Both samples have unequal observations but the same median value of 0. When I test to see whether the two samples' median values are statistically different from each other, both the Wilcoxon rank-sum test and Moody's median test show a statistically significant p-v...
I am doing a grid search for model fits to data. At each point of the grid (let's say a 2d parameter space) I have a value for the statistic $\chi^{2} = \sum_{i}\frac{(O_{i}-E_{i})^{2}}{dO_{i}^{2}}$ where $O_i$ are observed data points, $E_i$ the model values and $dO_i$ the (generally different) errors on the observed ...
I have usage data of many machines like this: In this machine, the usage grows linear with the time. However, in early 2016, someone or something messed with the total usage in hours and the next measurement dropped down to about 2500. From there, the slope is equal to what it was before. I'd like to automatically fin...
I would need some help with the analysis of a soil data set. The variable Ms was measured with n=5 over several campaigns (7 levels; i, ii, iii...) throughout a year on an agricultural field that received different treatments (4 levels; T1, T2, T3, T4). First, I assumed that I could simply do a two-factor ANOVA with Tr...
I perform a Logistic Regression in R which looks the folllowing: logit <- glm(result~Condition+Strength, data = combined, family = binomial) I am mainly interested in the effect of Condition on result while controlling for Strength. So far the effect is significant. Furthermore I want to include another variable calle...
I have a right-censored data set. I plot a Kaplan–Meier survival curve using R: The y-values are easy to interpret, e.g. about 45% of the population will survive 500 days. Now I plot the Nelson–Aalen cumulative hazard curve by setting the parameter fun="cumhaz" in the plot function: Do the y-values have any intuitive...
I understand how to obtain coefficients and MSE from glmnet. Now my question is: How can I calculate the goodness of fit of the model in terms of standard measures, i.e. F-statistics AIC or alike?
I have a pool of users and I am able to send them push notifications. I want to measure the effect of receiving a push notification on a usage metric, such as using a feature in the game within the next 7 days. So I want to measure the effect of a dichotomous variable (seeing a notification) on a dichotomous variable (...
Let's consider that I have a state 0 that goes in three directions: one leads to a recurrent state, and the other two go to different states with periods M and N. What will be the period of a state 0? Would be glad to see a detailed explanation.
Where can I find reading material on the "scaled t distribution"? Wiki does not help What is it? How is it different than the t-distribution?
I want to model the effect of treatments (fragmented and continuous forest) on species abundance within three different elevational regions in R, using the lme4 package. I'm also interested in differences between elevations, so I included this term in the model as a fixed effect: model <- glmer(abundance ~ (1|site) + t...
I have 2 models. One is mixture of binomials with $p_1=1/3$ and $p_2=2/3$, second - mixture with $p_3=1/4, p_4=2/4, p_5=3/4$. Priors are equal and uniform inside each model and between models. The question is: for a data point (a,b) say which model is more likely for this data. It is worth to mention that the data poin...
I was wondering how is cluster analysis is done when more than 2 variables are considered. For example, I was told to do a clustering with the following combinations: Longitude and latitude Longitude, latitude and mean Longitude, latitude, mean and elevation As far as I know, I am aware that you could visualize the d...
This question came up in class: If we use p-values to evaluate hypotheses on an experiment, which part of the Likelihood Principle are we not obeying: Sufficiency or Conditionality? My intuition would be to say Sufficiency, since computing a p-value relies on unobserved outcomes of an experiment, and Sufficiency seems ...
I am given a linear model where the residual variable $u_t$ is stationary and verifies: $$E[u_t|u_{t-1},u_{t-2},...]=0$$ I also have $$\sigma^2_ t=Var(u_t|u_{t-1},u_{t-2},...)=\alpha_0+\alpha_1u^2_{t-1}$$ I am asked to determine $Var(u_t)$. I tried to use the law of total variance: $$Var(u_t)=E[Var(u_t|u_{t-1},u_{t-2},...
In Shumway & Stoffer, Time Series Analysis and Its Applications, it is argued in Section 5.3 that the limiting random variable for the Dickey-Fuller test statistic is $$ \frac{\chi_1^2 - 1}{2(\int_0^1 W^2(t) \, d t)},$$ where $\chi_1^2$ is a Chi-Square distributed rv with one degree of freedom, and $W$ is a standard B...
I have written a Matlab function to calculate Mardia's Skewness and Kurtosis. (S is the Covariance Matrix and X_bar is the mean vector.) $$b_{1,p}=\frac{1}{n^{2}}\sum_{i,j=1}^{n}[(X_{i}-\bar{X})'S^{-1}(X_{j}-\bar{X})]^3$$ $$b_{2,p}=\frac{1}{n}\sum_{i=1}^{n}[(X_{i}-\bar{X})'S^{-1}(X_{i}-\bar{X})]^2$$ function [ b ] = Ma...
I'm trying to find the probability distribution of the random sum $Y$ of $N$ random $X_i$ variables where: $$ Y = I(N > 0) \sum^N_{i=1} X_i $$ $$ N \sim \mathrm{NegBin}(r, \theta)$$ $$ X_i | p_i \sim \mathrm{Bernoulli}(p_i)$$ $$ p_i \sim \mathrm{Beta}(\alpha, \beta)$$ The setting is similar to a question I had asked re...
Gretton et al describes the Kernel Maximum Mean Discrepancy, a measure of distance between distributions. In order to compare two distributions, it turns out you can do much better than, say, taking the L2 distance between density estimates. As explained in section 3.3.1, the latter approach suffers from curse of di...
I was reading that backpropagation can't be used for binary threshold neurons. Binary threshold neurons calculate a cost using some weights, so why can't those weights be changed with backpropagation?
Let $X_1, . . . , X_m, Y_1, . . . , Y_n$ be independent with $X_i ∼ N(ξ, σ^2)$ and $ Y_j ∼ N(η, τ^2).$ What is the minimal sufficient statistic for $(ξ,η,σ^2)$ where $σ^2 = τ^2$? I've seen MSS derived from a single distribution by using the result shown here. Not sure how to approach the above question however. Edit: ...
I'm unable to get a good result with my Content-Based recommendation (very low Precision) Items are different sort of services (Yelp DataSet). To compute the item's profiles, I used a classical approach with TF-IDF. Where each item has a number of attribute, and TF-IDF gives the weight of the attribute in the item. To ...
Looking for some help. Here's my qq plot. I already deleted the most extreme outliers, but some remain. Also, what about the distributional assumption?
I was going through the paper of O'Malley and Zaslavsky (2008) for the scaled inverse Wishart priors for a covariance matrix, in order to write an R-code for hierarchical Bayesian estimation of mixed logit model. They have decomposed the covariance matrix as $\Sigma = \Delta\Phi\Delta$; $\Delta$ is a diagonal matrix o...
This table shows the number of stories reported by the New York Times on Afghanistan in which a US government official was quoted. Each row does not represent all stories but, rather, a sample of three constructed weeks of stories during that time period (IOW, all Afghanistan stories from three randomly selected Monda...
I have two samples (from two experiments) with different variances, and I want to combine these two samples with a factor (1 and 2 for each experiment), and then maybe do a multilevel multivariate analysis. Where can I find literature on the issue of whether I am allowed to combine these two samples with a factor? Or...
When to Be Discrete: Continuous vs. Categorical Predictors. I want to know whether I should bring variables as categorical into the model or continuous? Which factor should I consider? When should I categorize one continuous variable? When shouldn't I? And How categorize a continuous variable?
Lets say an application has to show documents which are relevant to users out of thousands of document in the dataset in content based system, which technique(set of algorithms) should be used ? Problems to address: The result should consider user's past preferences (history) How to recommend any document when a new ...
I am working on a machine learning algorithm which performs a binary classification. I have different features, and I would like to know which of them are better for the classification, I mean what of them really make a difference between classes and what of them are not important. I have thought of computing the norma...
Notice that it has groups $(D_1, D_2, D_3)$ and each group has subgroups $(c_1, c_2, c_3)$. .
I am trying to figure out if I've got it down correctly. (Sorry it's so small, you can click on the picture to enlarge it) EDIT: About the notation: A random experiment is performed and the set of possible outcomes is $S = \{s_1, s_2, s_3, s_4, s_5 \}$. The random variable is an injective function $X: S \to \mathbb{R...
The exponential distribution is well-known and widely used but defined for a continuous variable. Is there a discrete version of it?
If I have N of about 3000 data points, each of about dimensions d of 50, and so the k in kNN is sqrt(3000/2) is about 40, then applying kNN to these points would be about O(NdK) = O(3000*50*40) which doesn't seem bad. I've heard that kNN is very susceptible to the curse of dimentionality, but Question = if I use it...
What are other ways of feature selection within a dataset $X$ for classifying a binary response variable $y$. I know such tools as logistic regression / linear SVMs with an l1 penalty, and sparse PCA. Then in the nonlinear category I only know of random forest / extra trees ensembles using feature importance metrics. ...
I'm currently revising for an exam and I don't understand one of the questions. Given are the following expectation / mean vectors and covariance matrices: A) $\mu_1 = \begin{pmatrix}0 \\ 0 \end{pmatrix}, \Sigma_1 = \begin{pmatrix} 1 & 0 \\ 0 & 1\end{pmatrix}$ B) $\mu_2 = \begin{pmatrix}3 \\ 2 \end{pmatrix}, \Sigma_2 =...
Descriptions of boosting (and specific techniques like gradient boosting) typically talk about "weak learners" in general, and then immediately switch to discussing boosted trees specifically. Why is this? I've seen some discussions regarding boosting SVMs, but little to no discussion about boosting neural networks or ...
I have a random Variable $X$ is $ SN(\lambda)$ and is pdf is given by: $f(x)=2\phi(x)\Phi(\lambda x)$. The model of the variable X is given by:$X=\frac{1}{\sqrt{1+\lambda^2}}Z_1+\frac{\lambda}{\sqrt{1+\lambda^2}}|Z_2|$ where $Z_1$ and $Z_2$ have $N(0,1)$ and are independent. What I need to do is to find the moment est...
Consider the smoothing spline $$ \hat f = \arg\min_{f}\sum_{i=1}^n{(y_i-f(x_i))^2} + \lambda \int_0^1{f^{(m)}(x)^2dx}. $$ It is well-known that the estimate $\hat y_i=\hat f(x_i)$ can be expressed as $\hat y=Kx$ for some $n\times n$ matrix $X$ that depends on $x$ and $\lambda$ only. Question: how can I compute $K$, giv...
Is the average of multiple positive-definite matrices necessarily positive-definite or positive semi-definite? The average is element-wise average.
Is there any reasons not to use MAE as cost function in logistic regression? Yes, I know about problems with optimization, I know that this estimation won't be max-likelihood estimation. But is there something else? Another pitfalls?
Assume there's a time series where peaks have been identified by some means as shown in the graph below. These could be voltage spikes recorded from some machine on an assembly line. Visually one can look at the graph and see that the higher and lower amplitude peaks each repeat with some regularity. What would be the...
I was reading the standard/famous word2vec model and according to standord's notes for cs224n the objective function changes from: $$J_{original} = -\sum^{2m}_{j=0,j\neq m} u^\top_{c-m+j} v_c + 2m log \left( \sum^{|V|}_{k=1} exp(u^{\top}_k v_c) \right)$$ to: $$J_{NS1} = -log \sigma( u^\top_{c-m+j} v_c ) - \sum^{K}_{k...
I am trying to parametrically model an unobserved variable $z$. (Does this even make sense?) It has one predictor $x$, which is nonnegative. If the predictor's value is 0, $z$ should be 0. If the predictor's value is greater than 0, it should lie between 0 and 1. If future values of the predictor are less than the aver...
When training a neural net on a (somewhat balanced) dataset, the neural network will occasionally (1/3 of the time) get locked in predicting only one class. I've reduced the size of the layers as much as I can, so I'm looking for some suggestions as to The type of optimizer and learning rate (I've tried SGD, Adam, Ada...
My data is as follows: X1 Y2 Y3 Y4 Y5 Y6 0 1 1 1 1 1 1 1.33333 - 1.22222 - 1.2 2 - 1.90909 2 - 1.8 3 - - 2.6 - 2.2 4 2 - 3.51111 2.1 3.2 5 ...
I have fitted my model, checked the diagnostics, and it looks good. From wiki, I now understand that "cross validation" can be used to check the predictive accuracy of my model. How exactly does this work in practice? Say my original data is 1000 data lines. So I split it into 5 groups. Then I fit a model on each gro...
Q1: The main question is that can I say my own coded SGD algorithm converged based on the convergence plot below? In the SGD code, the data is randomly shuffled in each epoch before calculating the gradient at each point in the order, the Robbins-Monro rule for step size is chosen, and the exponentially weighted movin...
I have data with 3 columns: y represents dependent continuous variable, xcont represents independent continuous variable, xcat represents independent categorical variable with 3 levels: xcat1, xcat2, and xcat3. I am doing simple model with interaction: y = xcont + xcat + xcon*xcat The statistical software I am using (...
How does one actually apply SGD to word to vec? My question are: What entails a mini-batch? Do we (at least conceptually) take derivatives wrt to all model params? How does changing the objective function affect how do this? (negative sampling for example) Its not clear to me what is the “data examples”. My guess is...
I am reading about Box-Cox, Yeo-Johnson transformations. I am looking at different choices of the power $\lambda$ for my models, and I just look at the qq-plot and pick the one that fits the best. Why? Because the reason I use these transformations in the first place is so my normality assumptions are met. However, lit...
I have run a poisson regression with two categorical predictors (treatment and disease severity) and their interaction, controlling for a number of relevant covariates. Treatment has two levels (control = 0, intervention = 1) and disease severity has three levels (none = 0, mild = 1, moderate = 2). My output shows a...
I have a relatively large data set of 9M rows that is almost 1GB in size. The data looks like: t e p acs acc v correct_p t1 e11 p11 acs11 acc11 v11 0 t1 e12 p12 acs12 acc12 v12 1 t1 e13 p13 acs13 acc13 v13 0 ... t2 e21 p21 acs21 acc21 v21 0 t2 e22 p22 acs22 acc22 v22 0 t2 ...
I am modelling on an univariate time series in a form as shown. Suppose the time interval in the series is daily base, namely every y was collected every day. I wanna use sliding window method to model this but a key point is that my task is to predict a future y in a 120-day time window, i.e. given all historical dat...
You draw two balls from one of three possible large urns, labelled A, B, and C. Urn A has 1/2 blue balls, 1/3 green balls, and 1/6 red balls. Urn B has 1/6 blue balls, 1/2 green balls, and 1/3 red balls. Urn C has 1/3 blue balls, 1/6 green balls, and 1/2 red balls. With no prior information about which urn you...
I need to calculate the expected outputs (Yj) from a large non-linear simulation model (Mj) which takes 2^N possible input strings (Bi), each with known probability fi (simple binomial). N is typically 12 or more, e.g., Yj = E(Mj(Bi)) where Bi are 000000000000, 000000000001, 000000000010, ..., 111111111111 The calculat...
I am trying to understand how XGBoost works. I already understand how gradient boosted trees work on Python sklearn. What is not clear to me is if XGBoost works the same way, but faster, or if there are fundamental differences between it and the python implementation. When I read this paper http://learningsys.org/pa...
I am estimating a regression model with time-varying parameters with Kalman filter assuming that the coefficients follow a random walk. Then, I use OLS on expanding window, a.k.a. recursive least squares (RLS) to compare the results. I find that the confidence intervals around the KF estimates are much wider than those...
Let's say I have a $k$-vector of numeric data $X \in \mathbb{R}^k$, and I want to plot a frequency distribution of all the data points in the vector. I've tried searching high and low for a method (explained from the first principles) to determine the number of bins (or equivalently, the optimal bin size) to use for pl...
My data set is about user creating files during one year. Frequencies are number of files / freq 0 49 1 36 2 42 3 26 4 22 5 22 6 8 7 12 8 2 9 4 10 7 11 0 12 1 13 1 14 1 15 1 16 2 17 1 18 0 19 1 20 0 What is most suitable distribution for this data set....
In Wikipedia EM algorithm section of Gaussian Mixture examples , there are two likelihood functions: incomplete-data likelihood function $L(\theta;\mathbf{x})$ complete-data likelihood function $L(\theta; \mathbf{x},\mathbf{z})$ which do we optimize when performing EM algorithm, why? I was told by the tutor we optim...
I am working on a classification problem where I try to predict for each individual to which of two classes (0 or 1) they belong. The data set I have shows about 99% of individuals are in class 0, and 1% in class 1. The model I use is obtained by logistic regression, with a cut-off probability determined by ROC analysi...
I would like to know the best way, and ideally also less optimal ways, to predict, for "next week", the health index (outc_health_index) of subjects (subject_id), based on daily data (date) on whether they have gone jogging or not (pred_went_jogging) and on whether they did meditation or not (pred_did_meditation) I am ...
I want to know that how conditioning will affect the CDF of dependent random variables. More specifically, let's suppose, $\Gamma_R={g\over A}$ and $\Gamma_D={g\cdot h\over B}$, where $g$ and $h$ are exponential random variables and $A$ and $B$ are some constant values. I want to find $$\Pr \{min(\Gamma_R,\Gamma_D)<\ga...
Is there a function to estimate the gain in predictive validity with the decrease of the standard error of measurement? E.g. If the short version of a test has predictive validity of 0.35 and standard error of measurement of 0.4 what can we expect the predictive validity of the long version (with some new items added) ...
I'm measuring a person's heart rate based on their position (gradually from laying down to standing up): I tried 8 positions. Now, I recorded the heart rate of 15 people and I measured them twice. Two questions I'd like to answer: Is there a difference/trend between the 8 positions? Is the first measurement the same a...
I have a matrix of N gene-based observations (between 0 and 1) from 2 experiments like the following (The actual matrix is much bigger). \begin{array} {|r|r|r|} \hline GeneName & Exp1 & Exp2 \\ \hline Gene1 & 0.721& 0.733 \\ \hline Gene2 & 0.072& 0.325 \\ \hline Gene3& 0.66& 0.16 \\ \hline Gene4& 0.244& 0.279 \\ \...
If you'll look up for the definition of a (discrete) white noise process on the web, you'll find some sources that say: "white noise is defined by zero mean, finite and constant variance, zero autocorrelation" and roughly the same amount of them that say: "white noise is defined by zero mean, finite variance, zero auto...
I'm currently conducting a meta-analysis of pharmacist-led health interventions and their effect on levels of medication adherence. One of my studies has a phased intervention design. This means that Group A of participants received the intervention first, and three months later Group B of participants received the sam...
For the sake of this question, I will consider a linear model as a statistical model such that $\mathbb{E}[y|\mathbf{x}]=\mathbf{x}\boldsymbol{\beta}$. I know that usually some more assumptions go in the definition of the linear model. However, the other properties are mostly needed for OLS estimation of the linear mod...
I have measurements the protein level of ~1000 proteins in 10 biological tissues, and have thus performed 10.000 t-tests. I am now doing a meta analysis, and thus using Fishers method to combine the 10x1000 P-values, into 1000 P-values. Obviously I need to correct for multiple hypothesis comparison... but how: you hav...
I've been looking up the problem of deciding appropriate binwidths for histograms and here's my broad-level understanding so far: If we have $n$ data points, we assume that they're realizations of $n$ random variables following an unknown distribution $f$. Histograms are essentially density estimators that attempt to d...
Suppose we want to fit a logistic regression on a binary outcome y and we have limited set of continuous independent variables x1, x2 .. xn. And none of these independent variables in their raw form have clearly linear relationship with respect to the outcome probability, yet there might be some polynomial f(x) that co...
Bayes Theorem: $$Pr(A|B) = \frac{Pr(A)Pr(B|A)}{Pr(B)} \tag{0}$$ Furthermore: $$Pr(A) = Pr(A|B)Pr(B) + Pr(A|\neg B)Pr(|\neg B) \tag{1}$$ Scenario: Suppose we are not given that an event $B$ has occurred. Assuming we are given a base Probability of $A$: $(Pr(A_1)$ (this is our prior probability), subsequently, we are no...
Let's say I have two vectors of $1$ and $-1$, and I want to know how similar these two vectors are. Is the use of the cosine similarity coefficient, justifed in this case?
I have the following data: type distance 0 X 12572 1 X 11229 2 Y 14144 3 A 15781 4 A 15486 5 B 461 6 X 328 7 X 23 8 X 50 9 A 45 10 A 231 11 A 10779 12 X 11433 ... ..... type refe...
I am doing Microarray dataset analysis of Leukemia Cancer dataset. The dataset has following details Training :- 38 Samples, 7130 Attributes. Testing :- 34 Samples, 7130 Attributes. Dataset is real valued with two classes(Binary dataset). Here, dimension of the dataset is too huge compared to no of sample. So I did P...
I'm running a prospective cohort study in which I'm examining depression and dementia outcomes in nursing home residents from three facilities -- one experimental and the other two controls, with residents across facilities matched on demographic and clinical factors at baseline. Their depression and dementia outcomes ...
I have two independent normal distributions with different mean and variance, such that. $$f_1(x_1 \; | \; \mu_1, \sigma_1) = \frac{1}{\sigma_1\sqrt{2\pi} } \; \exp({ -\frac{(x-\mu_1)^2}{2\sigma_1^2} })$$ $$f_2(x_2 \; | \; \mu_2, \sigma_2) = \frac{1}{\sigma_2\sqrt{2\pi} } \; \exp({ -\frac{(x-\mu_2)^2}{2\sigma_2^2} })$$...