instruction stringlengths 9 38.7k |
|---|
My AR(1) model is $y_t = \phi y_{t-1} + \epsilon_t \quad where \quad \epsilon_t \sim \mathcal{N}(0,1) $
Here $\sigma^2 = Var(\epsilon_t) = 1$
Basically in this code I generate random values for phi and then try to recover that value using a dlm model just to see if I am using dlm correctly.
Method 1.
Do for i = 100 tim... |
Recently I've been studying Bayesian statistics. Often when I see this
$$p(y|x, \theta)$$
I treated as a probability of y given x and $\theta$. This made
sense when solving linear regression since $\theta$ was a fixed value/vector.
I think it's also written this way:
$$p(y|x; \theta)$$
But with Bayesian, $\theta$ be... |
Let's say, I completed a training with 10k images on neural network with a certain number of epoch, which means all of 10k images went through forward and backpropagate epoch times.
Let' say, I get extra new 100 more data and wanto to train my machine further.
Do I have to start all over again from cleared weight with ... |
Not even sure this is the correct SE site to ask this, but here goes.
If I have a random vector field, for simplicity I'll make it 2D and on a grid. I generate it by (python, since I'm not sure how to communicate it in math-ese):
import matplotlib.pyplot as plt
import numpy as np
u = np.random.random((10, 10)) - 0.5
... |
I have a time series containing n values (numbers) $t = v1, v2, v3... vn$.
For example, the time series could be: $50,6,7,8,90,10,25$
For a value $v_i$ ($1 \leq v_i \leq n$) from the time series, I would like to know if that value is significantly greater than the other values in the time series.
For example, is th... |
We use supervised learning algorithm to detect fraud, but we have fewer or even no positive samples, is it reasonable if we use rules to label positive samples? if so, is the supervised learning model is meaningful?
If we make use of anomaly detection to catch fraud, we use rules to label data in model evaluation pha... |
I want to calculate the sample size for my AB-Test with the power.prop.test() in R.
Let's say I expect an uplift in an acceptance rate from 0.33% to 0.34% and want to know how big my sample size has to be. I use the power.prop.test()
power.prop.test(n = NULL,
p1 = 0.33,
p2 = 0.34,
... |
I'm reading some of the educational material for a new therapy that can help treat PPMS (Primary Progressive Multiple Sclerosis).
I'm having difficulty understanding their use of statistics.
Let's first talk in general terms:
If person A has 100 oranges, and person B has 75 oranges, then person
B has 25% fewer orang... |
I'm comparing Bayesian (generalized) linear methods vs Frequentist ones in the case when $p>n$ ($p,n$ being respectively number of regressors, number of samples).
In the frequentist context when $p$ > $n$ I cannot invert the design matrix $X$ since it is not full rank. Of course there are methods like Ridge Regression ... |
I want to predict a variable $Y$ given a set of variables $X_i$. To account for nonlinearity, my $X_i$ are put in several quantile dummies, so that I prefer transforming my $y$.
My $Y$ variable are different kinds of capital income, therefore always positive and skewed with high value variables. My explicative variable... |
I have a classification dataset, which I partitioned into a training and a test set. The test set I put away in a bank vault and have not touched since then, planning to use it only to evaluate the final model.
I do model selection and parameter tuning using 10-fold cross-validation on the training set. The question is... |
Let $\mathcal{P}$ an homogeneous unit rate Poisson process.
It's conditional intensity function (star indicating conditioning on the history) can be written as
$$\lambda^*(t) = \lambda = 1$$
meaning that it does not depend on either the history, and is constant with time.
It's compensator is by definition
$$\Lambda^*(t... |
How should I efficiently sample from the following distribution?
$$
x \sim B(\alpha, \beta),\space x > k
$$
If $k$ is not too big then rejection sampling may be the best approach, but I am not sure how to proceed when $k$ is large. Perhaps there is some asymptotic approximation which can be applied?
|
With the upcoming French presidential election (first round on 23th of April 2017) many opinion polls are ordered and presented in the news. There are several initiatives to track the results of these polls, see Les Décodeurs or Wikipedia.
The following table sums up 20 most recent results for the 11 eleven candidates ... |
I am looking at different airports and have data on the amount of passengers per month for years 2012-2016. I need to be able to compare the extent to which traffic fluctuates from month to month, over a year. I am looking for a formula and/or method that will produce a value indicative of a market's vulnerability (how... |
I am trying to run an outlier detection algorithm using python and I have used OneClassSVM and Isolation Forest on a dataset of about 30 points with 5 outliers. I have trained on the 25 points and using it for remaining 5 points but I am getting almost all training points as outliers and also all the 5 points are outli... |
I'm searching for a ready-to-use model, preferably in TensorFlow, that learns embeddings for words from a corpus, but without taking word order into account.
So far I have a
vocabulary of 8822 words
corpus of ~1.5M documents of variable length (mean: 11, median: 8)
The corpus reflects users and items that hold tags (... |
I'm reading about EM; It seems that transforms the likelihood
$$Pr(X| \theta)$$ in $$\sum_h Pr(X,H=h |\theta)$$ with $H$ hidden variable that is a not observed variable which could, hypothetically, influence the data $X$. My questions are:
so, EM is possible in any case? hypothetically, any data could be "decomposed"... |
I have data on the percentage of their 24h day that animals spend doing certain activies.
One response for one animal may look like
30 % spent hunting
30 % spent sleeping
30 % spent eating
10 % spent mating
And then of course we have many covariates. Our interest lies in measuring the effect of these covariates on the... |
Assume I have two time series, A(t) and B(t). I do know the exact signals in A(t). I want to find out when a known signal in A(t) is causing a signal in B(t).
In case of pure noise the data in both is distributed around the mean (not necessarily Gaussian, as there is systematic noise even after pre-whitening/detrendin... |
I'm using the MATLAB code released by Eric P. Xing, related to their NIPS 2002 paper (pdf): "Distance metric learning, with application to clustering with side-information. Eric P. Xing, Andrew Y. Ng, Michael I. Jordan and Stuart Russell".
The code is available for download (.tar.gz) at this webpage.
When using the New... |
I have the following question given in Communication Systems by Dr Sanjay Sharma :-
"Show that the random process $X(t) = A cos(\omega t + \theta)$ where $\theta$ is a random variable uniformly distributed in range $(0, 2 \pi )$ , is a wide sense stationary process." In the solution while calculating the mean, the auth... |
I have implemented Soft Plus for my training research with GoLang.
$$
\frac{1}{1+e^{-x}}
$$
Implementation:
func SoftPlus(x float64) float64 {
return (float64(1) / (float64(1) + math.Exp(-x)))
}
math.Exp(-x) returns 0 or infinity with large values of x (actually... |
Consider a case where I have developed a predictive model using logistic regression. Now the logistic models gives a probability even when all the inputs are zero (because of the intercept). Now consider the case of predicting if a subject has disease or not. Here the probability carries a lot of significance. In this ... |
I am using Scikit-learn for a multiclass classification task and would like to find out what are the most important features for each class. I have three classes (say class_a, class_b and class_c), and achieved Cross Validation scores of around 70% using Decision Tree classifier.
There is a feature_importances_ attrib... |
So I have a study that I have carried out with 40 test subjects. The study consisted of reading two different texts using different methods and answering a number of questions corresponding to each text. Half the population read text $t_1$ using method $m_1$ and $t_2$ using method $m_2$. The other half read text $t_1$ ... |
I am currently working on a way to transform two different phosphorus test values into each other.
Background
There exist many (extraction) methods to measure plant available phosphorus in soil. Different countries apply different methods, hence to compare P-fertility across countries it is necessary to calculate P-te... |
I want to predict the approx. number of open parking lots for a car park for a given time slot (hour of day / day of week etc.).
Using GradientBoostingRegressor, results seem quite ok so far. However I'm wondering how I could weight/punish certain regression errors.
E.g. I want my model to be able to be pessimistic for... |
In AdaBoost, the weight of a weak learner $\alpha$ is set as
$\alpha_t = \frac{1}{2}ln\frac{1-e_t}{e_t}$
under the assumptions that
$e_t = \frac{1}{2} - \gamma$ and $\gamma > 0$
Therefore:
$\alpha_t = 0$ for $e_t \geq 0.5$
So what happens in the case of the XOR problem and AdaBoost with Decision Stumps?
No weak learner... |
I came across an article where, after finding null results for their hypothesis (higher pain threshold for PTSD patients), the researchers decided to conduct another, different analysis.
They didn't reanalyze the data, but rather used another method to detect pain threshold (longer stimulus). They mention this was due ... |
I have some problems with respect to the degrees of freedom of my lmer model.
This is the output:
lmF3<-lmer(var ~ cond + (1|subj) + (1|blocks) , data=data)
Estimate Std. Error df t value Pr(>|t|)
(Intercept) -0.12844 0.04238 2.30000 -3.031 0.0794 .
B 0.28143... |
Suppose $X$ and $Y$ are two arbitrary random variables, and we have the following inequality that conditional on $Y=y$,
$$\textbf{Pr}(X \ge a_0 | Y=y)\le f(y),$$
where $\textbf{Pr}(\cdot)$ denotes the probability of the event, $a_0$ is a constant, and $f(y)$ is an increasing function with respect to $y$. I want to kno... |
The universal approximation theorem states that a feedforward neural network (NN) with a single hidden layer can approximate any function over some compact set, provided that it has enough neurons on that layer.
This suggests that the number of neurons is more important than the number of layers.
But in practice deep ... |
I have a Random Forest model for a dataset with 3 features:
rf = RandomForestRegressor(n_estimators=10)
rf.fit(X, y)
If I look at the importance of each feature I get:
rf.feature_importances_
> array([ 0.45453475, 0.23246138, 0.31300387])
I know that feature 1 is the most important but how do I interpret these res... |
If I had a maths degree with a little foundation in statistics, what would be the top $100$ questions/posts on CrossValidated or MathStackExchange or MathsOverflow or Stack Overflow that I would have to study in order to become a data scientist?
And if not possible, could you give me an idea of the steps (skills, knowl... |
I've seen posts similar to this, but I've yet to come across a satisfactory answer. Given that...
I've recently begun to study trend analysis, and I came upon a report that stated, "...there was a statistically significant downward trend in cancer mortality from 2000 through 2010." Later in the document, it stated that... |
Suppose we have $N$ patients and two groups. For each patient, he can have one or two measures. Theses measures are classified by the group. Therefore one patient can contribute to both groups.
My purpose is to compare the difference between the group means. However, there exist correlation across the multiple measu... |
I am working with censored data and would like to employ a selection model. As far as I can see, the most frequently applied selection model is the Heckman selection model that assumes a two stage process.
First we have a partly latent variable $Y\in \mathbb{R}$, where we only observe $\Delta Y \in \mathbb{R_+}$, with ... |
Given a set of samples $S$ from an unknown multidimensional real-valued distribution, I use the multivariate normal distribution $N(\mu(S),\Sigma(S))$ to compute its upper entropy limits. This is possible, since the normal distribution is the maximum entropy probability distribution for a given variance $\Sigma(S)$.
Is... |
I'm trying to build a regression from the results of a campaign of physical experiments, consisting of 7 different test campaigns. In each test campaign, all test points are repeated two times, once with a vertical excitation and once with an horizontal excitation. The reason is that at the time of the tests, people we... |
Convolutional neural networks - What is done first? Padding or convolving?
Suppose the code below :
network = lasagne.layers.InputLayer(shape=(batch_size, 1, 11, 11), input_var=input_var)
network = lasagne.layers.Conv2DLayer(incoming=network, num_filters=20, filter_size=(3, 3), stride=1, pad=3)
network = l... |
Given a neural network with one hidden sigmoid layer and softmax output layer, I want to derive the gradient of the cross entropy loss with respect to the first weight matrix. This is equivalent to the network described in this question, but in my derivation the dimensions mismatch.
\begin{align*}
&J = CE(y,\hat{y}... |
I am trying to solve an exercise from Time Series Analysis: with Applications in R by Cryer and Chan.
Suppose that ${Y_t}$ is a zero mean, stationary process with $|\rho_1|<0.5$ and $\rho_k=0$ for $k>1$. Show that ${Y_t}$ must be representable as an MA(1) process. That is, show that there is a white noise sequence ${e... |
I have some data about some shipments. It includes the weight of shipment, origination destination, distance , airlines and a column with two values where it says if a shipment is late or not. I would like to see if I can predict for a given shipment with these parameters, will the shipment be late or not? I started bu... |
So, for the purpose of my master thesis I'm trying to predict pfofitabilty on times series data using Elastic net and XGBoost. I split the data 80/20 (50k instances, 3k+ features). I do not use cross validation (tried it, system crashed everytime) or a validation set. I train and tune the model on the training set and ... |
I have 3 set of items:
sample1 -> #trump: 25, #hilary: 0, #hillarycrooked: 2, ...
sample2 -> #hilary: 1, #notmypresident: 15, #trump: 0, ...
sample3 -> #obama: 5, #tcot: 10, #hilary: 0, ...
I wanted to use the chi-square test to see how my sample2 and sample3 are similar to my sample1.
So I wanted to compare the resul... |
Im currently studying Fan and Li (2001) on Penalized Likelihood and its oracle properties.
In the proofs they note that the following two statements are standard arguments and I somehow don't understand.
1. $n^{-1}\frac{\partial L(\beta_0)}{\partial\beta_j}=O_p(n^{-1/2})$
$n^{-1}\frac{\partial^2 L(\beta_0)}{\partial\b... |
There are a few books out there on how to do multivariate regression, but of course the literature isn't as massive and detailed as univariate regression models.
So why bother with multivariate regression at all? Sure, what you gain from the ability to be able to model the strong correlation structure between the respo... |
I had 8 objects and asked 80 people to score them on three attributes, say A, B, and C. Now I want to check if these 8 objects can be classified into categories based on the similarity between the scores they received on those three attributes.
Do you know any methods in R or SPSS that can do this task?
|
I have the following problem:
20 % of the exercises daily, with no difference between men or women. A random
sample of 32 men and 32 women are asked whether they exercise.
What's the approximate probability that in this sample at least 10 % more men
than women exercise?
I'm not sure how to approach this.
It seems tha... |
The score plot from the PCA is represented in the diagram. I performed the Mann Whitney U test for the Scores values for enzymes( blue dot in score plot) and non-enzymes ( red dot) for both PC1 and PC2. I found out that for both Pc1 and PC2, the enzymes and non-enzymes values were significant( both had p-value 0.00). ... |
I have a question regarding the confidence bands of impulse response functions. I see that some empirical studies report confidence bands around impulse response functions either as 95% confidence bands or as +/- 2 standard errors (SEs) confidence bands.
As I am not well educated in statistics, I want to ask whether b... |
I have a 21 x 3 matrix of probabilities (values between 0 and 1). I would like to get estimates of multivariate log-normal variances and covariances.
Is there a straightforward way to do this in R or SAS?
I was using the following formulas to get the univariate estimates of variance for each column based on the norma... |
This is probably a stupid question. I'm mathematically literate, but my knowledge of statistical methods is embarrassingly hopeless.
I have multiple time series representing various quantities for different systems, obtained through computational (molecular dynamics) simulation. I would like to state the mean and stand... |
I have created two different models that include the same variables but not the same relations between them.
form=status~(A1+A2+ B1 + ... + B10 + (1 | C))
Mod <- glmer(form, data = dadosesc, family = binomial)
form1=status~(A1+A2+ B1 + ... + (B10 | C))
Mod1 <- glmer(form, data = dadosesc, family = binomial)
... |
I have a data-set consisting of the Analytical and Label nutrient values for certain food (their mean and standard deviations). I was checking the consistency of the calculations. I believe that there are two major flaws with this analysis and would be glad if someone could address them.
The Mean Percentage discrepanc... |
I want to prove that the set of all random variables with finite variance and $\langle X,Y\rangle = E(XY)$ is an inner product on this set.
I want to see that $\langle X,X \rangle = 0$ iff $X = 0$. My first problem is that I've never been told what the zero element of this space is.
The second problem is that when I wr... |
I would like to estimate the conditional mean of counts assuming a negative binomial distribution.
I can estimate the unconditional mean using MASS's glm.nb function:
fit <- MASS::glm.nb(Days ~ 1, data = quine)
mu <- exp(coef(fit)[1])
size <- fit$theta
And I can verify the parameter estimates, again using the MASS pa... |
I am fitting a linear model to a data set with a lot of variance. Basically, I have sales for the first few months of similar, but not exactly the same objects, and am trying to predict sales a year from now. I am taking the log of the variables for variance stabilization. A simple version of the model looks like the f... |
Let X be a Bernoulli Random Variable whose parameter is a Uniform Random Variable Q which takes values in the domain [0 , 0.1].
We want to find var(X). My reasoning is the following:
Using the Law of Total Variance we have:
var(X) = E[var(X|Q)] + var(E[X|Q]) = E[Q * (1 - Q)] + var(Q) = E[Q] - E[Q^2] + var(Q) = E[Q] - ... |
Consider the problem of estimating the number of discoverable extra-terrestrial civilizations (in our galaxy, say), or the related problem of estimating the probability of discovering such a civilization in some given time frame.
The proper way to make such estimations is via Bayesian statistics, where you have prior i... |
Our statistical inference course material states the following:
The principle of mean square error can be derived from the principle
of maximum likelihood (after we set a linear model where errors are
normally distributed)
After that the material apparently shows this derivation over several pages of math equatio... |
I'm dealing with a variation of the three-parameter Weibull distribution where the third parameter is randomly distributed over a Gamma distribution. The cdf takes the form:
$$
G(x|\gamma) = 1-\exp\left[-\gamma\left(\frac{x}{\alpha}\right)^\beta \right]
$$
$$
f(\gamma) = \frac{1}{\Gamma(k)\theta^k}\gamma^{k-1}\exp\left... |
I am playing a game where I randomly get 1 of 6 different prizes whenever I do a certain action. The 6 prizes do not drop at the same rate. Some are more rare than others. I am trying to figure out the percent chance that each prize is given. I have been keeping track of all my attempts for a few weeks, so I have a fa... |
I would like to test for significance of some sample data. However, I only have the z-scores of individual observations. Is it appropriate to make a claim about the sample as a whole by doing a t-test from the individual z-scores? Are there any assumptions to testing significance if z-scores are being used instead of r... |
I am analyzing data from 3 field experiments (farms=3) for a citrus flower disease: response variable is binomial because the flower can only be diseased or healthy.
I have particular interest in comparing 5 fungicide spraying systems (trt=5).
I am not interested in the effect of a specific farm, they simply represent... |
The Setup
There are 18 balls, named A through R.
They continuously and randomly (or so it seems) increase/decrease in size due to certain external factors.
There is a black box system that measures the increase/decrease in size of the 18 balls at regular intervals tx.
For each interval, it outputs the changes in size o... |
I am working with birds dataset to determine success or failure of these introduced species and the effect of response variables on such. A sample from the final dataset i work with below:
dput(birds[1:20,])
structure(list(status = c(1L, 1L, 1L, 0L, 0L, 1L, 0L, 1L, 0L,
0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 1L), leng... |
Suppose I have the data of 300 patients containing their age and grade of tumor at the diagnosis. The grading has only 3 levels: Grade 1, Grade 2 and Grade 3.
Is it appropriate to use Spearman correlation to infer if the age was associated initial tumor grade?
Would it be better than one-way ANOVA with post-hoc tests? ... |
Let K a Bernoulli Random Variable with parameter 0.1 (p(K=1) = 0.1).
Let X = K + W where W is a noise, a standard Normal variable.
We want to find p(K = 0 | X = 0.5). I reason as follows:
Using the Bayes rule:
In the conditional Universe of K = k, X is the sum of a standard Normal variable and a constant k. Theref... |
I ran PCA.
Output is:
.
I am trying to increase the R-Square Value. In doing so, I want to only consider important variable.
Till now I have cleaned the data by excluding the outliers and also by removing variables : Garage yrblt ,1stflsf,totrmsabvgrd & Garagecars as they have very high correlation.
Recalculated the L... |
I don't understand how simple coding works in the text below (original content here).
Once we fit the regression model: Why would the coefficient that we fit to race.f1 help us compare Levels 1 and 2?
For example, if we get the results below from such a model. Why is it that I can interpret that the difference in the... |
According to Wikipedia (https://en.wikipedia.org/wiki/Binomial_distribution), the variance of a binomial distribution of $n$ independent trials, where each trial has an outcome probability of $p$, is given by $np(1-p)$.
But what is the overall variance of the distribution if the number of trials $n$ is itself a binomia... |
I'm trying to understand some canonical correlation outputs, and I found differences between eigenvalues results for R and SPSS. Some code:
#From cancor help
pop <- LifeCycleSavings[, 2:3]
oec <- LifeCycleSavings[, -(2:3)]
cancor(pop, oec)$cor
The output:
[1] 0.8247966 0.3652762
I thougth that canonical correlation... |
I have a small set of data that I need to fit a curve to (see image and data below).
algaeConc adultDens
2.934961 6665.145469
2.921015 6665.144453
2.910769 6665.142377
2.908331 6665.138925
2.907658 6665.134515
2.907278 6665.128736
2.907130 6665.121034
2.907160 6665.117992
2.907326 6665.1... |
I am trying to reproduce this study: http://stm.sciencemag.org/content/7/299/299ra122
I have time-dependent features like patient lab values and vital signs measurements, and also features like age, gender, etc that don't change in time. The paper says "we fit a Cox proportional hazards model using the time until the o... |
What are some ways I can model the dependency or correlation of my responses?
The data:
How many hours does the patient spend doing X?
How many hours does the patient spend doing Y?
How many hours does the patient spend doing Z?
The question:
I have little interest in the actual levels of the hours.
We are more inte... |
I have some data that I have fitted with a normal distribution using scipy. Here's how the fit looks like (whether it is a good fit or not is not a problem here)
import scipy
plt.hist(some_data, bins = 100, alpha = 0.5, normed = True)
x = np.linspace(0, 120,num=100)
r_loc, r_scale = scipy.stats.norm.fit(some_data)
plt.... |
I am working with a model organism, and we are interested in looking for difference in the effect on survival of both genotype and treatment.
For example, we would like to know if there is a larger relative difference in genotype A for a given treatment than for genotype B, something like ((A treated vs A untreated) vs... |
Suppose I have a bunch of cities with different population sizes, and I wanted to see if there was a positive linear relationship between the number of liquor stores in a city and the number of DUIs. Where I'm determining whether this relationship is significant or not based on a t-test of the estimated regression coe... |
Given the linear model Y=X$\beta$+e, How can i prove the following claim?
$SS_{(e)}=SS_{(R)}+Y'Y$
I've done the math, and actually I think the true equality is:
$SS_{(e)}=Y'Y-SS_{(R)}$
But I'm really bad at Matrix Algebra and I don't trust myself. Which one is the correct?
|
I was thinking about RNNs and notice that the update equation for an RNN could be:
$$ h_t = tanh( W_{hx} x_t +b_x) + tanh( W_{hh} h_{t-1} + b_h ) $$
$$ o_t = W_{oh} h_t + b_h $$
but instead are:
$$ h_t = tanh( W_{hx} x_t + W_{hh} h_{t-1} + b_h ) $$
$$ o_t = W_{oh} h_t + b_h $$
Why is it that they are not the way as in ... |
I'm performing model evaluation of my sklearn Pipeline, looking for:
optimal hyperparameters: the model is a random forest so in this case: number of trees and tree max depth (using grid search)
train size: size of the training set (using validation_curve)
train/test performance: to check for high bias / high variance... |
I was watching a stanford lecture on deep learning with NLP and he pointed out a bunch of issues with co-ocurrance matrices (which I assume apply to n-gram models and any other count method like that). The slide that pointed out the issues were:
Problems with simple co-ocurrence vectors
Increase in size with vocabula... |
A lot of web-based companies are obsessed with funnel analysis, that is, how the number of people who visit a given page of their site changes as a function of the actions the people had to take to get to that page (e.g. highest number of people on the home page, fewer people on the "account creation page", even fewer ... |
I'm fairly new to statistics in general and R specifically and am taking a biophysics course which uses both. My project is to determine trends in temperature and precipitation for my region, using daily measurements from a single monitoring station. I have daily values for Ave. Temp, min, and max, as well as precipi... |
Using R summary of a linear model, I'm supposed to calculate standard error and the t-value. I know the t-value is the estimate divided by the standard error, but how do I find the standard error?
This is the output I was given:
Call:
lm(formula = Ozone ~ Temp)
Residuals:
Min 1Q Median 3Q Max
-40.9... |
This and other studies, where only a proportion of people return a completed questionnaire, suffer from non-participation bias. I have previously just compared participants with non-participants to see if there are any systematic differences and comment on them. However, the study in the link uses "weighting for the in... |
Problem statement - Idea is to cluster students based on their assessment pattern and score.
Data = I have a data set that contains Binary data of students answers(Correct/incorrect) which i have recoded as 1 & 0.
Its a 10*100 matrix of 10 students answering 100 questions. Looks like this
I have tried distance calcu... |
I have compared two age groups for bone development (age 14 and age 15) using Fisher's exact test. I got the results shown in the table below
$$\text{Ossification status of conjoint epiphysis}\\
\begin{array}{|c|c|c|c|}
\hline
& \begin{array}{c}\text{Not}\\\text{appeared}\\\text{(Stage 0)}\end{array} & \begin{array}... |
In differential dynamic programming, why is $k$ scaled by $\alpha$ during line search and not for both $k$ and $K$? In Newton's method for comparison it is done for the entire change $p_k$, so that when $\alpha=0$ there is no change.
|
My time series data has seasonality and trend both. Could anyone please let me know which stationarity test is more appropriate? - Dickey Fuller unit root test with drift or Dickey Fuller unit root test with trend? Not sure if I can/should use both.
|
I want to do a statistical test to test the following business assumptions:
1. Higher duration is associated with a lower score
2. However, Hypothesis (1) may or may not be true for all Survey reasons
What I am thinking of is to do a regression with interaction terms: score = duration + reason + duration * reason
My qu... |
Let's consider a classifier that for each new sample ($x_i$),
finds the nearest neighbor ($x'^k_j$) for each class $k$ present in the training data
computes the corresponding distances: $d(x_i, x'^k_j)$
computes the decision function as some function $\varphi$ of these distances: $\varphi(d(x_i, x'^0_j), d(x_i, x'^1_... |
I have plotted the Bivariate Cluster Plot (of a Partitioning Object) using the clusplot from the cluster package. Following is the code for this:
k.means.fit <- kmeans(pima_diabetes_kmean[, c(input$first_model, input$second_model)], 2)
output$kmeanPlot <- renderPlot({
# K-Means
clusplot(
pima_diabetes_k... |
I am making Poisson and tweedie GLM models to segment risk. I have one extremely highly significant variable that segments risk very well ($p < 1e-16$ from the model output). However, I also have a few other variables that are not correlated (correlation coefficient $< 0.1$) with the extremely significant one (with $p... |
I have created a random sample of 100 values in SPSS and need to now test for normality with an appropriate goodness of fit test.
I am trying to do a One-Sample t-test via Analyze -> Compare Means -> One Sample T Test and I get a t-statistic of 47.584 and p-value of 0.000. Is this the appropriate test to use? Is there ... |
I would like to know what constitutes a substantial change in my dependent variable.
My dependent variable has been standardised in the data set. It has a range of -3 to +1 and is a measure of a nations political stability. I know that the coefficient of my IV represents the SD change in the DV for a one unit increase ... |
I have a data set of particle physics events. An event could be seen as a training instance. In these events, there are various particles and these particles have various characteristics (energy, momentum etc.). An example particle is an electron. Now, not every event contains an electron, but when it does, the charact... |
I would like to execute multidimensional scaling (MDS) based on a matrix of Pearson correlation coefficients. The sklearn.manifold.MDS function takes a dissimilarity matrix as an input and I therefore need to convert my similarity matrix into a dissimilarity/distance matrix. What is the correct way of doing so?
Accordi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.