instruction stringlengths 9 38.7k |
|---|
I suspect that this is a - if not trivial - common question that betrays me as a newbie. Anyhow, here goes...
I have data that reflects behaviours of different demographic groups.
There are 10 demographic groups, they are predetermined, and individuals allocated to them.
They have a strong correlation with age - rough... |
I would like to conduct an ARIMA forecast of an exchange rate with 3030 daily observations. I followed these steps;
I looked for the stationary for the original series ($P_t$) and concluded that the series is not stationary,
I took the natural log of the series and then differenced so that I came up with return series... |
I have a dataset X which consists of two parts: X1 and X2. X2 is believed to depend on X1. And there is a resulting dataset Y which depends on both X1 and X2. For every training sample X1 and X2 are vectors of integers from limited range - roughly speaking, 50 numbers in X1 and about 1000 in X2. Y is a single integer a... |
Using the same data set, for which two latent class categories were computed (with 3 and with 4 classes), the polychoric correlation (rho) with gender is computed. Also the Pearson G2 goodness of fit test is provided, i.e. for the first class it is 368 and for the second it is 433 (each with a sign. chi2). Can I compar... |
Here is what my notes say about estimation and prediction:
Estimating the conditional mean
We need to estimate the conditional mean $\beta_0+\beta_1x_0$ at a value $x_0$, so we use $\hat{Y_0}=\hat{\beta_0}+\hat{\beta_1}x_0$ as a natural estimator.
Here we get
$$
\hat{Y_0} \sim N\left(\beta_0+\beta_1x_0,\sigma^2h_{00... |
Given some XY-data where X is the non-equidistant independent variable and Y the dependent variable. Let say the data comes from a physical experiment. I want to smooth this data using a rolling/smoothing average filter. How should I proceed?
What I often do in this case is to apply the same filter on both Y and X, bu... |
In Tie-Yan Liu's book, he says that in a statistical learning theory for empirical risk minimization has to observe four risk functions:
We also need to define the true loss of the learning problem, which serves as a reference to study the properties of different surrogate loss functions used by various learning algori... |
In a simple model, x is a continuous (normally distributed) variable predicting y. Since y values are proportions ranging from 0 to 1 (0%-100%), simple linear regression gives out-of-range estimates for some predicted values (i.e., lower than 1 or higher than 1). Therefore, I have decided to use beta regression (betare... |
This is a generic question about xgboost. I ran the following code to see the important features of my data
imp <- xgb.importance(names(train),model = gbdt)
xgb.ggplot.importance(imp)
Weirdly, when I remove one of the most important features, my model improves (aka my ability to predict test data on Kaggle improves). ... |
I have the following type of data:
Age Type
3 A
3 A
3 A
4 A
4 B
4 A
5 A
5 A
5 B
6 A
6 C
6 B
7 A
7 C
7 B
Explanation of the data: essentially, this represents different types of outputs produced by a single child at different ... |
How can I calculate the required number of trials, N using the below Hoeffding's Inequality to obtain $\epsilon=0.1$ with 0.01% case?
Hoeffding's Inequality = $P(|\hat{\theta} - \theta^*|\geq\epsilon) \leq 2e^{-2N\epsilon^2}$
|
A known way to normalize our feature vectors is:
$$\frac{x_i - \operatorname{median}( X^{(j)})}{\operatorname{MAD}^{(j)}},$$
where $\operatorname{MAD}^{(j)}$ is the median absolute deviation of feature $j$.
However, if more than $50\%$ of a feature vector's data have the same value, we have: $\operatorname{MAD}^{(j)}=... |
I've been experimenting with David Blei's C++ HDP implementation but am struggling to print the topics using the R.
The package includes an R script for printing the identified topics, print.topics.r and the documentation that comes with the package provides some instructions for its use as follows:
A R script (print... |
I'm getting 500 tweets for each of the keywords K1 and K2 and I want to discriminate these 2 keywords with Kullback-Leiber Divergence formula.
I do normal text mining preprocessing such as removing stopwords, links, ... and then I get top 50 words for each keyword (excluding the keyword itself).
Now I am confused how t... |
Let $y$ be an n-vector of observations on the dependent variable and $X$ be the $n \times k$ design matrix with observations for $n$ units on $k$ variables. I aim to estimate a time-series cross-sectional spatial autoregressive regression model of the following form:
$$ Y_t = X_t \beta + \rho W_{t-1} Y_{t-1} + \epsilon... |
I want to generate a small block of data samples (used for classification) from a data stream but, its joint probability distribution should be different than the given data stream. Is it possible to use distance function to reverse engineer the problem?
|
As we have seen, Bayesian and Frequentist approaches sometimes give different answers to real world problem. So why can't we perform experiments and determine (with a very high likelyhood) who is right? Or is it the case that sometimes the Frequentist is right, sometimes the Bayesian?
|
I have one problem with choosing a classifier and I will really appreciate if someone could help me with that. I have to use weka J48 decision tree classifier, but I can't find a package in python to for that :/ . therefore, if someone knows where I can find this package or an implementation of this weka decision tree,... |
From what I understand, variable selection based on p-values (at least in regression context) is highly flawed. It appears variable selection based on AIC (or similar) is also considered flawed by some, for similar reasons, although this seems a bit unclear (e.g. see my question and some links on this topic here: What ... |
I'm doing nested cross-validation on a classification problem (inner loop to tune hyperparameters, outer loop to select algorithm).
I've often heard that a reasonable number of folds for standard (I.e.: not nested) cross-validation is 5 or 10.
Is there a similar rule of thumb for nested cross-validation?
Should I have ... |
I ran a two-way ANOVA and I found this plot, but I am not sure the interaction I found is synergistic or antagonistic. Here, I have investigated effect of sex and three different location on fish length.
|
What exactly is a symbolic classifier? What does the input data look like? I understand decision trees and kNN classifier are considered as symbolic classifiers.
EDIT: This presentation gives a brief overview on the topic in question: https://www.rocq.inria.fr/axis/modulad/Workshop_Franco_Bresilien/programme/diday-slid... |
I am doing a model selection starting from the follwing full model (cma):
vf1<-varIdent(form=~1|Region)
cf<-formula(rrG~plotsize+alt+baseT+baseP+baseN+EIV_R+EIV_F+Overstory+Overstory_diff+SCA+SCA_diff)
cma<- lme(cf,data=dat,random=~1|Region,weights=vf1,control=ctrl,na.action=na.exclude,method="ML")
Estimates are the... |
I want to run a multivariate regression data analysis. I have 5 predictors--two of them are binary--and one DV.
When planning to use Multivariate Regression with some binary categorical predictors, how do I find the sample size I need to justify this test using G* Power?
Is it any different than having all continuous ... |
http://stats.idre.ucla.edu/stata/webbooks/logistic/chapter2/
This above website gives an example about using interaction effect between variables. Interacting variables are multiplied and used in the model.However I have read on Kaggle on using 3 or 4-way interaction effect. I use Xgbfi to find interactions but how do ... |
How can we check the quality of clustering of no-labeled data?
I learnt from class that there are some ways to achieve this . One is to
"measure intra-cluster cohesion (how near the data points within a
cluster) and and inter-cluster separation (how far apart different
clusters are from one another)".
Is there any w... |
Assume we carry out a hypothesis test at the 5% significance level. We have an observed test statistics $t$ with calculated p-value $0.03$. Does that imply that the observation has to lie in the critical region? I mean $3\%$ of the distribution is at least as extreme and the critical region is the most extreme 5% of th... |
When using multivariate regression with a mix of binary and continuous predictors, is it necessary to still run a T Test for the binary predictors or can that information be found in the regression?
Really, I'm wanting to know this for only one of the categorical variables. I want to know if there exist a significant ... |
I am curious whether there is an intuitive way in ltm package in R to display person's estimated latent trait after fitting the data to an IRT model.
After install.packages("ltm"), one can quickly run a two-parameter IRT model with the built-in WIRS data, which is a 6-item test with 1,005 persons:
library(ltm)
data <-... |
I have two sets of images persons (3x48x128) and backgrounds (3x50x50). So I want to train a neural network classifier with input (3x50x50). So how to correctly update images from the first set? Do I need to expand images and then scale them or I need only to scale them?
|
I want to differentiate the following equation by taking $\log$ with respect to $\theta$.
$\log (\theta^{ a_H+\alpha-1}(1-\theta)^{a_T+\beta-1})$
and have the result of the differentiation as below:
$\theta=\dfrac{a_H+\alpha-1}{a_H+\alpha+a_T+\beta-2}$
I am trying to learn it but not really good at doing the steps of a... |
Let ${X_t}$ be an AR(2) process where
$$
X_t = \phi_1X_{t−1} + \phi_2X_{t−2} + \epsilon_t
$$
where $\{\epsilon_t\}$ is a white noise process with $E(\epsilon_t) = 0$ and $\text{Var}(\epsilon_t) = \sigma^2$.
Define
$$
Y_t = X_t + \phi_1^{-1}X_{t−1} - \phi_2^{-2}X_{t−2}.
$$
Find $\text{Var}(Y_t)$.
I tried doing this:
$... |
I have two variables, $X \in \mathbb{R}^n$ and $Y \in \mathbb{R}^n$. Let $d$ be a distance metric that satisfies the conditions to be such a metric (non-negativity, symmetry, triangle inequality and identity of indiscernibles).
Let $t_0 = d(X,Y)$. That is, $t_0$ is the distance between my two vectors of data. I want to... |
Consider a GLM with vector of parameters $\boldsymbol{\beta}$, the maximum likelihood estimates of the non-saturated model (no. of parameters = $p < n$) is $\boldsymbol{\hat{\beta}}$ and the deviance is $D^{*} = \frac{D}{\phi}$. Likewise, $\boldsymbol{{\beta}_{SAT}}$ is the vector of parameters under the saturated mode... |
These days I am not seeing any posts related with Sparse AutoEncoder (SAE). I read one post of Andrew Ng, 2015 about it. I am curious if it still useful or there are some other better methods in deep learning for this
Is Sparse autoencoder still very helpful, or it is being replaced by some other techniques in deep lea... |
suppose X has normal distribution with $\mu=\sigma^2=1$. how can calculate $E(\Phi(X-1))$
|
Suppose, I have nominal dependent variable with 4 categories 'A', 'B', 'C', 'D'. I estimate multinomial logit model and want to test hypothesis, that, for example, categories 'C' and 'D' are indistinguishable with respect to the independent variables in the model. I know that it is possible with the help of LR and Wal... |
I have a time series $x$ and I want to run the ADF test to check stationarity in the sense of unit root.
The series has lenght 60 so I apply lags from 1 to 11 as suggested by the literature (Schwert 1989).
In matlab I run:
[h,p]=adftest(x,'lags',2:11)
The output is:
h = 0 0 0 0 0 0 0 0 ... |
I have a vector of continuous random variables X and Y. Y has the value of 0 or 1. I want to calculate which random variable from vector X has more information that makes Y to be 1 using mutual information.How can I do that?
|
I frequently encounter this concept "meta-stable state" and "metastability" on some online materials about Markov Chain Monte Carlo but I don't know what it is. It feels like something similar to "local minimum" that the algorithm tries to escape. The textbook I have for Markov chain is a math book I cannot find this c... |
$f \sim GP(\mathbf{m}, k_\theta)$ is a Gaussian Process, where $\mathbf{m} \sim GP(0, k_\eta)$ is another Gaussian Process.
I need to show that this is equivalent to a having a Gaussian Process with mean 0 and a covariance function which I have to figure out. I'm not quite sure how to manipulate covariances... here's ... |
The problem is as follows (Ch 1, problem 4 b, p. 27, 3rd edition):
There were twelve games with point spreads of 8 points; the outcomes
in those games the point difference was −7, −5, −3, −3, 1, 6, 7, 13, 15, 16, 20, and 21,
with positive values indicating wins for the favorite after including the point spread.
Us... |
I'm asked to carry out a Z-test for a population proportion on whether a die is fair. The only information I'm given is that "A die fell showing a "four" on $124$ occasions out of $500$".
I'm not sure how to do this, but after giving it a try, this is what I have:
$H_0: p = 0.1667$ (die is fair, outcomes are equally li... |
I had a linear regression assignment I just got feedback on. I decided to categorize a covariate in the model. I understand the loss of information when using categorization and this question. In this problem I am looking at body mass index (BMI). When I compiled Table 1 which compares all possible covariates between ... |
I'm migrating from STATA to R, and this is one of the last few things that's causing me some trouble. My data is of the following format: each subject takes a five-question test at the beginning of class. Some study, some don't. Finally, all subjects take a final test at the end of class. The three variables are 0/1 (w... |
I'm trying to compare some metrics from two models. I'm interested in how well the models do over time, so each row of my data represents the model's performance during a specific time interval. The value of each row is also the average of a 10-fold cross-validation.
Here is a sample of how the data looks:
| model A ... |
Does a (properly) randomized experiment eliminate all common sources of endogeneity problems? By common sources of endogeneity, I mean: measurement error, simultaneity, and omitted variables (Wooldridge 2002). I am fairly certain such a experimental design eliminates the omitted variables problem - but what about measu... |
I am taking an online statistics course and I understand how to calculate the necessary sample size for a hypothesis test.
I am using an online calculator like http://www.evanmiller.org/ab-testing/sample-size.html or python like this https://stackoverflow.com/questions/15204070/is-there-a-python-scipy-function-to-dete... |
What is the best way to combine the results of multiple uncertain measurements?
For example, let us assume that I want to measure the relation y ~ b*x. I run my experiment and I estimate the the parameter 'b', with a mean of 10 and sd = 2, normally distributed.
To increase my certainty I run the experiment again. Thi... |
tl;dr: Given a population, we want to sample a characteristic $s$ to estimate $\mu_s$ and $\sigma_s$, in order to characterize the 90% range of $s$ on the population. However, given a sample member i we can only estimate the value of $s_i$. I.e., we can only get a confidence interval like $\widehat{s_i} \in [s_{iL}, ... |
Trying to understand how nMDS is applied with smacof package in R. From smacof vignette I understand that one can attempt to search the global minimum when running nMDS by trying several random starting configurations and pick the one with the lowest stress value. Fallowing their example I tried this:
library(smacof)
... |
In a C5.0 ruleset model, how is the confidence associated with a prediction calculated? I know the help file says
...the predicted confidence value is the confidence value from the most specific, active rule.
perhaps with normalization as well.
But what is the definition of most specific? The number of cases it app... |
I was wondering if people had recommendations for modeling severely skewed and/or kurtotic (coefficients more extreme than + or -3) outcome data with negative values. I would traditionally use a Poisson or negative binomial or gamma regression (i.e., generalized linear model), but those models require all scores to be ... |
We are designing a a/b test at my company. We have a given possible total sample size of 20,000 and even though a 50/50 split of the control and treatment group has the highest statistical power, the business requirement asks for a smaller treatment group.
I understand that after we run test, we can do a t-test or wor... |
I don't know where I'm making a mistake on the solution for the question. The question is as follows:
Suppose that $(x_1,\ldots,x_n)$ is a sample from an $N(\mu, \sigma^2)$ distribution, $\mu$ unknown but $\sigma^2$ is known. Suppose we want to find an interval $C(x_1, \ldots, x_n) = (- \infty, u(x_1, \ldots, x_n))$ th... |
I have a network server which has been experiencing problems for the last few days, which is monitored by an external program (Pingdom, to be specific). I've just made a change to the network server to try and alleviate the problem, and I'd like to have some idea how long I have to wait, without seeing any further ins... |
Let's say I have received complaints that my coin is not random enough after some people got 10 heads. My coin was truly random, but I want it to feel random, not be random.
This is a pretty common problem actually. A lot of times people see patterns where no pattern exists.
The solution is to tweak the random aspect.... |
I have just started learning about machine learning algorithms. My senior at work tasked me to learn about dimensionality reduction using principle component analysis. In that he said that the number of components used to redefine the larger dimension raw data can be selected by calculating the reduction in eigen value... |
Which Significance Test?
I have a population of 4,780 users who answer 50 questions from a personality test. The responses are tabulated into a score for each of the four personality types that all add up to 50.
Given that I have statistics for an individual and statistics for the 4,780 user population is there a signi... |
So, at present, I am studying for a Time Series midterm.
After looking around for a while, I had difficulty finding a unified table describing the behaviour of different time-series models based on their behaviour as a function of their ACF, PACF, Periodogram or CCF plots. As such, I was wondering if we might be able ... |
My project involves stink bug sampling on soybeans and I'm using Taylor's Power law (logvar ~ logmean) to use its parameters in the development of a sampling plan.
I'm using a mixed effect model to analyze the effect of fixed and random effects on intercept and slopes of logvar:
fixed effects: log mean + state(8 stat... |
Using sklearn, I did both a linear kernel SVM and a rbf one. While the rbf gave really great results, I can't determine the important features that the algorithm kept (or used more).
I know that "coef_" does only work for a linear kernel, since for rbf the data space is no longer finite (or at least, it changes [I thin... |
i have data from a "negative" clinical trial and would like to run an analysis to see if there is a certain group of patients (theoretically) that respond to the drug that was otherwise overlooked. What is the best way to go about doing this? The sample size is not too big (109) so power will likely be an issue.
|
I'm new to Machine Learning and Statistics so pardon me if I say anything ridiculous.
By "test set" I mean the set that we evaluate the final hypothesis and then report the final result (e.g. test error) that is an unbiased estimate of the corresponding out-of-sample result (e.g. out-of-sample error).
By "validation se... |
I've been pouring over statistics blogs over the last couple days to find a satisfactory answer to this, but I can't seem to find one, so I'll pose it to you in hope of a quick fix.
Basically, I'm trying to analyze the predictors of a charitable giving-type outcome variable, which takes the form of discrete, non-negati... |
Assume that there is a person who has three computers which consume power as follows:
computer A = 10 watts
computer B = 40 watts
computer C = 90 watts
So, the person has three options every day when he wants to use a computer.
The data collected for a one-month period of time for this person is as follows:
Compute... |
EDIT: I have optimized values of sigma and mu for a lognormal distribution. I want to represent that data as a Gaussian curve, for which the x-axis will be logarithmic. How do I find the normalization constant for my Gaussian and for my lognormal distribution? For the Gaussian distribution (pictured below), I used cnor... |
I have pre- and post-intervention data for 50 participants. I expect participants who scored lower at baseline to improve their score more after the intervention, and who scored higher at baseline to improve their score less than those who scored low at baseline. I would like to examine this by creating 4 groups based ... |
Question: Is it appropriate to use a multinomial logit if there is only a single outcome for all but one of the three possible outcomes? How could I reframe to incorporate the possible outcomes.
Background:
I am modeling a three-horse (or elephant) race (Trump, Kasich, Cruz) for the state of New York (The Republican Pa... |
From the Online Stat Book, Chapter 11.5:
The null hypothesis for the two-tailed test is π = 0.5. By contrast, the null hypothesis for the one-tailed test is π ≤ 0.5.
Why is that so? The null hypothesis for a binomial distribution is that a person has a 50% chance of guessing whether the martini was shaken or stirred.... |
Let $Y=X\beta+E$ be a linear model with p variables and suppose that we perform som subset selection and we only use k variables where $k<p$.
I want to get the biase os the new model.
I call $X=(X_1,X_2)$ the X mattrix where $X_1$ include all the k variables an $X_2$ include the $p-k$ variables not used in the model. S... |
I have a simple question. Can one look for correlations between percentage and average ? For example, percentage of unemployment and average salary. Or shoul I use total numbers instead ? If I look for a relation between percentages and average I get significant correlation, but between totals data is not significant... |
(Ugarte, Probability and Statistics with R, 2E) In the book, it reads:
$SST$: Sum of squares of Total.
$SSE$: Sum of squares of Error.
$SSR$: Sum of squares of Regression.
Marginal increases when adding x2 to a model that already contains x1 will be denoted as
$SSR(x2|x1) = SSR(x2,x1) - SSR(x1)$
which is equival... |
Are Deep Neural Nets Graphical Models?
In the talk, here at NIPS, they say that:
GANs and VAEs are Graphical Models, just with a particular CPD and cost function. They are bipartite complete graphs.
How can that be explained? I thought that you need probabilities enmeshed in the models, with variables having dependen... |
I'm using Firth's penalized logistic regression in R with logistf package.
Should the Y variable be defined as factor (L$Y = factor(L$Y) before running a model or not? Because the outcomes of the model were different when the Y variable was and was not defined as factor before running and the stpPlr package cannot run... |
I want to simulate the pdf of the random variable given in the answer here: Distribution of $n\choose x$ . How can I simulation the pdf of $\binom{n}{X}$ in Matlab in way to confirm that it's indeed what the answer says?
|
I have a dataset of approx 2million individuals with 40 dichotomous variables signifying presence or not of diseases (e.g heart disease, asthma, etc.) along with some sociodemographic info.
I have been attempting to assess if the co-existence of certain groups of diseases (e.g. individuals have heart disease, asthma, ... |
I want to simulate a mixture data and repeat it for many times. For each times I want to store data to use it later. For example:
set.seed(123)
N=1000
U=runif(N, min=0,max=1)
X= matrix(0, nrow=N, ncol=2)
for (i in 1:N){
if(U[i] < 0.8){
X[i... |
I am trying to find clustering algorithms which can work with cosine similarity for tweet classification.
|
I have an experimental data set $D=\{\mathbf{x}_i,y_i\}_{i=1}^N$, and a computer code with inputs $\mathbf{x}$ and calibration parameters $\boldsymbol{\theta}$, returning a value $s=f(\mathbf{x},\boldsymbol{\theta})$. Assuming Gaussian iid errors, I want to calibrate my code using the data set $D$ using nls or similar,... |
I am a bit confused as how to derive information from two dependent 7-point likert type questions.
The First question asks : How important is the activity to you?
The second question aksa: How successful were you in the activity?
The idea here is that I want to say mathimatically that success in activities important to... |
I try to produce test/retest coefficient for our computer based executive function test using intraclass correlation coefficient. The test is very structured computer based test and it has hundreds of short Go/Nogo trials. The subjects have executed the test twice few weeks apart each test.
So I have dataframes consist... |
There's an unclear sentence in the Online Stat Book, Chapter 11.5:
Some have argued that a one-tailed test is justified whenever the researcher predicts the direction of an effect. The problem with this argument is that if the effect comes out strongly in the non-predicted direction, the researcher is not justified in... |
Suppose I have bivariate data $(X_i, Y_i)$ for $i = 1, 2, \dots, I$. I have the following non-parametric method in determining $H_0: \mu_X = \mu_Y = 0$.
1) Compute a 2D KDE on $(X_i, Y_i)$.
2) Calculate the contour for which the point $(0, 0)$ lies.
Here is sample R code:
require(ks)
require(mvtnorm)
x = mvrnorm(1000, ... |
I have a large data set, containing some 220000 rows and 550 variables. I need to find interaction terms in order to increase the explanatory power of my model. However, I do not know how to locate interaction terms with such a large number of variables.
Is there any practical, or preferably automated, procedure to han... |
In supervised learning the error is computed using the labels of training set. However, in unsupervised we do not have labels. How the error is computed in this case.
More specifically, in word2vec how the error is computed after forwardprop?
|
I've read a few entries about underdispersion in count or binomial data, relating to poisson and binomial probability distributions. However, I haven't been able to find any information about gaussian distributions with underdispersed data.
I am currently analysing the average annual change in population size (λ). I h... |
Francis Diebold has a blog post "Causality and T-Consistency vs. Correlation and P-Consistency" where he presents the notion of P-consistency, or presistency:
Consider a standard linear regression setting with $K$ regressors and sample size $N$. We will say that an estimator $\hat\beta$ is consistent for a treatment e... |
I'm a beginner using machine learning (I finished Ng's course), I'm using scikit-learn in python.
I want to find the best way to detect anomalies in our system.
We have ongoing events that occur at a schedule (every few min/hours), and I want to detect when something abnormal happens.
Example data:
ID | epoch-time | du... |
I'm a bit puzzled how to analyse self-report questionnaires (for example psychometric studies).
For example, consider a standard Hamilton Rating Scale for Depression which comprises 21 items with numerical scores [0-4] for each item.
For example, I have a cohort of 100 subjects, who replied to this questionnaire befor... |
I am fitting GLMM's (using a binary variable as response variable and continuous variables as explanatory variables [family = binomial(link="logit")]), and I am interested in obtaining the effect sizes for each explanatory variable.
I obtain the effect size value by calculating odds ratios (Effect size in GLMM).
Howeve... |
I can found two. Feature ranking is computed to
reduce the dimensionality, when the number of features is prohibitively large for a predictive model to be applied. In this case, we actually compute feature ranking to perform feature selection.
be able to focus in later experiments (which may be performed in some biolo... |
I have the following simple regression outcome model: Y = b0 + b1*X + e, with X being potentially correlated with e. I have an instrumental variable Z correlated with X and assumed not correlated with e.
I understand that if I use an exposure model X = a0 + a1*IV + u, then I can use E(X) estimated with this model as t... |
I am trying to do a practice problem but am quite stuck, the question is as follows:
Where $\hat{\beta}_1$ is the coefficient for the the regressors. I figured that by the asymptotic normality property of LS estimates, then the $t_{\alpha / 2} = 1.96$. Hence, I think the confidence interval should be
$$\theta \in \b... |
Lets say I have a medical data set of cause of deaths.
df.columns
Index(['Cause of Death', 'Community Area', 'Community Area Name',
'Cumulative Deaths 2006 - 2010', 'Cumulative Deaths Rank',
'Average Annual Deaths 2006 - 2010', 'Average Crude Rate 2006 - 2010',
'Average Crude Rate Lower CI', 'Aver... |
The following is the formulation for how the GBM package in R calculates the loss function and terminal node estimates for gradient boosting with decision trees. My question is generally how are the optimal node estimates determined analyticalally and specifically as an example, for the Poisson deviance?
Where do thes... |
I was playing a game of cards with some friends and wondered :
What's the probability of drawing 4 cards from a normal 52 card deck with all different ranks?
I figured out 3 ways of achieving the answer, but only 2 of them are equivalent.
Treating 4 draws as independent events. We can multiply the probabilities that ... |
I am a little confused about how to handle binary variables and continuous variables before being fed into a neural network in R. Please can you confirm that I should normalize all variables to fall between 0 and 1 to ensure each variable has the same input weight?
For example I have one variable which is color and I h... |
One thing that I cannot find very clear, perhaps because I am still new in using R, is the derivation of the standard errors in instrumental variable packages using R (e.g., ivreg, sem, plm). I am trying to verify that the standard errors do indeed meet the following requirement found in (Wooldridge, 2009, 511):
$$
SE_... |
I have a sample of data that follows a lognormal distribution. I would like to represent the distribution as a "Gaussian" histogram and overlayed fit (along a logarithmic x-axis) instead of a lognormal representation. For simplicity, I'll call the average and sigma of the lognormal data mu_log and sigma_log, respective... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.