instruction stringlengths 9 38.7k |
|---|
Based on visualized decision boundaries, we have to decide what kind of classifier has generated it. One example is shown in the image below - this is from a quadratic kernel Support Vector Machine (SVM), i.e. $K(x,y) = (x^T*y+c)^2$. I know what a quadratic function looks like in two dimensions, but want to understand ... |
So suppose I have some random function distributed as a Gaussian process on say, the interval $[0,1]$ with mean function $\mu$ and covariance function $\Lambda$. When is there a nice formula for the probability that the $\arg \max$ of the random function lies in some sub-interval $[a,b]$? Obviously there are trivial ca... |
I have a dataset with EMG activations for 8 muscles for several different kinds of movements (squat, deadlift, bench-press, etc.) The data has been labelled and segmented into single reps, with each "rep" representing an 8x~100 matrix. (data sampled at 40Hz, 2.5 seconds per rep = approx. 100 samples).
Planning to tra... |
Training a model on a few megabytes of data is taking longer than I expected. How are people training models on datasets that go into the gigabytes and petabytes?
Are there any good resources for learning how to do these practices?
I'm currently working in a Jupyter Notebook and doing some machine learning with scikit-... |
I’m sure this is an idiotic question, but I’m having difficulty with an assignment and hoping somene can help.
I’m not a Stats student but am using SPSS for a research project.
I am comparing 5 Year returns (2012 to 2016) of two Portfolios of stocks.
The portfolios get re balanced every year (from a market Index) , an... |
I have a more theoretical question about LDA (Latent Dirichet Allocation).
When doing LDA we provide number of topics ourselves. As far as I understand it tries to build topic-word-document distributions to minimize perplexity (which is why we are doing it in iterative manner).
So the question - can we fit the LDA seve... |
I have a dataset with 53k samples and 12 predictors, divided in this way:
15k - Group 1
10k - Group 2
8k - Group 3
7k - Group 4
4k - Group 5
4k - Group 6
2k - Group 7
2k - Group 8
1k - Group 9
1k - Group 10
The dependent variable is binary (0/1) and the groups are in decreasing order of likelihood of Y=1, basically. ... |
I have asked this question without success earlier, perhaps it was not really clear what I was looking for. Here is a clearer explanation, hopefully clear enough to get some help!
My data has 378 entries where each row represents the shared score for two individuals playing a game. For example, on row one, the two pl... |
I've used neural nets to learn a trajectory and the learned model is giving 'fairly reasonable' prediction when compared to my test data.
My question is on evaluating this model. I've seen Mean Squared Error (MSE) and Mean Absolute Error (MAE) as metrics for evaluating regression model performance. My concern is that ... |
Let
$$\mathbf{y} =\mathbf{A}\mathbf{x} + \mathbf{\eta} $$
where $\mathbf{\eta}$ is a vector of samples of white, zero-mean Gaussian noise. I want to estimate $\mathbf{x}$ (which is deterministic) given $\mathbf{y}$ using the least-squares method.
If the problem has a unique solution, then the estimator $\mathbf{\hat{x... |
Define a basic sort algorithm for 5 distinct numbers as 1 that selects a random element $x$ among the 5 numbers and compares it to the other numbers. The algorithm then divides the remaining elements into 2 groups $A$ and $B$, where the elements of $A$ are less than $x$ and the elements of $B$ are greater than $x$. The... |
I have data that looks like the following
>df
id response Factor Count1 Count2
1 0 A 6 1
1 0 B 5 2
1 0 C 4 3
2 1 A 3 4
2 1 C 2 ... |
I have 1000 individuals with measurements of plasmatic HDL levels over the last 15 years. The number of measurements per individual ranges from 1 to 15, and were not taken in the same dates. I would like to compare the HDL levels (quantitative trait) over time in the individuals and make a ranking of those individuals ... |
I am graphing a contour plot of MVN density using Python. The code is copied below but my question can be answered without reading the code.
import numpy as np
from scipy.stats import multivariate_normal as mvn
import matplotlib.pyplot as plt
D = 2
x = np.random.rand(D)
mu = np.random.rand(D)
A = np.random.rand(D,D)
#... |
Let $X_1, X_2....$ be independent exponential(1) distributed variables. Let $N=min[n: X_n>1]$ which I think is the random variable for the minimum number of RVs $X_i$ before getting a value greater than 1. The questions are:
Find $P(X_N>3|N=3)$
and
Find $E(X_N)$
For the first item, I interpreted it is find the probabil... |
I'm currently undertaking research creating cut-off scores using ROC curves. I have encountered some confusion regarding the outcome variable. My outcome variable can range in score from 10-50, and we are using a cut-off previously established of 20 to say whether the outcome is present or not in the individual.
Is it... |
First post so please be gentle...
I am modelling events, be it default, pay, close etc., using regularized regression. I am using spline variables for time etc. Overall the model appears pretty accurate. The problem is, no matter how many knots and splines, I am struggling to accurately capture an initial steep peak an... |
I'm currently reading Maths and Stats for Web Analytics and Conversion Optimisation by Himanshu Sharma and noticed the following regarding regression analysis:
"If there is no or weak linear relationship between two variables or in other words the correlation between the two variables is zero or weak then this relation... |
Suppose the joint pdf of $x,y$ is given by $f(x,y)=\frac{1}{2\pi\sqrt{1-p^2}}e^{-\frac{x^2+y^2-2pxy}{2(1-p^2)}}$ $-\infty<x,y<\infty$
What is $E(Y|X=1)$?
I tried substituting $X=1$ so:
$$f(1,y)=\frac{1}{2\pi\sqrt{1-p^2}}e^{-\frac{1+y^2-2py}{2(1-p^2)}}$$
for :$-\infty<y<\infty$
But $\int_{-\infty}^{\infty}yf(1,y)$ does ... |
For the neural network depicted below, I want to calculate the Error with respect to $w_{tied}$, which we get if we tie the weights $w_1$ and $w_4$ together. Tying the weights together would help to reduce overfitting, since we reduce the number of parameters. The hidden units $h_1,h_2$ are logistic, the output neuron ... |
I have multiplied together two means and now want to calculate the overall standard deviation. The two means and standard deviation are here: 13.7 +/- 12.7 (1SD) and 4.0 +/- 2.6 (1SD). So the answer would be 55.11 with what overall standard deviation?
I then want to multiply this answer of 55.1 by 92. There is no stan... |
I am having a hard time trying to make/pick a prediction model in R.
The data: I have information on 40 different players, with all their recorded performances(training loads) over the last season. These instances are not evenly spaced over time, and each instance has 24 variables:
1 column with player-id's
1 column ... |
+-------------+---------+
| Group | Anxiety |
+-------------+---------+
| Picture | 30 |
| Picture | 35 |
| Picture | 45 |
| Picture | 40 |
| Picture | 50 |
| Picture | 35 |
| Picture | 55 |
| Picture | 25 |
| Picture | 30 |
| Pictur... |
Suppose I have a linear mixed model with three binary factors A, B, C.
The main effects are all significant but only the interaction A*B is significant, none of the interactions including C is significant.
I then do post-hoc pairwise t-tests with Bonferroni correction.
These pairwise tests reveal that the influence of ... |
Given: Two continuous multivariate probability distributions, expressed as mixture models (possibly, but not necessarily, Gaussian Mixture Models)
Desired Output: The Hellinger Distance between the two probability distributions. The probability distributions then to be used to generate data streams.
Constraints: I woul... |
I saw this chart on the BBC today:
I would like to create a similar chart, but i do not know what the chart is called to learn how to build this in R.
|
I would like to solve the following task as an exercise: Given is the data in the image below. Each output $Y_j$ of the network is defined as:
$(*)$ $Y_j = \sum_{i}^N w_{ij}* exp(-\frac{||x-\mu_i||^2}{2\sigma_i^2})$
for the -ith neuron. The task is to draw an RBF network that perfectly classifies the data, with suitab... |
I am currently reading the Lawrence 2005 paper "Probabilistic non-linear Principal Component Analysis with Gaussian Process Latent Variable Models" available here. However I am failing to see how the integral in Equation 2 is evaluated in closed form.
The integral in question is a marginalisation over latent variables ... |
I am analysing multiple Likert Style statements with an Ordinal Logistic Regression. I have many different factors that I am taking into account, from job to research area to location.
I read that it is good practise to put results in a table, with the coefficient, CIs and the P-Value. However I do not want the reams o... |
I am working on ARMA+GARCH and wonder what the correct notation for a fitted model is. For example, my model is a jointly estimated AR(1)-GARCH(1,1) model with
mean equation
$$
r_t = 0.034 r_{t-1} + 0.0075 + a_t
$$
and volatility equation
$$
\sigma_t^2 = 0.0000794 + 0.122 a_{t-1}^2 + 0.855 \sigma_{t-1}^2.
$$
Should ... |
The question is in the title: In both cases I use $R^2$ and chi-square to test if a fit/model is good enough. Up to now I only know that $R^2$ is used for models (?) and chi-square for fits/functions (?). Is this true? And how exactly do they differ?
|
I have three variables X (IV), Y (DV) and Z, where there is a significant association between X and Z and, as well as Z and Y, but not between X and Y.
X is a categorical variables with 2 levels
Y is a ordinal variabel
Z is a ordinal variable
I have used both ordinal regression and non-parametric tests (Mann-Whitney... |
The MaxEnt distribution of $x\in[0,\infty)$ with given mean is the exponential. The MaxEnt distribution of $x \in (-\infty,\infty)$ with given mean and variance is the Gaussian. Is there a MaxEnt distribution of $x \in (-\infty,\infty)$, when only the mean is given?
Update: Without loss of generality, the mean $\mu = 0... |
The MaxEnt distribution of $x \in (-\infty,\infty)$ with given mean and variance is the Gaussian. What happens when the mean is unknown? What is the MaxEnt distribution of $x\in(-\infty,\infty)$ with given variance (but unknown mean)?
|
This may have been asked before, in which case, apologies.
Say I know my posterior density $\pi(\theta|x)$ where $\theta,\,x\in \mathbb{R}$ and now have $iid$ data $\mathbf{x}=(x_{i})_{i=1}^{N}$, is the following appropriate for $\pi(\theta|\textbf{x})$:
$$
\pi(\theta|\textbf{x}) = \frac{\pi(\theta)\Pi_{i=1}^{N}p(x_{i}... |
I find that maxout activation is not so used in state of the art deep convolutional networks, at least for image classification (e.g. VGG networks, ResNet); is this correct? If so, is there a specific reason for that?
Using maxout increases the model size compared to ReLU, then I assume it does not always lead to accur... |
Writes Pesaran (1974): Consider a model with $k-1$ regressors and the same model with an extra regressor. Then it can easily be seen that
$\bar{R}_{k}^{2} - \bar{R}_{k-1}^{2} = \frac{1 - \bar{R}_{k}^{2}}{n-k+1} \left( \hat{t}_{k}^{2} - 1 \right)$
where $\bar{R}_{k}^{2}$ and $\bar{R}_{k-1}^{2}$ denote the adjusted mult... |
I have medical data with max value 500 along with values like age and binary values for sex (0 or 1).
I will use clustering to find the number of clusters.
Which is the best approach among three.Normalize each coloumn,standardize with z scores or do nothing.
For z-scores i heard that he data should be a normal distri... |
What is the practical difference between Wasserstein metric and Kullback-Leibler divergence? Wasserstein metric is also referred to as Earth mover's distance.
From Wikipedia:
Wasserstein (or Vaserstein) metric is a distance function defined between probability distributions on a given metric space M.
and
Kullback–Le... |
I am very familiar with logistic regression. I have used logistic regression with data sets in which each set up independent variables has a binary (1 or 0) dependent variable. However, I have found much discussion of logistic regression as an alternative to a Cochran-Mantel-Haenszel (CMH) test. The CMH test takes 2x2x... |
I am new to Python and statistics. After exploring my car parking data I came up with below trend graph and I want design PDF function which will predict/generate a graph similar to that. My data has two columns "Hour" and "Number of Parking spaces" at that specific "Hour". I have got below graph by taking median numbe... |
This question was taken from "The Elements of Statistical Learning" by Friedman, Hastie and Tibshirani (question 7.10)
Consider a scenario with N = 20 samples in two equal-sized classes, and p = 500 quantitative predictors that are independent of the class labels. The true error rate of any classifier is 50%. Consider ... |
I have a data set studying the difference pollen production among eight varities. The experiment was carried out in two locations, and pollen was collected and weighted once per week. The experiment lasted for four months, resulting in a repeated measurement data set.
To analyse which varieties has higher pollen produ... |
The typical approach in approximate Bayesian computation (ABC) is to propose parameters from the prior, simulate data $\chi'_\text{sim}$ and then accept data that minimises the data misfit $\lambda$ with the observed data set $\chi'_\text{data}$:
$$\lambda = g\{\eta(\chi'_\text{sim}),\eta(\chi'_\text{data})\}$$
where $... |
I hope this question benefits the site as well as myself. Thanks ahead for your time.
So I work for a company that sells (among a lot of things) personalized items specifically for Easter - stuffed bunnies made of cloth with a child's name on it, colored Easter baskets with personalization, etc.
Perhaps Obviously Easte... |
I 'm trying to use a batch gradient descent algorithm to do linear regression on a large dataset- I load up as much data as my computer can handle, do a partial fit, print out some diagnostics to a CSV, and repeat
python pseudocode
m_scaler = sklearn.preprocessing.StandardScaler()
m_data = <3600*100*24*9 samples, with ... |
I am trying to forecast volatility out-of-sample using ARCH, GARCH, GJR and EGARCH. I used AIC to identify the ARMA and ARCH order and decided to stick with (1,1) for GARCH-type models. However, I have situation where my mean equation is either insignificant and/or non-invertible and non-stationary. The insignificance... |
I am performing a hyperparameter grid search for a GBM classifier in H2O, running version 3.10.4.8 (on top of python 3.5.3). This is a multiclass problem (~40 classes).
As a first test, I tried a small grid of parameters, to study the effect of the learning rate, [0.01, 0.05, 0.1], and max depth, [5, 7, 10]. In this ex... |
I'm doing two class classification. I have a special dataset with most negative cases (absence of an object I want to classify) and a few positive cases (presence of an object). Since I have only less than 100 positive cases for training and validation, I downloaded some images(around 450) from Flickr and used them for... |
This is my first question, so bear with me (and feel free to edit my code or ask for additional info). I am working with a longitudinal dataset compiled from surveys of veterans using opioids. Data were collected from 230 participants at baseline and in 24 monthly followups. There is, as expected, a lot of missing data... |
I am interested in Freeman's coefficient of differentiation (theta) because it appears to be one of the few measures of effect size for an association between an ordinal variable and a nominal variable.
The statistic is mentioned in a fair number of articles, e.g. Agresti, 1981 (below) and is listed in the top ranked ... |
I'm working on Imbalance Classification problem with minority class(0.017%).
I've read that imbalance classification can be handled using Undersampling, Oversampling and SMOTE.
Major drawback of Undersampling is we ignore lot of information and the results with SMOTE are slightly better.
But my questions are
SMOTE al... |
The following data frame df contains observations on two different measures of muscle strength (VAR_1 and VAR_2) from 24 males and 16 females. Both variables present a fairly linear relationship:
library("ggplot2")
ggplot(df, aes(x = VAR_1, y = VAR_2)) +
geom_point() +
geom_smooth(method = "lm", color = "black")
... |
My problem: I have to optimize a newsletter with offers products in an online shop. I have 1,000,000 addresses and two quite similar newsletters that have to be compared. I have read about Chi square and G-test, but what data I have to use?
Sending a newsletter I can count the opening of the mail, the clicking, buying,... |
I'm doing a study where I'm comparing patients who are alive+event-free after 10 years of follow-up ('healthy survivors') compared to those who are not, using logistic regression to describe determinants of these healthy survivors.
It makes sense that age at baseline is a major determinant that decides how big your odd... |
Let's say that there were 1,000 customers who had primarily transacted at a branch prior to the branch's announced closure. Among this cohort, 40 customers closed their accounts with the bank the month following closure, and another 20 customers closed their accounts with the bank two months following closure. If I wan... |
I want to train a deep neural net (MLP) to classify vectors and I have a huge dataset with continuous high-dimensional input. While going through my dataset, I observed some recurrent patterns.
So my question is, if I already know that vector $x$ will be seen 50000 times for example in my dataset, is there a way to use... |
For a training data set (60 positive class samples and 40 negative class samples) of SVM learning algorithm. Are the two oversampling methods the same?
(1) bootstrapping 40 negative samples into 60.
(2) bootstrapping both classes into 500 samples.
This question seems similar to existing questions. But it is not. I ... |
I am working with a MRI dataset where we inject dye into a person's wrist and measure intensity per time on a voxel-by-voxel basis. I am trying to determine if it is possible to identify certain tissues based upon their curve similarity (they have unique looking intensity curves).
I am using Euclidean distance k-means... |
I am trying to understand the difference between a model where a latent variable is regressed on some outcome versus an interaction of the measures of the latent variable being regress on the same outcome.
Factor analysis assumes we have a latent factor X that produces several measures Z. We can factor analyze a set of... |
Consider this made-up data
require(ggplot2)
require(pscl)
require(visreg)
set.seed(23)
y = c(1005,987,784,1487,0,13,1340,451,0,784,0,451,0,0,123,754, 0, 320,0,12,0,0,87,0,0,0)
d = data.frame(
y = y,
x = 1:length(y) + runif(length(y),0,2)
)
ggplot(d, aes(y=y,x=x)) + geom_point() + geom_smooth(method='lm')
I a... |
My question is pretty straightforward.
Does overdispersion mean anything when doing model selection and multi model inferences?
I understand that overdispersion affects the estimation of standard errors, and in consequence, CI and p-values. But if I am bypassing classical inference, and performing a model selection ba... |
I have a data set on counts of amphibians in buckets around a pond, which I have detailed in a previous post:
Circular statistics for discrete, irregular sector data
To conduct a test of circular uniformity, I have followed the recommendation of Pewsey et al. (2013), who suggested using "parametric bootstrapping" to ca... |
I am currently trying to go through the "Understanding Machine Learning: From Theory to Algorithms" book. The book is heavy on the maths and I get a bit confused by the notation sometimes but I am making slow progress.
There is a section on overfitting and the authors illustrate it with this example.
Attached is the se... |
I'm trying to perform a t-test on some paired data. The data values are not meant to be interpreted directly, they are actually the indices of ranges of values. For example:
The ranges might be: 1-3, 4-6, 7-9
And the ranges would be represented by: 1, 2, 3
Is it statistically valid to use the range indices (1, 2, 3) ra... |
I'm working on cancer mutation analysis from system perspective and ran across a statistical problem. My research subject is "network motif" in cancer. In my case, there are 53 different motifs and each of them has two kinds of mutations (i.e. pathogenic or neutral) with a normalized count.
Example:
Row names are mot... |
I have an experiment in which there are 13 treatment groups and the relevant outcome is binary. I'm trying to apply the test of proportion to determine the required sample size to be able to detect the minimum detectable effect (MDE). Here are the issues;
I don't expect the MDE to be uniform across treatment groups. F... |
I have a (very large) data set that I'd like to set up a categorization algorithm for.
The data has the following form:
x: Associative array of data in the form [{key: String, r: Number}]
y: ID code (String) -> **Intended output code**
z: score from experimental testing (Number)
I'd really like to be able to pump al... |
I have just finished reading a medical paper that claims to have developed a predictive model but reported ROC alone without a calibration curve.
ROC seems to be useful for cases of binary diagnosis, which is quite different from prediction.
I understand that a model with good concordance can be calibrated, but cal... |
Trying to help a friend out who has no idea about statistics but who has to compare a few samples for a medical paper.
So we have 6 different types of fingers which underwent 3 different treatments. There are 42 fingers in total which were assigned to these treatments randomly, so n for every combination is between 1 a... |
I am trying to find a theoretical approach to find patterns using a data set plotted on a graph. Below is the sample image of how the data looks on a plot.
I am wondering if there is an intuitive way by using coordinates to find if the set of points depict any specific patters like curve or circle or `line'?
Any sugge... |
Reproducing kernel Hilbert spaces (RKHS) (see here or here) seem to involve conic combinations of "kernel functions" (my understanding is very crude). (See pp. 34-35 of Behrends, unfortunately the only version is in German; let me know if you find a better reference.)
Meanwhile, mixtures of (continuous) probability dis... |
Suppose that you have a bunch of states $A,B,C,D$ at time $t_1$ and a bunch of states $A,B,C,D$ at time $t_2$. How would you create a transition matrix in R to represent the probability of changing from various states across $t_1$ to $t_2$?
In a previous question, a package called markovchain is mentioned. But in th... |
I am trying to do MLE estimation for a Ornstein-Uhlenbeck process as described in this document
My data consists of daily prices spanning two years. I'll include a plot of the data at the bottom of this question.
The problem I'm having is that depending on the scale I use for the time interval, I get ridiculously diffe... |
I have results of 2 multiple linear regression models, one with log of dependent variable and other with the original variable. I notice the change in significance and goodness of fit. Why is that?
Wit y:
Call:
lm(formula = (Duration_CS.x.x) ~ gap.s_lcf + acc_pedal_pos_EF +
expr_lt1 + speed.kph.ED_lcf, data = ds... |
I'm working with a response variable with a poisson distribution and also with a mixed factor, therefore I'm using the glmer library for generalized linear mixed models.
There are 3 explanatory variables: A(two levels), B (3 levels) and C(2 levels). After running the model, it showed that the 3-way interaction (ABC) wa... |
I have a data set of tree diameters that do not include any measurements below a 7.5 due to the difficulty in identifying species when they are small. I want to run a Weibull regression that returns the parameters Shape & Scale that correspond to the forest stand rather than my truncated sample. For illustration purpos... |
I understand conditional probability whereby I can use known or unknown variables. In terms of the variables from this question, for instance, I can safely get the favourable probability by using the formula
$$
P (a,b|c) = P (a∣c,b)P(c∣b)
$$
Where
event a = goals conceded so far by a team
event b = goals scored so far... |
I am training a model to classify the traffic signs with CNN.
1. Training data: 32x32 photo of traffic signs
2. preprocess:
Calculate the train_mean and train_std with all the training data. Then
nor_x = (x - train_mean)/train_std
3. Training CNN model with nor_x.
4. Validating the model. Here is a strange thi... |
There are multiple resources and answers on type of imputations and packages that can help in imputing the missing values or how to use a particular package. But there are little to no resources available on how to impute a dataset. On searching, one can find threads related to this question, but don't exactly answer t... |
A unknown function defines a region in 2D. Each variable is constrained to [0,1] interval. Function returns 1 if the co-ordinates in 2D belong to the region else returns 0. How do I calculate the area of the region?
|
My question is what is the effect of assigning weights to observations when training a Classifier such as a Logistic Regression model.
The glm function documentation in R for example states:
Non-null weights can be used to indicate that different observations
have different dispersions (with the values in weights b... |
I've read that the KS-test is biased when the pdf parameters are estimated from the same data source. This post on Cross Validated lead me to the paper which has a workaround using synthetic datasets. I've been implementing this for a Weibull distribution in matlab (as part of my master's thesis) and would like to veri... |
I've been testing dlm and KFAS packages in R to produce simulated versions of a time series. When the model is simple (say a trend and possibly a seasonal components), the simulations conditional on the observations seem to produce paths different (though apparently similar in structure) to the original time series. Ho... |
This question refers to the YOLO architecture (figure 3).
In their architecture they define a convolutional layer 7x7x64-s-2 followed by a maxpool layer 2x2-s-2. These transform an input of 448x448x3 into a tensor of 112x112x192, using a kernel of 7x7 in the convolutional layer.
Can someone please clarify this notati... |
Wikipedia states that the PDFs for the Gamma distribution is:
$$
f(x|\alpha,\beta) = \frac{\beta^\alpha}{\Gamma(\alpha)}x^{\alpha-1}\exp(-\beta x)
$$
However, in Rasmussen 2000, the pdf for the Gamma distribution is specified as:
$$
p(r) \tilde{} \mathcal{G}(1,\sigma_y^{-2}) \propto r^{-\frac{1}{2}}\exp\Big(-\frac{r}{2... |
Would it be correct to say that:
Physics-based, domain specific models are more widely used and are more practical in (longer term) weather forecasts than pure machine learning approaches
The reason for the above is that the world, i.e. the population we are dealing with, is always changing; a model that works very we... |
I understand there have been a lot of answers on combining predictions, but I cannot seem to find anything that answers all of my questions.
I have 5 regions of the heart to test, and each region can be described on a 1-5 scale (normal = 1 abnormal = 5). Each test I apply tells me, with around 70% \pm 40% confidence (... |
Suppose I have specifically a single observation $x$ which I believe comes from a Poisson distribution. Could I estimate a 95% confidence interval for the true mean as $\sigma * \sqrt{x}$ with $\sigma = 1.96$?
In other words, if I observe a count of $x=10$, can I estimate a 95% confidence interval as $x \pm \sigma * \s... |
I have a simple question. I have a vector that has only 0/1 values.
I want to count the number of sequences that are larger than some number. For example, find out how many times I have a run of three ones (1,1,1) or more.
Any smart idea how to do that?
Thank you,
Nitzan.
|
I need to ascertain what features drive users to submit more bids for items in my auction website.
I have a dataset where # of bids is the dependent variable, and there's several measurements of features in other columns. Some of these columns would be highly correlated to driving # of bids.
I'm planning on running a ... |
I'm performing a Genome Wide Selection Screening on a panel of 7 cattle breeds genotyped by a 770k Illumina SNP array. The method is based on an Ohta statistic (D'^2is) which measures the between-population LD component: high levels of this statistic suggest that dispersive selection may have occured on a given genomic... |
Simple question: Can we generally think of the loss function as the negative of the likelihood function?
For instance with regards to logistic regression, the likelihood function in a binary setting is
$\sum_i y^{i}\log(h(x^i))+\log(1-y^i)(1-h(x^i))$
while the loss function is
$- \Big[\sum_i y^{i}\log(h(x^i))+\log(1-... |
I am trying to analyze data using Principal Coordinates Analysis (Classical Multidimensional Scaling (CMDS)) in R. I've tried some different ways (i.e., pcoa {ape}, cmdscale, capscale {vegan}).
I've found that the results are the same and the plots look fine. But, I need some numbers saying how much does every original... |
Using the rpart library, I'm trying to predict which class each observation belongs to. Here is a reproducible example explaining the steps I am taking:
library(rpart)
# training set
df_train <- data.frame(
tag = c('123', '123', '124', '124', '125'),
p1 = c('home', 'work', 'work', 'work', 'home'),
p2 = c(1, 1, 1... |
My question is a relatively basic one. Say I have some sort of a model which appears to fit my data well, how confident should I be in predictions that my model make for inputs that are very different from what was used to fit the data?
Take the very basic problem below. Here I fit a straight line through a bunch of ... |
I have a set of drivers' routes each represented as a sequence (time, longitude, latitude). The data is received from GPS in driver's smartphone. The sequences have different length and coordinates are significantly spread (there are some outliers when, for example, some driver was on vacation and had his phone turned ... |
I have read the description of the ELM in this question, but a lot of it goes over my head.
What is a less mathematical, more intuitive understanding of ELM?
|
I have longitudinal data from N = 80 people who participated in 12 short monthly assessments. Around 40 participated in 10-12 of the interviews, the rest dropped out due to different reasons. Aim of the study is to assess the pattern of the course of symptoms during the 12 months.
I checked whether the missings are MCA... |
I have a specific number of normal distributions $N_D$ all with their own mean $\mu$ and std $\sigma$. Now I obtain a sample from all distributions which results in a set of $N_D$ samples. What is the probability that the smallest value from this set comes from the distribution with the smallest mean $\mu$?
This proble... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.