instruction stringlengths 9 38.7k |
|---|
I'm trying to run a multi-level logistic regression using survey weights on my observations using PROC GLIMMIX. However, I only have weights for those individuals that completed the survey, and no weights on those that did not do the survey. My binary response variable is 1=completed survey, versus 0=did not complete s... |
I was self-learning machine learning. I came upon this section of the Wikipedia page on Logistic regression, where it claims
Because the model can be expressed as a generalized linear model (see below), for 0
It sounds to me that I can recast a logistic regression setup into a linear regression setup. But I can't see... |
I don't get part of the explanation of deriving unbiasedness of OLS in my textbook.
I understand that to derive unbiasedness we have to use conditional expectation (conditioning on $x$) so that the error term goes to zero $E(u|x)=0$ and we can prove unbiasedness of OLS.
The author of my textbook writes:
In addition t... |
I want to do a meta-analysis of survival data using a bayesian framework (gemtc). In the package documentation the input needed are the responders and the exposure in person-time for each arm of a study.
How can i calculate these data from published studies? Are the responders the percentage of person alive at a certai... |
I got a huge dataset, with 75 variables and over 800,000 observations. The target variable is "time to event", where the event is the withdrawal of the subject from a gambling website (days since joining). The independent variables vary, some are numeric, some categorical, for example: sum of winnings, gender, etc..I d... |
I have not been able to find an authoritative source on when it is inappropriate to use Fisher's Exact test in the context of cell counts. I know that it can be computationally intensive to use Fisher Exact test's if the cell counts are large, but if I am not concerned with computation time, is it still statistically v... |
I have 11 subjects and also have the percentage value for the accuracy of a method I developed to predict future actions for each individual. I want to use a right tail one-sample t-test to find out the minimum accuracy of the method for the population from the limited information I have from 11 subjects. I carry out r... |
I read an older paper on likelihood principles recently by James Berger and inside they demonstrate an example involving confidence sets. What confuses me is how they specifically created a confidence set. To be exact, suppose we take two random draws $X_1, X_2$ from a discrete distribution $f(X|\theta)$ in which the r... |
From wikipedia:
https://en.wikipedia.org/wiki/Multiple_correlation
In statistics, the coefficient of multiple correlation is a measure of
how well a given variable can be predicted using a linear function of
a set of other variables.
Is there a modification (standard names and methodology, python software) of multipl... |
So I have 3 rankings on different sets of companies (different industries) and each of them was elaborated based on the key performance indicators of that particular industry.
I ran a PCA to find the key performance indicators and then a CCA (canonical correlation analysis) to measure the relationship between the input... |
I am creating a mixed model in R using the lme4() package. I fit my full model using the lmer() function, with a single random effect.
lme0 = lmer(L50 ~ (1|SITE2) + compost + ZONE + POSITION +
PRED_BIOMASS + CS_DENSITY + RICHNESS + CHLA_RASTER + SST_RASTER, data = gbr)
I am confused on how to proceed with model selec... |
Suppose that I have two systems $A$ and $B$ whose output are $O_A$ and $O_B$, respectively. The statistic of interest that I use to decide which system is better is $s(O_A)$ and $s(O_B)$, respectively. This statistic is larger when a system is better.
I found that $s(O_A) > O(O_B)$, therefore I concluded that the syst... |
I wish to investigate whether variables $x_1$ and $x_2$ provide any additional explanatory power to variable y, above and beyond some control $X$. I prefer using the support vector machine (SVM) method as (I) $y$ is a binary variable, (II) I want to control for non monotonic effects of $x1$ and $x_2$ on $y$, and (III) ... |
I am trying to reformulate sampling k values from a uniform distribution with replacement as a problem on deciding whether or not the nth value should be included in the sampled set.
In other words, I have D possible classes, each with equal probability. I want to construct a binary mask such that there are K non-zero ... |
I generally buy and sell weekly as stock prices fluctuate with volatility. I am exploring the idea of using a machine learning algorithm to consider various economic conditions (inputs) and provide insight (output) into whether any given day is a safe day to buy, given market conditions, for a particular stock. Thus I'... |
I've written some MCMC code which I thought worked, but for more complicated functions it breaks down. The MCMC algorithm I am using, uses a simple Metropolis algorithm.
In the code which I will attach below, when I use:
f = @(x1,x2) [1,2]; % A simple function which only spits out [1,2]
Everything converges (i.e. m... |
let say target t
$$t = y(x,w) + e , e \ \sim \ N(e|0,\beta^{-1}) $$
in this case e is Gaussian normal distribution and
is whatever y(x,w) is t will be a normal distribution?
|
The Wikipedia article about the birthday problem explain how to calculate the probability of birthday collision. They're simply telling in the process that the events are independent :
When events are independent of each other, the probability of all of the events occurring is equal to a product of the probabilities o... |
I'm currently (attempting) to help a fellow student with some statistical analysis. Basically she is looking at the effect of a sugar treatment on bacterial growth within a petri dish.
She has three time points of interest and for each time point she has three petri dishes. Within each petri dish, she places two drops ... |
I have a 6100 sample data set (randomly split 60-20-20 between training, validation, and test subsets) with 8-12 features. I'd like to know if I should be concerned about any of the following weird observations as I conduct multivariate linear regression, polynomial regression, and a 3 layer neural network:
Validation... |
I'm looking to identify outliers in a logistic regression model, e.g.
mod1 <- glmer(proportion ~ a*b*c + (1 | ID), family = binomial, weights =
n, data = my_dat)
The model itself converges. However, when I try to determine influence using influence.ME (in order to calculate Cook's and DFBETAS), the operation fail... |
Previously I have created dummy variable to handle categorical variables as independent variable.But now I have a data set where SSN is my independent variable which has more than 1000 unique levels.I'm feeling it won't be good to create dummy variable using such categorical variable. Can you please suggest me some bet... |
Can anyone help with this question..
Consider the process {X(1), X(2), ...} satisfying
$X(t)=αX(t−1)+ε(t)$ for all integers $t≥2$, (1)
where the random variable $X(1)$ satisfies $E(X(1)) = 0$ and has finite variance.
Also suppose that:
(i) For all integers $t ≥ 2$, $ε(t)$ and $(X(t−1),...,X(1))(X(t−1),...,X(1))$ are in... |
Question:
$Z_1$ and $Z_2$ are independent random variables with Normal Distributions.
$E(Z_1)$ = 1 and $V(Z_2)$ = 1; $E(Z_2)$ = 2 and $V(Z_2)$ = 2.
Is there a value of k such that
$k(Z_1 - Z_2 + 1)^2$ exhibits a chi-squared distribution?
My thoughts:
Knowing that $Z_1 ~ N(1,1)$ and that $Z_2 ~ N(2,2)$ we can let $Y = ... |
What is the standard test for checking against potential structural breaks in log return data and realized variance that is used for GARCH modeling?
There appears to be a range of different CUSUM and LM tests available but I cannot seem to figure out which ones are the most commonly used? Or is there perhaps some othe... |
I want to study the effect of 2 drugs (used singly and in combination) compared to a placebo on a disease. What is the best statistical method? Kindly provide full details.
|
I'm currently reading An Introduction to Statistical Learning with Applications in R by Hastie & Tibshirani. In their discussion on the hierarchical clustering algorithm, they note that the notion of 'dissimilarity' between pairs of observations can be extended to pairs of groups of observations using the concept of 'l... |
Does EM-algorithm only work with missing data? If not, what is the idea to assume that we have missing data?
|
I want to be able to run mcmc for high dimensional problems in a manner something like this:
initialise chains from diffuse starting values
run for some time, check if chains are in the right region.
if chains not in correct / same region, adapt proposal distribution and keep sampling.
once chains are in high mass reg... |
How can I find the limiting / asymptotic distribution of
$\sqrt{n}(\hat{\sigma}_{XY}-\sigma_{XY})$,
provided
$\sigma_{XY}=E[(X-\mu_X)(Y-\mu_Y)]$ and $\hat{\sigma}_{XY} = n^{-1}\sum(X_i-\bar{X})(Y_i-\bar{Y})$ by definition?
If this is related to matrix since we talk about joint distribution, I would like to ask you how... |
I have an experiment where two groups of individuals get some variable repeatedly measured at regular intervals. I'd like to know if one group is trending faster or slower than the other (and in what direction).
If I only had two measurements, it would probably make sense to calculate the difference first to last me... |
I have 3 predictor variables A,B,C for ranking the documents . All three variables have positive correlation with ranking which means higher the value of A or B or C, higher the ranking. I am using a simple linear combination like Score=0.2*A+0.3*B+0.5*C, So that Score is always between 0 and 1
All the variables are de... |
Background
I am building an anomaly detection solution. So far I used the simple z-score (#std from mean) approach. The latter implicitly assumes an underlying stationary Gaussian model. However, the data is very sparse and spiky so that model is not very valid and many false positives occur.
The idea
I thought instea... |
I am using XGboost as a learning engine and I am getting a good results with default configurations. Now, I want to improve the predication by tuning the parameters, however, the list of parameters is pretty long. Is there a systematic way to find the best set of parameters? and which parameters could significantly aff... |
I'm applying growth curve modelling and am interested in modelling a three-way interaction between predictors A x B x C.
From what I remember a condition for modelling three-way interactions in regression analyses is to model all underlying related interactions as well (so AxB, AxC, and BxC in order to be allowed to mo... |
Consider that we have two copula families, e.g., Frank and Gumbel. Then suppose that we want to select the best fitting family among them using AIC. Then after selecting the appropriate family, we will estimate its parameter.
That is,
1)- $\text{AIC} =-2\log L (\theta_i)+k,\, i=1,2$
Where $\theta$ contains the param... |
Finding a distribution of the data is a crucial part of my thesis. I have to process this step in R eventhough there are some other tools to get these information in fast.
I made some search to analyze which distribution fits best for the given variable, this instructions guided me a bit.
For instructions: via stackov... |
I have data collected on trees. The nature of the study was hierarchical - we took data on 5 leaves per branch, two branches per tree, and whole tree measurements as well. There were a number of measurements conducted at each level of that hierarchy. So, let's say for example we have leaf area and nitrogen for each ... |
Let's say we have an independent variable X such that
$X=\sum_i^n x_i$
and then we have a covariate matrix $C$
So we will have the following regression model:
$Y=X\beta_1+C\beta_2+\epsilon$
However, what we really want to do is to find $k$ such that for
$X_k=\sum_i^k x_i$
we can get the highest r-square out from
$Y=X_... |
I am looking for a geometric interpretation of CCA. Especially one that relies on the fact we are doing singular value decomposition, which has the geometric interpretation of a rotation, scaling and another rotation. Why taking these two rotations from the SVD of the cross-correlation matrix gives the most correlated ... |
In my generalized linear models class we did a natural logarithm transformation to a linear model in order to adjust its "quadratic characteristics" towards more linear ones.
This raised the question, after one's generated the model using logarithmic response (rather than the original response), can one reverse the log... |
I have an unbalanced dataset that I am working to either up or down sample to balance out. But in the meantime I've run into an interesting error when calculating the AUC in R using pROC::auc when no positive predictions are made.
The test prediction resulted in zero positive cases. It predicted all 0's in my binary re... |
I am trying to measure fuel consumption from OBD data from a car.
I get values for the sum of the product of engine load and airflow for all observations in a trip. I know that fuel consumption is a linear function of this value, but I don't know the coefficients. Let's call this value airload
In this first version I ... |
I am trying to explain the expectation of university graduation among adolescents of a number of countries. My dependent variable is dichotomous, since they formulate their expectation in terms of ‘yes’ or ‘no’. My key independent variables are gender and social origin. In particular, I am interested in the interaction... |
I am trying to make KPI's of a software support organisation performance. We have support requests which are software bugs requiring a new version to be released so the response time towards our customers is quite high (30-45 for most bugs)
We have about 30~40 new support requests per month. Most of these are 'Closed' ... |
What transformation could I perform to reduce the impact of the outliers? The outliers being the spikes for dates that don't have similar sized spikes around them. The worst being around July-7th 2014-- since there is little to no build up to the size of the spike.
|
I am using LIBSVM for regression problem. Based on the codes provides in their FAQ, the grid search is like this:
bestcv = 0;
for log2c = -1:3,
for log2g = -4:1,
cmd = ['-v 5 -c ', num2str(2^log2c), ' -g ', num2str(2^log2g)];
cv = svmtrain(heart_scale_label, heart_scale_inst, cmd);
if (cv >= bestcv),
... |
I have two performance measures in a given experiment that I know to be approximately normally distributed:
$X_1\sim \mathcal{N}\left(\mu_1,\sigma_1^2\right)$
$X_2\sim \mathcal{N}\left(\mu_2,\sigma_2^2\right)$
I am interested in the distribution of the percent difference between these two variables. If I define:
$Y = ... |
Identically distributed implies that each random variable has the same probability distribution as the others.
Independent means that all the random variables are mutually independent. The notion of dependent but identically distributed random variables is used in statistical literature (for example here).
However, i... |
I am trying to find what distribution would fit logarithmic stock returns. I already did a Jarque Bera test with my data and got a p value smaller than .05
library("TTR")
library("tseries")
sign="^GSPC"
start=20150101
end=20160101
x <- getYahooData(sign, start = start, end = end, freq = "daily")
x$logret <- log(x$C... |
I would like to create a random number generator for the normal distribution via using a uniform linear congruential generator (on uniform distribution) and the inversion method.
However, I'm getting stuck at the final state. Please correct my understanding at any point!
Say i have an LCG, which generates numbers from ... |
I'm doing a replication of a study. My main concern is that the study I'm replicating is overestimating the risk of disease progression in higher risk patients who receive contemporary treatment. The study reports the 1- and 5-yr probability of disease progression for these patients. These estimates are calculated by e... |
I'm playing a game with a friend where we first select a random coin from a bag. This coin has a bias $q$ chance of coming up heads and my friend knows what $q$ is when he selects the coin, and tells me "q is (some number)", but may be lying to me. I don't know what $q$ is.
I then choose heads or tails and win if I am ... |
For least squares, multiple regression with standardised (i.e. X-E(X)/VAR(X) ) scores, standard statistical packages (e.g. SPSS, R) will produce a confidence interval for each regression coefficient using the standard error +- t-values for given df and CI.
However, this can lead to the case where the confidence interv... |
Consider a standard OLS regression problem$\newcommand{\Y}{\mathbf Y}\newcommand{\X}{\mathbf X}\newcommand{\B}{\boldsymbol\beta}\DeclareMathOperator*{argmin}{argmin}$: I have matrices $\Y$ and $\X$ and I want to find $\B$ to minimize $$L=\|\Y-\X\B\|^2.$$
The solution is given by $$\hat\B=\argmin_\B\{L\} = (\X^\top\X)^+... |
How do I test to see if the red data influences the blue data? In otherwords, how does the blue data respond to changes in the red data From an eyeball test it looks like it kind of sort of does. How do I quantify this?
|
I am currently conducting a test of stationarity on the Shanghai Stock Exchange (SSE) index.
Clearly when graphing both the ln(SSE) and SSE series, I see an upward trend, which should clearly indicate a violation of stationarity. I conducted an Augmented Dickey Fuller tests on both, and found that in the case of ln(SS... |
On Kaggle, the submitted models are different and better models are expected to yield higher scores. However, these scores are calculated on a blinded test set; they are random variables and their realized values contain errors. Thus, when we rank models based on having higher (or lower) realized values of the scores, ... |
I have fitted several neural networks to some training data using different parameter settings for weight decay, nodes, max iterations etc.
As I dealt with time series data I chose a form of rolling-window cross validation similar to here where accuracy indicated what percentage of test data instances where classified ... |
I'm trying to define a prior from published research. Lets say several studies have collected data and then estimated some statistic $\hat{\theta}$, as well as the statistic's uncertainty $\hat{\mathrm{Var}}\left(\hat{\theta}\right)$. For the sake of the argument, lets say there were 3 published studies, so
$$
\hat{... |
I am fitting a GAM to data of capture success using the mgcv package in R. Given that I have a value of capture success for each of 58 different trapping sites from 2005 to 2014, I have 58 observations in my dataset.
The independent variables are proportions of land cover types.
I logit-transformed the proportion of a... |
I am following Pattern recognition and machine learning by Byshop and I was trying to derive myself the predictive distribution resulting from a new data point. For the sake of clarity I post the piece of text in question:
where $w$ are the parameters of the model treated as a random variable since we are in the Baye... |
I would like to apply MANOVA analysis and I have 8 dependable variables. The variables measure different features in different scales - e.g,
velocity (30-100 kmh), curve (angles 10-60) and distance (10-50 meters).
Can I apply MANOVA on these variables? Or do I need to use some kind of standardization to bring them all... |
I have two groups of samples.
Control group and treatment group, treatment group gets a special training.
This training will cost me $X$ dollars per person. This training is supposedly reduce the problems/cost of the trainees down the line. Will evaluate the cost at different periods of time (3 month, 1 year ect.)
Woul... |
I am trying to use gbm to model a 21 year time series (n=1800 over the whole dataset) to understand an increase in my response variable over time. I have ~ 35 predictor variables which are made up of environmental variables (that also change with time; such as temperature, nitrogen, etc) and site (or dataset) specific... |
I want to compare two empirical distributions of words in two different texts to see if they are reasonably similar. So for each text I perform the usual steps like stopword removal and stemming, and then count word occurences in both texts to acquire the two discrete distributions.
For getting the same region for bot... |
I'm taking a dummy data of temperature vs Ice cream Sales and categorized it using K Means (n clusters = 2) to distinguish 2 categories (totally dummy).
Now I'm doing a Principal Component Analysis on this data and my goal is to understand what I see. I know that PCA objective is to reduce dimensionality (obviously n... |
I have a list of random variables, $X_1$, $X_2$, ..., $X_N$, associated with binary random variables $A_i$ such that $P(A_i) = \pi$ is known. I also know that, for all $i$
$$X_i|A_i\sim f(x)\\
X_i|\bar A_i\sim g(x)$$
where $f$ and $g$ are known, and thus the distribution of the $X_i$ is a mixture given by
$$p(x) = \pi\... |
As this paper describes, the probability of committing a type 1 error increases with more hypothesis tests on the same data, such that if we have a test-wise alpha for each hypothesis test, the probability of committing a type 1 error is:
$1 - (1-\alpha)^C$, if we have a family of C tests.
My only question is: why do... |
I have samples from many related binomial distributions. In the case where I have only hundreds of samples, some of the sample sizes are also in the hundreds. In the case where I only have dozens of samples, most of the sample sizes are in the thousands. Each sample shows an $\bar{x}_i$ as an estimate of $p_i$.
I accep... |
In some places 100 km races stop to count time if a certain time limit has been passed, for example 15 hours. It is difficult, respective, not possible to distinguish which finisher or site was affected by the limit. If I want compare groups, for example, gender or nationality, how I have to cope with that? One idea I... |
I'm trying to programmatically create a histogram. The number of bins is specified by the user. My issue in this problem is that I came up with what I thought was a reasonable way to determine which bin a value goes into. I first came up with:
$binNum=\lfloor \frac{value \cdot range}{numBins} \rfloor$
Where value is... |
I know there's a similar post about this, but I believe my question is a bit different.
In my textbook the author rewrites
$-2(\hat{\beta}_1-\beta_1)\sum u_i (x_i-\bar{x})$
into
$-2(\hat{\beta}_1-\beta_1)^2\sum (x_i-\bar{x})^2$
He doesn't use any expectation or variance operator.
If you don't want to go through my whol... |
Scenario:
Consider the use of bootstrapping to estimate the distribution of model parameters fitted per a linear or nonlinear generalized least squares model. In particular, assume there is a covariance matrix $C$ of the errors, which may not even be diagonal, so errors may be neither independent nor identically distr... |
Suppose I have two populations, A and B, observed counts of whether population members are in one of two classes:
popA popB
class 0 100 1
class 1 200 99
I'd like to have an measure of how likely it is that these populations are different. The Fisher Exact Test seems like one good answer. However, its... |
In machine learning, I've heard a lot of references to the "Bayesian Approach" or a "Bayesian Model." I found this question and it seems to suggest that a Bayesian Model, very broadly speaking, attempts to estimate a posterior probability distribution from a data set, given a prior. But isn't that what machine learning... |
Disclaimer: Although the Partial Dependence Plot derives from a textbook, and the method in question is mentioned in an exercise, I'm not trying to solve this for a class or homework assignment. I'm trying to develop code for computing of this plots for a real world problem in my company. Regardless, added the self-stu... |
I am looking into whether fuel economy standards in the US (Wiki)
have an influence on the footprint of a car (footprint is the area between the four wheels).
The fuel economy standard depends on the footprint of a car, the larger the footprint, the lower the fuel economy target (Be aware, that fuel economy is defined ... |
I’m working with a really messy dataset. My dependent variables consist of Likert-scale responses that are judging a person’s speech (how annoying it sounds, how intelligent it sounds, etc). My independent variables mostly consist of the demographic/social data of the participants.
It has been suggested that a lot of ... |
When reading some deep learning papers, which sometimes mentioned that max-pooling layer for downsampling can also be used for increasing the number of feature channels(maps). This confused me a lot. It looks to me the max-pooling layer can down sample the size, but should keep the number of original feature maps.
|
I am analyzing resource selection in a wildlife species using discrete choice analysis. I have 'used' points (i.e. roosting/den sites) and paired random, available but unused points for comparison. We are comparing use/non-use at three spatial scales around the focal point (buffered circles in ArcGIS) and looking at se... |
I am looking at proportion of two kinds of T cells cells within a population of many T cells. Now, I can see that there is a difference between the two groups in proliferation between one time point and the next one (e.g. if group 1 accounts for 1% of the cells before on day 0, and group 2 accounts for 2%, on day 3, af... |
I am implementing a k-nearest neighbors KNN algorithm for a very simple question to see how it works. In textbooks it is mentioned like this:
Suppose we have generated $10$ at random with $Y = \sin(4*X) + \epsilon$ with $X \sim \mathcal{U}(0,1)$ and $\epsilon \sim \mathcal{N}(0,1/3)$. Now a test set includes
$X.TEST =... |
I am having some trouble understanding how to derive the expectation of white noise.
Assuming we have $W(x)$ which is a continuous white noise process with zero mean and unit variance, Thus
$$cov\big(W(x),W(x^{'})\big)=\delta_{xx^{'}}$$
Where $\delta$ is the Dirac Delta function defined as
$$+\infty \ ,x=x^{'} $$
$$0... |
This question is about SCDE:
http://hms-dbmi.github.io/scde/
Specifically, it is about the third equation on page 5 of the SCDE paper, which reads
$$p_S(x) = E\left[\prod_{c\in B} p(x|r_c, \Omega_c)\right]$$.
SCDE deals with single-cell RNA sequencing data, and $\Omega_c$ is a cell-specific error model while $r_c$ is t... |
The model is linear $y_i = a\cdot x_i + b + e_i,~ i = 1,2,\ldots,N $. It is given that the noise is heavy tailed. However the distribution of noise conditional on $x$ is the same for all data points. My question is that how should I model the data generating process? Should I use a Student-t distribution for the noise... |
I came across the following question and am wondering if there's a simple way to cook up a distribution achieving the Chebyshev lower bound:
Suppose $X$ has $\mu_X = \sigma^2_X = 9$. Define the lower bound for
$$\mathbb{P}[3 \leq X \leq 15]$$
Chebyshev tells us the answer is $\frac34$.
Can we come up with a specific di... |
What RL does actually update in order to reach always a desired output? Is it true that the inputs (or the Agent actions) have to be re-updated whenever an RL reaches a bad output (or decision) based on a reward system?
|
I recently took a HackerRank test for a Data Science position and got this question wrong. I came to 1/200. Here's how:
There are 50 combinations that will make this true. (i.e. {1,2},{2,4},{3,6}...{50,100}). Probability of a specific number being chosen is 1/100. Probability that the specific set will be chosen is (1... |
A popular method to estimate in project management is the 3 point estimation plus the PERT formula
If I use it for example to estimate how many stories my team is going to be able to complete Sprint over Sprint, I can start by saying that:
Min number of stories: 10
Most likely number of stories: 20
Max number of sto... |
Suppose that 5% of all Olympic athletes use performance-enhancing drugs. Because drug use is a serious violation of Olympic rules, the International Olympic Committee has implemented random drug tests. Assume that the test will report positive with probability 0.8 if the athlete uses drugs, and with probability 0.2 if ... |
Given X with uniform distribution in the interval [μ,μ+θ].
Suppose θ is given. Find the posterior distribution with prior distribution on your own.
From that, find the Bayesian estimator with quadratic loss function.
If θ is not given, how to find μ.
Actually, this is a tough question in my last exam and I don't kno... |
I'm interested in applying several different types of regularization to neural nets and want to make sure I haven't learned the material incorrectly. I have successfully coded Weight Decay and Dropout, among others; in the case of Dropout it was a simple matter of setting a flag on a randomly selected set of connection... |
I recently took a HackerRank test for a Data Science position and got the following question wrong:
A casino has 10 slot machines. Eight of them are "Wheel of Fortune" themed, and two are "Jeopardy" themed. However, you do not know which machines are which. A "Wheel of Fortune" slot machine wins on 20% of spins which ... |
I have 2 groups of patients who did not do lose enough weight after their lap band procedure so they went on to either have a gastric sleeve resection (S) or a more aggressive roux-en-y surgery (R).
I have their initial weights (weight_i), the weight after the 1st surgery and before the 2nd surgery (weight_pre) and the... |
I have a multivariate time series data originating from 200 sensors of a power plant. The task is to predict the next failure, i.e., after what time the failure is going to occur. There are different types and areas where failure can occur.
Example Data: Maintenance
Start,Finish,Area,Plant
2013-01-01 11:54:00,2013-01-... |
I am going to implement Random forest probabilistic classification using R. Earlier my code was as follows:
data(iris)
attach(iris)
# alternatively the traditional interface:
x <- subset(iris, select = -Species)
y <- Species
library(randomForest)
model = m.rf = randomForest(Species ~ ., data = iris, ntr... |
A book I'm reading (Hogan & Mason, 2012, p37) contains the following passage:
The joint distribution can be factored in two different ways into
conditional and marginal probabilities that reveal different aspects
of forecast quality. The calibration-refinement factorization is given by
$p\left ( \hat{x},x \right... |
I've looked at a couple other questions here and here and here. So far, I understand that class imbalance is often a cause of this and when you have such a case, you can upsample/downsample or integrate a cost function to weight your preferences for different types of classification error. I also understand that you ca... |
A fundamental question here. We know that:
$F_{X|Y} = \frac{F_{XY}}{F_Y}$
Both $F_{XY}$ and $F_Y$ are bounded between 0 and 1. I guess my question is, is it theoretically possible for the joint cumulative frequency of variables $X$ and $Y$ to be greater than the cumulative frequency of $Y$?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.