instruction stringlengths 9 38.7k |
|---|
Requirement is to optimally move passengers from one seat map to another which has a different configuration.
Move should be based on many rules like -
1) Families should be sitting together
2) Those who were at windows seat should be moved to window seat if available.
3) Kids should be seated at middle seat.
4) and ma... |
I have an application of factor analysis, where the theoretical model specifies that certain loadings within each factor should ideally share a same sign for the sake of interpretability. For example, if I have 7 variables from which I am keeping 2 factors, ideally loadings for v4, v5, v6, and v7 in factor 1 should ha... |
Sorry, but I'm confused about when to categorize within and between groups variables. Update: I think that I was confused by the "within" and "between" terms. What I really want to do is confirm if the scenario described below constitutes a repeated measures design or not.
The scenario:
I conduct a survey where I have ... |
I'm doing work on a dataset that is approximately lognormally distributed, but with significant amounts of zeros (kinda like looking at forum post activity per subforum. For those who do post, the distribution of posts will be roughly lognormal, but there will be many who do not post at all on each subforum). As one wo... |
Let's say I have 4 variables on the within person level - xa, ya, xb, yb.
xa and ya have each 100 trials, xb and yb have 200, and there are 150 subjects.
I want to build the following multilevel model in Mplus:
CLUSTER = subject;
WITHIN = ya, yb;
ANALYSIS:
TYPE = TWOLEVEL RANDOM;
MODEL:
%WITHIN%
sa | ya ON xa;
sb |... |
Has anyone ever tried to build a Multi-Layer Perceptron Neural Network without the sigmoid function? Let me explain better:
We know that a perceptron is a binary classifier that assign the test point to the class 0 if the dot product with the learned weight is negative, and to the class $1$ if the scalar producut is z... |
I am a little confused in interpreting the results of regularization. Could someone please explain in a relatively basic way why I get these results and what it is that I'm misunderstanding?
I have run 14 different models, with each one including one additional predictor variable. for example model1 <- DV ~ variable1,... |
I do customer clustering based on weekly data. I don't want to rely on only one week of data so I was considering pooling the data over a few weeks together and assume that these are simply "different" customers.
Point 3 here: http://www.statisticalassociates.com/clusteranalysis10.htm suggests that it is a mistake.
I k... |
I have done an experiment with two factors in RCBD, bionomail distribution.
I wanna use GEE in Proc Genmod in SAS to analyze the data as follow:
proc genmod data=Emerg;
class obs Crop Dist Block;
model Emerg/Total = Block Crop Dist CropDist/pscale dist=bin link=logit type3;
REPEATED subject=obs;
LSMEANS CropDist/pdif... |
I am trying to create a forecast using a monthly timeseries data set of marketing expenses for a fictional company. The data looks something like this:
Using linear regression to forecast future sales, I get the following result:
My problem lies with the seasonality of the marketing expenses (higher in the summer mon... |
Hinton's paper Dynamic Routing Between Capsules (https://arxiv.org/abs/1710.09829) describes how we might use capsules for image recognition with dynamic routing.
In particular, the architecture first uses a classic convolutional layer (ReLU Conv1) with 256 feature maps. The output of this layer is then received by a c... |
I'm interested in to know a bit more on what the scale parameter of the dccfit fit.control option is about.
Here is the code for the model I am estimating:
Specifications:
xspec = ugarchspec(mean.model = list(armaOrder = c(1, 0)), variance.model =
list(garchOrder = c(1,1), model = 'gjrGARCH'), distribution.model =... |
Neural turing machines and differential neural computers are wholly differentiable, so why is their memory called "external"? External in relation to what, why isn't for example LSTM cell state isn't external and NTM's memory is?
|
I'm doing data analysis using Hamiltonian Monte Carlo for sampling from the posterior distribution of weights of a neural network. I'm using the Gelman-Rubin diagnostic estimated potential scale reduction (ESPR) for checking the convergence of my Markov chains. My neural network has around 317 model weights and I check... |
Suppose we want to find out if observed multivariate binary random variable $\textbf{X}$ causes observed binary random variable $Y$ in presence of observed multivariate binary covariates $\textbf{Z}$. Note that $\textbf{X}, Y$, and $\textbf{Z}$ can be arbitrary. We have information such as, whether $X_i \in \textbf{X}$... |
I want to build a VAR model for 7 series. All the series are stationary, but when I ran the Johansen cointegration test, it said that I have cointegration in my series.
Does it make sense to have cointegration for stationary series?
|
I am wondering if there exists any method to perform variable selection in the case where you want to adjust for confounding effects (whether or not they are significant).
The setting is the following:
You want to perform a variable selection for a group of variables $X_i , i \in 1...p$ on a variable reponse $Y$ howev... |
I'm having trouble finding the probability of the CART decision trees. I'll use that first CART as an example,
http://trevorstephens.com/kaggle-titanic-tutorial/r-part-3-decision-trees/
I want to know, given a female and a male the probability that they will die. So we have a CART constructed to classify. To find the ... |
I was reading this article.
In it, when referring to Ensemble Learning, this was stated:
It can be theoretically shown that the variance of the combined
predictions are reduced to 1/n (n: number of classifiers) of the
original variance, under some assumptions.
Assuming that we have n classifiers, and we combine t... |
I'm reading Murphy's Machine Learning- A Probabilistic Perspective. The introductory section on discovering clusters says:
It seems that there might be various clusters, or subgroups, although
it is not clear how many. Let $K$ denote the number of clusters. Our
first goal is to estimate the distribution over the n... |
When the assumption of proportional hazards is violated, the suggestion is to interact offending covariates with time (or a function of time). In this blog post, the author suggests to include only the interaction effects without the main effects by opting for the ":" variant instead of the "*" variant when fitting cox... |
Equation (7.23) in the book "Elements of Statistical Learning" reads that for the model $Y = \beta \cdot X + \epsilon$ with $\epsilon \sim \mathcal N(0, \sigma^2)$,
We have
$$\sum _{i=1}^N \operatorname{Cov}(\hat y_i, y_i) = d \sigma^2,$$ where $d$ is the number of features and $N$ is the size of the training sample.
... |
Adam is one popular method of the optimization policies with adaptive learning rate. I'm focusing on a image segmentation project using fully convolutional networks. All weights were initialized by truncated normal distributions. Initially, I used the Adam optimizer, and got some convergence of loss on both training se... |
I have heard/read that Bayesian and Maximum Likelihood inference can be justified as asymptotically minmizing the KL divergence between the pdf $p(x)$ actually describing the data and the parameterized (approximating) pdf $f(x|\hat{\theta})$, where $\hat{\theta}$ is the MLE or MAP estimate. In other words, the claim is... |
I am having a hard time making a decision with how to handle missing data under a specific set of circumstances and what it means to the model.
Consider that I have the following fictitious dataset.
import pandas as pd
year_built = [1920, 1962, 1999, 1972, 1987]
garage_type = ['DetSingle', None, 'DetDbl', 'AttTpl', Non... |
Suppose I'm planning an experiment where I drop ceramic tiles on a concrete floor and measure the masses of all the pieces after the tile shatters. I can't really measure dust particles, so there is a minimum size that I bother documenting.
I test each tile separately and note the collection of masses from each.
I wan... |
I am wondering what the value range of information gain ratio is. I guess it is [0,1] but am not too sure about it.
|
I was reading an answer explaining the justification for using the sigmoid function in logistic regression. The reason given was essentially "when evidence adds up, the odds multiply". This is the exact excerpt:
For example, there are two Boolean features of an animal: x1 says whether it has a long tail, x2 says wheth... |
I am reading the following from the book Deep Learning, and I have the following questions.
I don't quite understand second directional derivatives. The first directional derivative of a function $f:\mathbb{R}^m\to\mathbb{R}$ in the direction $u$ represents the slope of $f$ in the direction $u$. So what does the seco... |
If we have classical linear regression model, and one of the regressors is time series (e.g. GDP), is it necessary for that variable to be stationary? Well i do not think so, because diversity in values yields to better results when we talk about linear regression, but I encounter different opinions.
|
Assume we have a non-negative integer random variable $X$ that only takes values bigger than $k$ (i.e. $P(X \geq k) = 1)$. Denote $p(x) = P(X=x)$. I would like to give an upper-bound on the mean $E(X)$ in terms of $k$ and $E(X^2)^{1/2}$.
First attempt: $E(X) = \sum_{x \geq k} p(x)x
\\ \qquad = \sum_{x \geq k} \sqrt{p(... |
I have written and delivered a five-week programme aimed at reducing children's anxiety levels.
I tested participants' anxiety before and after the course using the Spence Anxiety Test. Spence standardises the raw data to typical children (t-scores, by age and gender).
I have also tested a 'random' group of similarly ... |
I have measured running times with 4 different systems (1 gold standard) and 4 different running styles.
Every run was carried out by 6 athletes, who were measured by all systems simultaneously.
Now I want to analyse my data using an anova, but I'm not quite sure what the correct model is.
Overall my dataset looks lik... |
I'm trying to understand under which circumstances the product of variables that are lognormally distributed is lognormally distributed (and most imporantly, with what mean and variance).
I tried Wikipedia but feel there is an inconsistency. Why would the third bullet point be any different than the last bullet point? ... |
Based on my understanding, a translation ( x' = x + a ) for any feature, x, by an amount, a, should not effect the results of a decision tree. I wanted to ensure this was true in all cases independent of:
Split criterion
Outliers
Classification vs Regression
|
I have a large number of time ordered location traces that I'd like to extract common sequences from. These locations are mapped from latitude, longitude pairs to a 2D aggregation bucket to handle noise and sampling differences.
For example, if a person makes a trip that looks like mnABCDefg (lower case letters for il... |
I have several examples of multidimensional time series that correspond to a particular pattern (or class) and form a dictionary. Now, based on these examples I want to find if a new time series matches to one (or all) of the patterns from the dictionary or not. For that, I am performing Dynamic Time Warping (DTW) per ... |
I am new to time series analysis and I came across the following definition of autocovariance:
$\gamma_h(Y) = \mathbb{E}[(y_t - \mu_t)(y_{t-h}-\mu_{t-h})]$
It should tell us, how correlated are two rv's of our process at some specific $t$ and $t-h$.
My question is:
Is the expectation in this formula taken with respect... |
I have optimized a cost function by constrained minimization using cross validation starting from 200 or so initial points. I have traced the optimization path of each chain, so I have many function evaluations.
I have noticed some things I expected to see, such as certain parameters that I figured would need to be lo... |
I have a binomial mixed-effects model that I fit using glmer (package lme4) in R. I want some sort of descriptive statistic for the effect size of each of the two fixed effects (something like Cohen's d for each explanatory variable--var1 and var2 in the code below). Is there a simple way to do this using the model o... |
Let $X$ be lognormal with parameters $\mu$ and $\sigma$ (such that log($X$) is Gaussian with mean $\mu$ and $\sigma$).
What is the distribution of $1/X$? (I.e., its "simple" parametric distribution)?
|
For research purposes I am performing a regression prediction task which involves two time series (A and B). Aim was to map input: time series A and the last value seen in time series B into the value for the next step in time series B. The prediction task was successful outperforming the baseline (persistence algorit... |
Say you have count outcomes $Y_1, ..., Y_n$ out of different population sizes (e.g. offsets in a usual count model) $p_1, ..., p_n$. I want to relate this to a covariate $X_1, ..., X_n$ using a usual log-linear model
$$ {\rm log}(\lambda_i) = \log(p_i) + \beta_0 + \beta_1 X_i $$
where $\lambda_i$ is the poisson rate o... |
I think this must be so because of how Mutual Information is defined. The formula is
$$ I = \sum_{x,y} [p(x,y) \log(p(x,y)) - p(x,y)\log(p(x)p(y))] $$
This is apparently $\ge0$. I can understand it equals 0 when $X$ and $Y$ are independent, and that its maximum is $H(X)$ (if $Y=X$). And I know the $\ge0$ result can be... |
After running the lm regression model using R, sometime one is bound to get very small P values or values in the covariance matrix. Something of the sort: -1.861246e-04 for example in a covariance matrix. My question is how do you read this? how could I perform calculations on it manually? I needed to multiply this cov... |
This question is related somewhat to one that somebody else asked here. Aside from the fact that I don't feel as if that question was sufficiently answered, my question is not about the exact same thing.
I am being asked to determine the limiting distribution for the square of the sample mean, $\overline{X}^{2}$, where... |
I have built a calibration model using principal component regression relating PCs extracted from multivariate spectra to their calibration factors. We are trying to determine if our calibration model will apply to spectra collected under a different condition.
How would we determine if the PCs selected from the traini... |
The rule of three states that, if we observe $Y\sim \text{Bin}(n,p)$ to be 0, then $[0,3/n]$ is a 95% confidence interval for $p$. I'm confused about the derivation for this rule on Wikipedia and elsewhere.
Wikipedia equates finding a 95% confidence interval to finding all $p$ such that $P_p(Y=0)\geq 0.05$. I'm strugg... |
If we want to calculate time varying correlation between various asset class (5 asset classes, each consisting of 10 indices) from 2005-2012 and if our purpose is not forecasting but analysis & inference based on historical data to look what the pattern is of correlation through time (constant, increase or decrease), t... |
I am working with library(nycflights13)dataset in R and I'm trying to provide an answer to this specific question:
If I am leaving before noon, what are my top two airline options at each airport (JFK, LGA, EWR) that will have the least amount of delay time?
At first I created a summarised table that displayed each a... |
Basically, I have made two posterior (ps) updating R functions; auto1 and auto2. That is, ps from one set of n and s becomes prior (pr) for the new set of n and s.
But it seems the two functions produce different posteriors, I'm wondering which function is accurate; auto1 or auto2?
auto1 <- function(n, s, top = 5){
... |
I have three variables and I want to know which of them can be considered to have the normal distribution.
Variable A
Variable B
Variable C
|
When performing AIC (or BIC) model selection between competing models, one performs individual fits for all models (on the same training data set) and then compares their AIC (or BIC etc) values. If the difference between the lowest AIC value for some model is greater than 10 we can say that the model selection is conc... |
For independent samples from two normal populations, $X_1,\dotsc,X_n\sim N(\mu_X, \sigma_X^2)$ and $Y_1,\dotsc,Y_m\sim N(\mu_Y,\sigma^2_Y)$, the $F$ test for equality of variances uses the statistic
\begin{align*}
F=\frac{s^2_X}{s^2_Y}\overset{d}{=}\frac{\sigma^2_X}{\sigma^2_Y}\frac{\chi^2_{n-1}/(n-1)}{\chi^2_{m-1}/(m-... |
Imagine I have a bag of n labeled marbles. I would like to pick a single random marble out of the bag x number of times. Every time I pick a marble, I place it back in the bag.
How do I calculate the probability that I will only pick p distinct marbles?
In my case, I have 90 labeled marbles, 550 selections and I want ... |
This may be a simple question, but my data (once transformed) passes normality, however does not pass homoscedasticity. Can I look at the residuals to see if they pass this? or am I over looking this?
|
I am a statistical newbie. I recently started doing some text analysis in my text columns to find if a usage of specific word is causing my score to be high or low score.
Previously I was finding the correlation then I came to know correlation does not tell you what variables affect other variables.
Q1: Is it possible ... |
Suppose we have a parametric family $g(x;\theta)$, where $\theta$ are the parameters. As far as I can tell, there are two ways we can use this family to model a probability distribution:
Probability density approximation: We can train $g(x;\theta)$ to be very similar to some desired probability distribution $p(x)$, su... |
I am building a driver model to understand what makes my survey respondent a Promoter/Passive/Detractor.
We have used survey satisfaction drivers as my independent variables.Now Fast and Friendly satisfaction variable is coming highly correlated(~80%).
Both have an impact on the respondent and it doesn't make sense to ... |
I'm reading CNN for text classification. According to this link, inside data and preprocessing step it says:
Load positive and negative sentences from the raw data files.
Clean the text data using the same code as the original paper.
Pad each sentence to the maximum sentence length, which turns out to be 59. We appen... |
I'm a bit stucked with a problem where I suppose the answer is rather simple.
I have a very simple regression model:
$x_{it} = x_{t-1} + \beta_i P_i(d_{it-1} - x_{it-1}) + \epsilon_{it}$
where $\beta$ basically measures the adjustment from the last observed value $x_{t-1}$ towards another observed value $d_{t-1}$ and $... |
Poisson's Theorem states that:
For $X_{n}$ with distribution $\mu_{n}$ following the Binomial law $\mathcal{B}(n, \lambda / n)$ and $X$ with distribution $\mu$ following the Poisson law $\mathcal{P}(\lambda)$, it holds that $$ \mu_{n}(\{k\}) = \begin{pmatrix} n \\ k \end{pmatrix} \left(\frac{\lambda}{n} \right)^{k}\le... |
My statistics book points out that when using sample mean and sample SD for numerical variables the confidence interval is calculated using the Student's t distribution instead of the normalized normal distribution (Z value). However, in the formula for the confidence limit for proportions the book uses the Z value bot... |
I want to build a classifier from a dataset of vectors that include exclusively boolean values. Is there any chances that my classifier might perform better if, previously to the learning, I add features that consist in combinations (with logic operators « OR » and « AND ») of the original ones or would that be pointle... |
I am performing a genetic association analysis with binary outcomes (case-control study) and would like to include a genetic relatedness matrix (GRM or kinship matrix) as a covariate along with others. One issue that arises is the case of perfect separation, where all or no individuals with a genotype has outcome of in... |
Clumsy first post - apologies for any wrong doing on my part. For context, below the excerpt of the text where the formula appears:
Could anyone kindly help explain what formula (1.4) means?
$$\large\color{red}{\inf_{p\in \Lambda_0}\sup_{\pi\in\Lambda}}\sum_{i=1}^k Z_i^{(N)}\log\frac{\pi_i}{p_i}$$
The part I don't un... |
Inspite of googling to the best of my ability, unfortunately I am unable to find reasons why lightgbm is fast. The lightgbm documentation explains that the strategy followed is 'Leaf-wise (Best-first) Tree Growth' as against 'Level wise Tree Growth'. I am unable to understand the difference. In so far as I understand, ... |
DNA tests for genealogy provide the user with lists of people who match them on specific segments of their DNA. When 3 or more people all match each other on a segment, they form a Triangulation Group (TG), and the people are very likely to all come from the same chromosome (paternal or maternal) of the chromosome pair... |
I have some observed binomial data as a toy example say I observe 15 successes out of 100 trials.
This could only have come from one of two distributions. I have observed data from these known two distributions. So in effect I want to test whether my observed sample is more likely to come from the same distribution as ... |
I am working on a project that has 4680 observations (18 years, 265 regions), in which one variable is endogenous. We tried various combinations of two IVs, but always end up with a significant Sargan-Hansen J Test. Recently I have found this quote:
"Testing of over-identifying assumptions is less important in longitud... |
I have empirical data from what I am trying to produce frequency table. when I use table for showing frequency result is
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 29 35
40 42 50 44 33 41 19 18 12 10 8 6 3 4 1 1 2 1 1 2 1 1
As you can see there is missing values (20,21 ...28, 30... 35)
I w... |
I am currently reading Deepminds "Playing Atari with Deep Reinforcement Learning"-Paper (2013) and since I don't quite understand it, I would like to ask here.
What exactly happens in each fully connected layer? I understand what the convolutional layers do. How do the fully connected layers decide on which action to t... |
I was setting out to do point biserial correlation to look at the relationship between a dichotomous variable and a continuous one, however my continuous variable is non-normal.
The two variables are a yes/no answer to a research question and a score on a psychological tool. Is it valid to do a Mann-Whitney U Test inst... |
I'm going through the process of writing backpropagation for a neural network.
In particular I'm building a MNIST classifier.
I'm wondering if it is better to apply the cost function and backpropagation to the non-one-hot output activation.
The advantage I see is that this will encourage all would-be-non-hot values to... |
ACF and PACF for monthly average temperature time series:
|
I have a problem to understand the concept of propagation of uncertainty. To be honest there are two issues am confused about. (1) Do we need to use sum of uncertainties or sum of squares? (2) Derivation from Taylor approximation produces approach slightly different formula for uncertainties, including an extra terms, ... |
With this data...
Observed Cust Freq.: 31 18 36 23 47 60
Expected Cust.Freq.: 21.5 21.5 32.25 32.25 43 64.5
Excel and Numbers give 0.12876 as the p-value.
Yet, R, using this code:
library(MASS)
values <- matrix(c(31,18,36,23,47,60,21.50,21.50,32.25,32.25,43,64.50), nrow=2, ncol=6, byrow=TRUE )
val... |
I have a LR statistic that I know behaves like:
$$\Lambda_n = \gamma_n + O_p(1),$$
where $\gamma_n$ has asymptotic distribution $\chi^2_k$, $k\geq 1$.
What can I say about the rate of $\Lambda_n$? Is it $O_p(1)$?
https://en.wikipedia.org/wiki/Big_O_notation
|
Assume we have 1000 features that are fed into a NN classifier and that the NN is already trained well. The 1 output neuron has an activation > 0 to indicate the class win and < 0 to indicate lose.
Now say we are in a situation where 998 values of those 1000 features are already given and we now want to know which 2 va... |
I use Bayesian random effects models [$y_i \sim bernoulli\_logit(\beta + \alpha_{subj})$ $\alpha_{subj} \sim normal(0, \gamma)$], the $y$ outcome is binary. Part of the subjects have two observations, part of the subjects have only one observation.
I experience that when I use ($y_i, subj_i$) data where a large propor... |
I was looking at this notebook, and I am puzzled by this statement:
When we talk about normality what we mean is that the data should look
like a normal distribution. This is important because several
statistic tests rely on this (e.g. t-statistics).
I don't understand why a T-statistic needs the data to follow a... |
Whenever I've been taught Linear Discriminant Analysis I've seen the formula $\text{separation} = \frac{V_B}{V_W}$ where $V_B$ is the between-groups variance and $V_W$ is the within-groups variance.
However, I've never seen any justification for this. Even in the two class cases, what does the ratio of what are essent... |
I am attempting to forecast student enrollment for fall semesters. Enrollment begins about 90 days before the semester starts and closes 20 days after. I have used ARIMA and the forecast package in R to forecast what final enrollment numbers will be for each semester - with pretty decent success. The ARMA model does... |
Given the definition of exponential family
$$
f(x\mid\theta) =
\exp\left(
\eta(\theta)^\top T(x)
+ h(x) - A(\theta)
\right)
$$
for $\theta\in\Theta$ and $x\in\mathcal{X}$,
doesn't this property of sufficient statistic
$$
T(x) = T(y),
\forall x, y \in\mathcal{X}
\Rightarrow
f(x\mid\theta) = ... |
I know that when the number of observations is small (one paper says <40 times the number of parameters), AICc should be used instead of AIC for model comparison.
Does this imply that when the number of observations is large, AIC should be used rather than AICc?
(I have no theoretical reason to prefer AIC over AICc, ju... |
I have two random variables $X$ and $Y$ and I'm trying to model $\mathbb{E}[Y|X]$.
To this end, I'd like to pick a collection of functions $f_1, f_2 \dots f_n : \mathbb{R} \to \mathbb{R}$ and then fit a model to my data set $(x_i, y_i)_{1 \dots m}$ by OLS:
$$\mathrm{argmin}_{\alpha_1 \dots \alpha_n} \sum_{i=1}^m \left... |
I was going through a short tutorial on dimensionality reduction techniques. Some of these techniques are linear while others are non-linear. What is the distinction between them? Why the terms 'linear' and 'non-linear'?
|
okay so I am using R(programme) to create a landslide susceptibility map - this map considers several parameters to create the map i.e. slope angle, bedrock geology. So I wanted to test the ability of the model to correctly predict whether landslides occur in the identified areas or not (0=don't occur and 1=occur). Fro... |
Example: Consider 3 discrete random variables X,Y,Z with pmf's denoted by P. If X and Y are mutually independent, then P(X,Y)=P(X)P(Y). Is there a useful way to factor P(X,Y,Z) using the info that X and Y are mutually independent?
In general, is there a useful factorization for the case of n random variables where k ... |
As I understood it, a sampling distribution of the desired parameter is a distribution of the parameter for all possible samples with a given sample size $n$. The Central Limit Theorem states that every sampling distribution tends to a normal distribution for a large sample size $n$ even if the underlying population or... |
In the context of demand forecasting, when it comes to items with low/infrequent sales, I've come across two different ways of describing them: Intermittent demand and sparse demand.
Are these two ways of describing the same thing or is there a difference between the two?
|
My lab does a lot of single-cell RNA-seq. Our goals are to find out what cell types are present, characterize their gene activity, and (if possible) understand how the different subpopulations are related to each other (for example through pseudotemporal analysis).
We often wonder which is better: should we sequence m... |
I have a Decision tree that is meant to work on output that are classes. How could one convert this to a Regression tree, so that it can work on continuous outputs?
I understand that the residual sum of square
|
This is more a theoretical question than something I'm working on now, but is a situation I see everywhere and would like some input into how to approach it.
A modeler builds several competitor models on a training set and evaluates their performance on a holdout set by looking at some measure of fitness. Although one... |
I am running a PCA on a dataset with 2k rows and 36k columns. I noticed that when I log-transform the data I need to ask for more principal components during PCA to achieve the same amount of explained variance (see images attached).
What is the underlying reason for this? I have a naive intuition that log-transforming... |
I have a question regarding the Monte Carlo integration method. This is probably a "noob" question, but I have searched the internet and haven't been able to find an answer...
Let's say I want to estimate an integral of some function over an area $D$, that I'll denote as $I$. I can choose $N$ points to randomly sample... |
For example, reading a representation of Bayes Theorem
$$P(C=c|E) = P(C=c)P(E|C=c) / P(E)$$
Let's use the common example of $P(C)$ = probability of cancer and $P(E)$ = probability of positive mammogram test. Why denote it as $P(C=c)$ and what does that represent?
|
I just got really unsure, can someone confirm/rectify? I have the CDF defined as $F(x)= \begin{cases}0, &\text{if}~x < 0,\\ 4x^2 &\text{if}~ 0 \leq x < \frac{1}{4} \\ 1-\frac{4}{3}(1-x)^2 & \text{if}~ \frac{1}{4} \leq x < 1, \\
1, &\text{if}~ x \geq 1. \end{cases} $
I want to find the PDF, is it simply $f(x)=8x \mat... |
These days I'm using a lot (and discovering) nice ways to use k-means' clustering. For example, clustering word embeddings (word2vec vectors) to find synonyms or clustering doc vectors (doc2vec) to classify topics.
But for these tasks I always need to specify the number of clusteres (the 'k'). Is there some unsupervis... |
It is my understanding that the confidence interval for a Pearson correlation is asymmetric. (Confidence interval for correlation, for example.) r’s command cor.test does give upper and lower bounds that are unequal distances from the statistic estimate. The documentation describes that cor.test uses Fisher’s z trans... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.