instruction stringlengths 9 38.7k |
|---|
I have a coarse and noisy image data taken from two different but geometrically similar samples (pixel size are all the same). I want to prove that there is a statistically significant differences between the images from the two samples.
What I am thinking is calculating cross-correlation, and conducting t-test.
Cross-... |
Currently, I am modelling the results of game theory experiments where two parties negotiate to divide a fixed sum of money between themselves. Y is recorded as the percentage of the money which the first party takes (e.g. when Y = 40, the first party takes 40% and the second party is implied to take 60%).
When applyin... |
i am trying to translate this article into tflearn: http://iamtrask.github.io/2015/07/12/basic-python-network/
I have successfully created a linear neural network in tflearn:
import numpy as np
import tflearn
X = [[0, 0, 1],
[0, 1, 1],
[1, 0, 1],
[1, 1, 1]]
Y = [[0, 1],
[0, 1],
[1, 0],
[1, 0]]... |
Are there any problems with using Item Response Theory models such as the Graded Response Model when the number of measures is small? I don't know if there are any asymptotic results that would make a Graded Response Model undesirable with such a small number of measures.
|
Apologies if this question has been asked before but I haven't come across any so far.
I have been experimenting with Autoencoders using Keras and Theano as my back end based on the tutorial from this tutorial which has been going on well so far. So I have a high-dimensional (over 15K features) dataset as examples with... |
Here is my understanding of scaling, "The main advantage of scaling is to avoid attributes in greater numeric ranges dominating those in smaller numeric ranges."
Let's take k-nearest neighbours:
If you are performing scaling to bring the measurements so the ranges are close, then I can see that there is an increase in ... |
If the error term follows an exponential distribution, what would happen to our least square estimators? Are they still useful?
Can you use exponential distribution and MLE to estimate the parameters?
How would you compare the result from MLE with that from Least Square?
UPDATE
When we estimate parameters using MLE, we... |
I've used scipy.odr to fit lines through each of the four scatter plots below. The function's Output includes the res_var attribute: the residual variance, which I've shown on each of the four panels.
The fits look noisier for panels (b) and (d) than for (a) and (c). I am looking for some kind of significance test tha... |
I am trying to run a binomial GLMM using the glmer command in R.
It is not clear to me whether I need to first select the best model or if I should just report the p-values that I get with the summary(my.model) command.
If I need to select the best model first, which is the best option in R to compare two binomial GLMM... |
I want to find a stationary ARMA difference equation (i.e the ARMA coefficients) such that $\rho(1)=\frac23$, $\rho(2)=\frac16$ and $\rho(k)=0$ for all $k=3,4,...$, where $\rho$ is the auto correlation function.
I would like to use Yule Walker equations, but I think they only apply to AR models. Any ideas?
|
I have fit a GLM poisson regression model. Then i detected overdispersion, which was the reason that I have decided to fit a Negative Binomial model:
# oversidpersion check
dispersiontest(poismodel, trafo = 0)
dispersiontest(poismodel.t, trafo = 0)
# there is evidence of overdispersion (c is estimated to be 18.... |
If there are 30 open seats on an airplane (12 aisle, ten window and eight middle), what is the probability that the next passenger will get an aisle seat? What is the probability that the next three passengers will get two aisle and one middle seat (in any order)?
|
Originally, my 42 participants were divided in two groups based on the language of the questionnaire they filled in.
There are two dependent variables, Total number of option A and Total number of option B. I want to compare these two variables without making a distinction between language version.
The paired sampl... |
I was reading the book
I came across the conditional probability. The statement is:
Imagine a certain disease that affects 1 in every 10,000 people. And
imagine that there is a test for this disease that gives the correct
result (“diseased” if you have the disease, “nondiseased” if you
don’t) 99% of the time.
T... |
I have two matrices $A_1$ of size $N\times K$ and $A_2$ of size $M\times K$ which contain data and every row has a corresponding label $y \in {1, 2, 3}$. I want to learn a mapping between those two matrices $A_1$ and $A_2$. Is it possible to do it using some machine learning technique? For example can I learn a Neural... |
I just wanted to ask a simple question: what is the difference between certainty equivalent of a lottery F() and probability premium? They are both concepts in analyzing risk aversion, and I understand that the certainty equivalent c(F,u) is an amount of money x. But what about probability premium? The definition only ... |
I have these variables in my data set:
a categorical variables with 5 levels (Country)
sex
a continuous variable (grade)
different continuous variables as dependent such as y1,y2,y3,...,y25 (I have 25 columns and each column is one dependent variable)
Research question:
I want to find the relationship between country... |
I am working on Twitter dataset for emotion classification task. Often the tweets contain joined words. Some examples:
#idontlikethis
#worstdayever
whatthehell
Sometimes the words are intentionally joined where the user explicitly joins them in a hashtag (example 1 and 2 above). Sometimes they might be unintentional... |
I'm beginning to study continuous random variable statistics and I'm having trouble to solve exercises, so I need help. I don't know how to apply definitions in this case. (Also, I'm not a native English speaker, so please correct or ignore grammatical mistakes if you see any of them).
A disc of radius R has a dot som... |
There is already an answer for that but it skips some mathematics, where I am getting stuck.
I am reading Bishop's Pattern Recognition and Machine Learning.
In Bishop's Pattern Recognition and Machine Learning (page 73, chapter 2.1.) there is a formula:
$$p(x=1|\mathcal{D})=\int_0^1 p(x=1|\mu)p(\mu|\mathcal{D})\text{... |
I'm trying to ascertain which portions of my social networking web app are driving user retention (so I can fine tune my site).
Step 1 (in my view) is to do an inference on what predictors are correlated to user retention. I'm taking the linear regression route for this.
Consider that my web app has 3 sections: A1, A2 ... |
I am in the process of performing my first ever cross-validation. Yay.
Anyways, I am starting off with hold-out cross validation: I split it 50/50, and then I fit on one half, test on the other.
Question 1: Is 50/50 an appropiate split?
Question 2: How many times should I repeat this?
Question 3: If I do repeat it mo... |
For a prospective study of parameters affecting student's success in graduate school I am looking at a population of about 1500 med students. I have performed a cluster analysis (using Gower's universal similarity index and average linking) showing that students fall into 3 main groups (at ~ 0.2), each with several sub... |
I have the following problem and I would appreciate any help you could offer. The quantity I'm interested in ($p$) is a proportion and let's say that in my whole population it follows a mixture of beta distributions
$$ p \sim \phi \mathrm{Beta}(\alpha_1 , \beta_1) + (1 - \phi) \mathrm{Beta}(\alpha_2, \beta_2)$$
Based ... |
Background
I have vehicle dynamics data collected over time. For example, my data set contains speed, steering angle, accelerator pedal position, etc. (more than 100 variables) for 50 different drivers who drove on the same road segment. I consider these as multivariate time series because of the sequential nature and ... |
I have separate training and test tests normally. When I train my logistic regression model and use it to predict the target class in the test set, the AUC value is 0.75. Below is the python code:
X_train = sklearn.preprocessing.StandardScaler().fit_transform(X_train)
X_test = sklearn.preprocessing.StandardScaler()... |
Edit: The question is whether or not this methodology is valid, assuming both underlying distributions are normal.
Data:
A time series of difference data (e.g. Distribution 1 value - Distribution 2 value), where higher values are better.
Goal:
To determine if a newly observed difference is significantly higher or lower... |
I'm trying to check wheter my math is in order with my intuition:
Let say i have a random variable $Z \sim Uniform(0,1)$:
If i want to compute: $E[Z \mid Z < a]$ whereas "$E$" is expectation and $0<a<1$:
My intuition tells me that this expectation would be $\frac{a}{2}$ and the math behind is:
Using Bayes theorem i sho... |
Currently I am reviewing first- and second-degree stochastic dominance. Suppose that we have two uniform distributions $$F^1(y) = \frac{y - a_1}{b_1 - a_1}$$ and
$$F^2(y) = \frac{y - a_2}{b_2 - a_2}$$ and we only know that $a_1 < a_2$ and $b_2 < b_1$. Based on that information alone, can we retrieve some information c... |
Consider two random variables. Consider that for each random variable, n observations are drawn from the population. That is, suppose x is a vector, and it contains randomly drawn observations $x_{1}$, $x_{2}$, ..., $x_{n}$. y is defined similarly. Here the bold type font (x) is used to denote that the random variable ... |
I would like to find the pdf for the $n-1$ interarrival times $w$ of $n$ iid events from an exponential distribution of time constant $\tau$. Using the fact that the first event follows an exponential distribution of time constant $\tau/n$, and using memorylessness, I can show that the pdf for interarrival time $j$ is... |
The challenge is finding the optimal state representation and setting the rewards.
The game: there are n stacks of (playing) cards, which can each be filled up with at most h cards. There is a certain schedule of unique cards which are to stacked and retrieved in a predefined order. For example, card_a must be stacked... |
I would be very grateful for any suggestions and help regarding the creation of a linear mixed model with lmer4 package and the lmer function.
I have created an experiment which randomly assigned participants into 8 different conditions. Each condition presented a short video with an actor. The actors were varying in t... |
I am a conducting a four group randomized survey-based study.
In the first group, I explain a situation, and then ask respondents their willingness from 1-10 to take a medication.
In the second group, I explain a situation, and then ask the respondents their willingness from 1-10 to take a medication.
The same repeats ... |
A GLM looks like $$g(\mu) = X\beta,\ \ \mu = EY_i$$
where $Y_i$ is an exponential family.
It is commonly assumed for a decent sample size that $\beta$ is approximately normal with mean $\hat{\beta}$ and variance equal to the estimated covariance-matrix.
Question: Is this similarly valid for the same model, except where... |
It is inherently impossible to know the probability distributions of random variables we might encounter in the "wild" -- that is the reason why researchers have to take samples.
However, since the underlying distribution is inherently a "black box", it seems like an ideal analysis would make as few assumptions about i... |
I've got 3 trials, A, B, C.
These test drug X vs placebo, giving an HR for benefit of survival vs. placebo.
There is a dichotomous subgroup analysis, for clarity let's say patients > 50 years old, and patients < 50 years old.
Trial A quoted that patients > 50 years old benefit, but < 50 years old do not. It lists a HR ... |
I'm working on a computational biology project, and my professor has given me data for over 1,000 enzymes (represented by a numerical index), namely average solubility, count (number of enzymes of each type), and standard deviation.
I'm having some trouble determining how to best graphically summarize this data. My pr... |
using the dataset CO2 as an example. After I find the regression lines of uptake and Plant (a factor with 12 levels)
lm(uptake ~ Plant, data = CO2)
Call:
lm(formula = uptake ~ Plant, data = CO2)
Coefficients:
(Intercept) Plant.L Plant.Q
27.21310 -22.94230 -4.61669
Plant.C Plant^4 ... |
I am currently trying to forecast the delivery of cash to branches. The problem I face is that there are a few days, as well as most Sundays, in which there are no deliveries. Hence, in the time series for those dates I have zeroes. I am using a years worth of data for the training set and wish to apply the forecast to... |
Consider the following density function:
$$ f(x; a,b) = \frac{(1-a)b}{2a x^2}$$
where $a$ and $b$ cannot be separately identified.
Now suppose that given my data, I can restrict $a$ to two possible values $a_1$ or $a_2$.
Is it then permissible to do the following: Fix $a = a_1$, estimate $b(a_1)$ with ML and store $\l... |
For a university project, we were required to code our own Parallel Tempering Algorithm and use it to solve an Inverse Problem with 4 Parameters. Unfortunately, I'm not sure if I'm too stupid or have something completely mixed up.
The PT Algorithm should return an estimate of the Marginal Posterior Likelihood, which i... |
I am solving a problem where the life expectancy of a microorganism can be modeled as having the PDF:
$
f(x)=
\left\{
\begin{array}{ll}
kx^{-3} & x\geq 1 \\
0 & x \lt 1 \\
\end{array}
\right.
$
Where $k=2$. I've calculated the average to be 2 hours, but when I try to calculate the variance as:
$$\sigma^2=\... |
This line returns the first 4 rows in the dataframe combined for feature_a
combined.iloc[0:4]["feature_a"]
As expected, this next line returns the 2nd, 4th, and 16th rows in the dataframe for column feature_a:
combined.iloc[[1,3,15]]["feature_a"]
This line sets the first 4 rows in the dataframe for feature_a to 77.
c... |
I have sampled 8 bags of a certain brand of candy to compare the color distributions of the candies. I have 4 bags for each size of bag, 8 oz and 1.9 lb. The bags were paired randomly. Here are my hypotheses:
$\ \ \ \ H_0: The \ distribution \ of \ each \ color \ of \ candies \ is \ equal \ in \ all \ sizes \ of \ bags... |
I could not seem to find a specific answer to my question through searching, so I thought I'd post it.
I am doing an ANOVA and I have a significant three-way interaction, each factor has only 2 levels, though. Is the Tukey HSD command in R software appropriate to tell where the differences are-- or do I need to do a s... |
I know that DPMM is a non-parametric Bayesian clustering model which can automatically determine the number of clusters based on data. However, which kind of clusters does the model find?
For example, I have one dataset which contains 4 dimensions. I use the DPMM to cluster this dataset based on original values, then I... |
I know the difference between Precision and Recall metrics in Machine Learning. One optimizes on False Positives and other on False Negative. In Statistics it is called as optimizing on Type I or Type II error.
However, I am a but confused on under what circumstances one can get complete opposite Precision and Recall?... |
I have fitted a model
$$g(\mu) = X\beta, \ \mu = EY_i, \ Y \sim T(\nu, \mu, \sigma)$$
where $T$ is a scaled and shifted t-distribution.
This model was fitted in R (I use gam from mgcv), and pearson residuals were obtained.
The normal qqplot looks fantastic .....
...... but is this what I should be doing? Should my mod... |
Is a stationary process necessarily ARMA? Can anyone please explain why?
|
A car accident occurs and of the 5 witnesses, 4 of them saw a green
car, and 1 of them saw a yellow car. In the universe, $85\%$ of cars are
yellow and $15\%$ of cars are green. Witnesses report correctly $2/3$ time.
What is the probability that the car is green?
So I'm trying to figure out $P(G \mid D)$ where $G$ is... |
I don't understand why my answer is wrong. My understand of likelihood is the P ( Data | model). For example, if the model is that a coin is fair, and the coin was flipped 10 times and came up heads 6 times, then the likelihood is (some binomial distribution math goes here... unsure what it is actually... I think it's... |
I am doing multiple linear regression. I was directed to this question on how to solve MLR as a sequence of simple linear regressions, Question on how to normalize regression coefficient and I understand this result.
However I have also been told that Moore-Penrose Pseudo Inverse can be used for MLR. In doing so I... |
I'm trying to solve the following problem, I want to classify each row of a particular machine log to output only interesting information such as relevant/non-relevant.I have collected a dataset from such logs and I created a bag of words with ~11000 features.I'm trying to figure out what would be the best approach her... |
I have series that shows that it requires differencing as the lag-1 value of ACF is almost equal to 1 and there is no significant spike in PACF.
However, if I do not difference it for some reason and model it as ARMA (1, 1) process. I get the following result.
Series: ret
ARIMA(1,0,1) with non-zero mean
Coefficie... |
If we generated random number from Normal Distribution N(0,1) that is always positive by using Uniform Dist from 0.5 to 1, Is it still follow normal distribution the data that we are generated?
|
Consider the independent $n\times p$ dimensional matrices $\mathbf{X}_i, i=1,...,G$, from the matrix variate normal distribution, $N_{n,p}\left(0,\mathbf{I}_n, \mathbf{\Sigma}_i\right)$:
$$P_i\left(\mathbf{X}_i\right)\propto \exp\left[\operatorname{tr}\mathbf{X}_i\mathbf{\Sigma}_i^{-1}\mathbf{X}_i^{T}\right],$$
where $... |
I need to rank a set of things belonging to different kind (models) based on a list of performance metrics.
For thing of each model, I have the aggregated value ( mean) of let's say 4 metrics and each metric of the same importance (weight).
So I have the aggregated results for each model for each metric over many exper... |
Assume $X_1$ .. $X_n$ ~ iid beta($\theta$,1)
I'm supposed to construct a Maximum likelihood ratio test for:
$H_0$: $\theta$ = $\theta_0$
$H_1$: $\theta$ != $\theta_0$
But I'm stuck at the last step of simplifying the rejection region.
My steps are as follows:
1) Obtain the MLE (skipping derivation)
$$\theta_{mle} = ... |
I am in the machine learning business for a long time, but still, this fundamental fact gets me confused, since every paper, article and/or book describe different kind of usages for validation and test sets. I aim to set my mind at ease forever on this issue:
Let's say I have a relatively small Convolutional Neural N... |
I am following this excellent tutorial: http://blog.christianperone.com/2011/10/machine-learning-text-feature-extraction-tf-idf-part-ii/
However there is one part that I do not get:
If the output of a matrix multiplication in tf-idf is this
[(0, -0.41, -0.41, 0), (0, -0.81, -0.4, 0)]
Then how do you end up with this ... |
The traditional approach to batch normalization is to estimate the mean and variance from the batch and use it to normalize the data at different layers, while keeping moving averages that you should later use at test/prediction time. My question is, wouldn't it be better to use the moving averages at training time too... |
I search for a way to model future commodity prices, like heating oil and natural gas. It doesn't have to be very sophisticated, but rather easily to implement.
Does anybody know a suitable approach? After theoretical examination, I plan to apply it to real data in R. Thus, implentation in a R package would be good.
Th... |
First, forgive my uncertain terminology. I think I have a cross-nested effect. I want to model mortgage origination in multiple MSAs (metropolitan statistical areas) vs. race, income, type of loan, etc.
My basic geographic unit (random grouping) is the census tract. Each census tract exists within an MSA and within a s... |
Considering we have four predict variables:x1,x2,x3,x4 and three response variables:y1,y2,y3. After learning the relationship between response and predict variables with training data, I want to obtain the y1,y2,y3 for any new given x1,x2,x3,x4.
What methods can deal with this question?
|
Pair-copula is the way to model higher dimensional data with high complex dependencies, using only 2 varialbes at a time. Sampling from pair-copula is quite complex and need a careful understanding. The algorithm is as follows (for c-vine of 3 variables):
$x_1$ = $u_1$ # Is that to start algorithm since our variables ... |
I know some machine learning algorithms can output the probability of predicted labels of an input sample.
For example, give a sample with three possible labels, a probability tuple (0.2,0.3,0.5) can be outputted through some probabilistic learning algorithms, such as logistic regression or probability estimate tree. T... |
Why does this interpretation make sense only when we keep other variables constant ?
After all those coefficient weren't learnt that way(keeping other constant), so unless there is strong multi collinearity why would we need to fix the other variables' values for this interpretation to make sense, have we not already ... |
Suppose we want to explain an experiment with the following model:
$$Y \sim \beta_1 X + \beta_2R + \varepsilon$$
where $X$ are endogenous variables and $R$ is a randomized treatment level. To interpret the outcome of an OLS fit of this model as causal it seems like we want to verify different assumptions: (1) $ R \per... |
I am just now moving on to GLMs after the standard models.
In the standard model,
y = Xb + epsilon
and epsilon is assumed to be normally distributed. That means we can write
y - Xb = epsilon
and then we can minimize the lhs using some suitable norm given the normality assumption.
In a GLM, these residuals are nowhe... |
I have the power consumption of 1000 companies in a city for the last one year. The granularity is by day. What I need to predict is the TOTAL power consumption of these companies for the next month by day.
I am confused whether should I build models on the aggregated power consumption of these companies. If I aggregat... |
I have a single time series, unevenly spaced. I would like to perform change point detection on it. Does it mean a non-parametric method is needed? Any pointers to which method would be valid? Also, it has only 70 data points. The 'change point' package in R implements PELT, SegNeigh & BinSeg, any opinions?
|
I came across this term while reading a research paper but could not make any sense out of the information therein. Can someone please shed some light on what exactly does this mean ?
The paper that I was referring to - Models and Algorithms for Stochastic Online
Scheduling by N Megow, M Uetz, T Vredeveld (2006). In Ma... |
Let $\beta$ be parameters in a regression ($\mu = X\beta$), $\hat{\beta}$ the estimated parameters, and $V$ the estimated covariance matrix.
I want to simulate from the posterior distribution (assumed to be multivariate normal).
What is the best way to obtain (very approximate, since the posterior distribution is appro... |
Say I am running a phylogenetic generalised least squares (PGLS) regression with one predictor.
A model will return me a coefficient with a standard error - corrected for phylogenetic relatedness.
I also know there is uncertainty surrounding the phylogeny is use, so I run the same model multiple times using a sample o... |
I would appreciate if someone explains the difference in a very simple manner as I am a beginner in python and Machine Learning.
|
I am trying to interpret/explain a result that I obtained while generating a posterior distribution, and maybe add some informations to what I had so far. The environment that I am using is the following:
Where T is my sample size. I am generating this posterior using different initial samples from which I estimate th... |
I've fitted a non-exponential family GLM regression model with the response distributed as a t-distribution with $\nu$ degrees of freedom, scale $\theta$ and mean $\mu = X\beta$.
We estimate $\beta,\nu,$ and $\theta$.
I get $\theta = 0.6$, $\nu = 4.9$, and also my $\beta$ values.
I want to check my distributional assu... |
I need some hint for how we can simulate data similar to a fitted generalized additive model. In case of a linear regression model for example, consider the regression model below is fitted to a set of data with n observations:
$$
y_i = \beta_0 + \beta_1x_{1i} + \cdots + \beta_mx_{mi}+\epsilon_i \quad ; \quad i=1,\cdot... |
I have yield data of a crop for 10 sites and 15 years. I will try to reproduce the data here.
site <- rep(c("A","B","C","D","E","F","G","H","I","J"),each=15)
year <- rep(1996:2010,times=10)
yield <- runif(150,1000,4000)
water.stress <- runif(150,-20,20)
dat <- data.frame(site,year,yield,water.stress)
I model yield as... |
I need a short description about a part of a general backpropagation equation.
Following this excellent article:
Output layer bp equation
$
\delta_{j}^L=\frac{\partial C}{\partial a_{j}^L}\sigma^{\prime}(z_{j}^L)
$
Where:
$\frac{\partial C}{\partial a_{j}^L}$ is a partial derivative of a cost function. For example Quad... |
I wonder what is the difference between these two kind of priors:
Non-informative
Improper
|
I am planning an experiment where I test whether having a picture affects whether users prefer Coke to Pepsi. (The research question is actually different, but I'm using Coke and Pepsi to simplify things)
Both Coke and Pepsi come in cans and bottles, and maybe different can/bottle designs can interact with the presence... |
I would like to simulate from a multivariate distribution with mean vector $\mu$ and variance matrix $V$.
I am only interested in $\mu[1], ...., \mu[k]$ and their simulated values.
Does it make a difference if I draw from $N(\mu, V)$, and then extract the first $k$ values, or first extract the first $k$ values from $... |
I would like to perform simple linear regression on a data set ($y_i = a x_i + b + \epsilon_i$) with $N \approx 50$. However, my residuals $\epsilon_i = \epsilon_i(x_i)$ exhibit heteroscedasticity as well as non-normality.
My first intuition was to perform some kind of robust regression to give less weight to outliers... |
I frequently read that ARIMA models must be fitted on stationary data. But stationarity does not ensure ergodicity, which I understand is necessary to deduce population parameters from a single time series sample. Why is ergodicity not a requirement for ARIMA modeling? Do we just assume it?
Also, is there an example of... |
New user & first time poster. I'm finalizing my dissertation and am searching for similar examples as my project or some way to justify one of our analyses. (I'm also open to better analysis ideas for possible publication later on if anyone has suggestions). I'll try to keep my introduction to the study brief but infor... |
I am currently reading a paper in which the authors are constructing an estimator for a cumulative distribution (like) function (some context here), without going too much into the details they have the following convergence result for the estimator $\hat N_n(t)$ of $N(t)$
$$
\sqrt n(\hat{N}_n(t)-N(t))\overset{\mathcal... |
I am computing the following probability:
$\Pr \left[ \sum_{j} (P G_j R_j) \le T\right]$,
where $P$ is a fixed number, $G_j$ is a random variable i.i.d. $\forall j$ and $R_j$ is a term that depends on index $j$.
Knowing that $P$ is fixed I can write: $\Pr \left[ \sum_{j} (P G_j R_j) \le T\right] = \Pr \left[P \sum_{j... |
I am working in an environment where each transition rewards 0 except for the transitions into the terminal state, which reward 1.
My question is, how should I define the value of the terminal state? Right now I just initialize all values to be 0, but since the terminal state has no transitions it remains 0 while the s... |
In deriving ${Var}(\hat{\beta_1})$ in simple linear regression model, I came across following derivation. Why are the variances of non-random terms zero below?
\begin{align}
\text{Var}(\hat{\beta_1})
& = \text{Var} \left(\frac{\sum_i (x_i - \bar{x})(y_i - \bar{y})}{\sum_i (x_i - \bar{x})^2} \right) \\
&= \text{Var} \le... |
Let's call a kernel function $K$ a function that satisfies
$$a_i = \int_0^1 K_i(t) f(t) \; \text{d}t \qquad i = 1...N$$
I have a simulation that outputs $a_i$ and $f(x)$ (and other information) based on different inputs. I want to figure out what the kernels $K_i(x)$ are from that information. Is that possible?
|
As per scikit-learn's example on the interpretability of the learning curve, the following figure suggests that the SVM model requires more training examples to improve the validation score.
My question is, how is the need for more training examples justified when both the training score and the validation score are n... |
Say you do this in R:
g <- rgamma(5000, 4)
t <- rt(5000, 5)
So, now you've got data from the gamma and $t$-distributions.
Then you model these. I use 'gam' from 'mgcv'.
m1 <- gam(g ~1, family=Gamma)
m2 <- gam(g ~1, family=scat)
m3 <- gam(20 + t ~1, family=scat) # add 20 to get positive values
m4 <- gam(20 + t ~1... |
I fit a LM model. It looks ugly, residuals are too skewed. I refit with a GLM using a skewed distribution.
But now I still need to check whether this GLM fixes the skew or not. How can I do this?
Use AIC to compare the two fits: if the GLM is better, it should have less AIC.
Use a normal qq-plot to check the residual... |
Some implementations of decision trees (eg cran/tree) can split on categorical variables where the split separates the variable into 2 groups:
> library("tree")
> df <- read.csv('https://forge.scilab.org/index.php/p/rdataset/source/file/master/csv/datasets/Titanic.csv')
> tree(Survived ~ Class, data=df, weights=Freq, ... |
Suppose $ \{ X_i \}_{i=1}^{T}$ are states of a markov chain and let $P_{\theta}(X_1, ..., X_T)$ be the probability of observing the path when $\theta$ is the true parameter value (a.k.a. the likelihood function for $\theta$). Using the definition of conditional probability, we know
$$ P_{\theta}(X_1, ..., X_T) = P_{\... |
In reading a blog post HERE, I encountered a comment which I'm trying to validate here.
Specifically, the the blog says:
In a paired-samples t-test design, the population standard deviation of the difference scores (i.e., scores resulting from subtracting scores in each group from that in the other group) is √2 times a... |
Is it fair to say Cross Validation (k-fold or otherwise) is unnecessary for Random Forest? I've read that is the case because we can look at out-of-bag performance metrics, and these are doing the same thing.
Please help me understand this in the context of RF for a classification problem. Thank you!
|
The Snitch in the game of Quidditch is famously elusive. It is hidden in one of n boxes, location uncertain, and, for k = 1, . . . , n, is in box k with probability $p_k$. If it is in box k, a search of the box will only reveal it with probability $α_k$. Now suppose a search of box i has been conducted and the Snitch h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.