instruction stringlengths 9 38.7k |
|---|
Motivation
I am currently reading the following book: Understanding machine learning by Shalev-Shwartz and Ben-David. The book uses statistics terminology in its machine learning theory, and it is not clear to me how to reconcile the stat terms with terms used in coding practice. (I do not restrict my question to defin... |
I would like to evaluate the effect of a policy change that happened in 2014 in a region called R.
Before the year of the treatment, each city of R was classified into 4 zones called A, B, C, D, classified by order of "emergency", A being the best zone and D being the worst zone. After the year of the treatment, this z... |
Let $(X,Y)$ be non-negative absolutely continuous random vector with density function $f(x,y)$ and distribution function $F(x,y)$ and $\frac{\partial^2}{\partial x\partial y}F(x,y)=f(x,y).$
Can we write $\int_p^\infty\int_q^\infty f(x,y)dxdy=\int_p^\infty\int_q^\infty\frac{\partial^2}{\partial x\partial y}F(x,y)=F(\inf... |
I have been tasked with looking at statistically significant differences in the average number of days between Event A and Event B for a number of sites within my organisation. This is not my area of expertise. Could anyone please advise which types of statistical tests/processes they would undertake with data such as ... |
I have a Regression model where the coefficients of each variable need specific signs.
For Example, say I have a standard OLS model: Y = β1X1 + β2X2 + … + β7X7. I want coefficients β2 and β5 to be negative and the remaining coefficients to be positive.
Using the glmnet package in R, I have tried to constrain for the ... |
[self-study]
Imagine you have 24 boxes. Upon opening any box there is probability of 4.73% that you will find pearls of some value. The value of any pearl can be {4,5,6,7,8}. What is the probability that value of total pearls after opening all boxes is atleast 19?
I tried using simulation on 'R' and was able to get ans... |
I have a dataset which collected household responses over 3 years. It is unbalanced since not all households participated during the three surveys. I run multilevel PCA in stata to account for within and between variations. For comparison purpose I also run Overall PCA for the whole dataset considering data were indepe... |
I am using the propensity score match to grow my sample based on a smaller dataset of existing units that received the treatment. The match will find more likely units from its large population that received treatment which I can manually review and add to my sample. I can also grow my untreated sample from this match ... |
I’ve got a clinical dataset containing multi-variate timeseries (mts) data (e.g. heart frequency, blood pressure etc.) of 500 different patients. I would like to apply machine learning on these datasets. My aim is to classify each time series by predicting whether the patient survived or deceased. Another classificatio... |
Assume that we have a log-log regression model of the form:
$$
\log\left(Y\right)=\alpha+\beta\log\left(X\right)+u
$$
Here, the elasticity is defined as
$$
\epsilon=\frac{\text{d}\log Y}{\text{d}\log X}
$$
Here, the interpretation of the elasticity is essentially the extent
to which $Y$ changes in percentage terms (upt... |
For a research project I am trying to implement a multivariate mixture model on areal data using Integrated Nested Laplace Approximation (INLA). Let $y_{i,d}$ be a data point, where $i = 1, 2, \cdots, N$ is the observation and $d = 1,2,\cdots,D$ is the variable. At the top-level, I wish to specify my mixture model as:
... |
I have been having trouble interpreting my data of seedsets of flowers. I have gathered data from seven flowering species in four different elevations. Not all the species appear in every elevation and the elevations are not equally spaced from each other. I would like to see if there is a trend in seedsets based on el... |
Does correlation give better model predictability.
In case of using regression models, typically OLS, how does it help with the model predictability and what are its limitations.
Any articles or other resources would be helpful.
|
I (beginner…) need some general guidance on regression analysis:
I have run an OLS regression on some data and I’ve had some statistically significant relationships between IVs and the DV. My professor now asked me to „make sure that the relationship is not only there for high values in the IV“.
If I understand right, ... |
I am running the following logistic mixed model in lme4:
AllCond_logme <- glmer(Response ~ Condition + (Condition | Pt_ID),
family = binomial(), data = lme.df,
control = glmerControl(optimizer = "bobyqa"))
where Response is a binary outcome (1 vs 0).
I computed repeated c... |
I have a dataset with the following properties:
k > 2 groups
normally distributed
differing variance and sample size between groups
non-independent samples within each group
continuous variable
If the samples were independent, my understanding is that Welch's ANOVA could tell me whether the means of the groups were s... |
I understand that doing this leads to data leakage, but if I get better performance on the test set does it really matter?
I tried using caret with sampling = "smote" to use SMOTE on each fold individually, but I just don't have enough samples on the minority class when split into train/test.
I'm only interested in fin... |
I am using lavaan to run path analysis to predict PC from WA and LC. These are multi-group models. Described here is the first step (identifying best-fitting paths); it is followed by constraining parameters to be equal across the three groups (group.equal = c("intercepts", "regressions")), which is not described here.... |
I'm sure that this is trivial and I just can't figure out the right keywords.
I have a dataset A containing values of how many cars were observed in an hour long window.
I have a dataset B containing values of how many cars were observed in 30 minute long window somewhere else.
The two datasets are independent and ther... |
With the sample of people participating everyday in a diary study for 10 days. They fill in the same likert scale every day. How then I can use repeated measure anova after finishing the study?
|
Can someone help me understand the output of a cubist model created by the R Cubist package? The documentation package manual for objects of class "cubist" seems to be nonexistent. Looking for information on the rule quest has me looking through c source code and without much success.
Do these objects have any data in ... |
I built an app to illustrate the reliability of standardized tests for a (somewhat) non-technical audience. I'm not a psychometrician, so I want some extra eyes on this to make sure it makes sense.
The idea behind the app is:
Use the standard error of measurement to determine the standard error of differences using $S... |
What methods exist to improve the quality of generated images and the clarity of contours in the tasks of image denoising/debluring (using CNN), style transfer etc? I am interested in approaches that don't change network architecture and dataset (maybe special loss function?). Are there any articles devoted to this pro... |
I am interested in comparing the results of a single statistical test applied separately to two different datasets. My test produces lists of p-values and estimated effect sizes for the features of a dataset. I'd like to compare the output of the test on one dataset to its outputs on another to assess whether or not th... |
I have a dataset where with two questions. Question 1 is a multiple-choice question and asks the participants which treatment they took. E.g., treatment A, treatment B, treatment C etc.
Question 2 asks if the well-being improved (Yes/No).
So participants may have taken several treatments. Consequently, I do not know if... |
A survey is conducted among high school students, consisting of 30 questions designed to evaluate their levels of social media addiction. The responses to these questions are aggregated to calculate a final total score, ranging from 0 to 200, where 0 indicates no addiction, and 200 signifies a very high risk of social ... |
I want to estimate the average of a random variable by simulation. Also, I want to estimate a proportion by simulation.
I know that there are formulas to calculate the minimum sample size so that the estimated value is closer than $e$ units to the real value, with (at least) $1-\alpha$ probability. They are the typical... |
I have two cases that each one has some values on a series of variables (e.g. A, B & C). Is it possible to calculate a distance or similarity index between these two cases and then convert it to a correlation coefficient between the two cases?
|
I am trying to figure out what sample size recommendations to make in this case when the samples have different sizes. Since their sizes are different the variance of each will be different.
Suppose the dataset is to be used to inform the design of a new study in the future. Assume $\alpha=0.05$ and $power=0.80$ althou... |
I'm working on a problem involving clinical trial data and am trying to account for the different clinics patients were treated at. In papers I've read, authors present p-values for differences in means/proportions (chi-sq, Wilcoxon, etc tests) both normally and then "adjusted for site."
This makes sense in that there ... |
I'm trying to understant how to interpretresults from the bpnreg package to do glm on a circular response variable (flight directions).
I understood from the paper that the interpretation can be done using the SAM and AC parameters.
I've started with a very simple example, and tryed to reproduce the Predicted circular ... |
There is forward selection and backward elimination, and in both cases we can not only add or subtract variables, but also do both. My question is under which circumstances would the direction="both" give a different result than either forward or backward?
auto.both <- step(min.model, direction="both", scope=list(lower... |
Im trying to understand how kernelized ridge regression works, and how we manage to first transform, and subsequently learn on higher-dimensional features without explicitly having to calculate them.
So far this makes sense:
$ \hat{\beta} = (X^TX + \lambda I_n)^{-1} X^T Y = X^T (XX^T + \lambda I_n)^{-1} Y$
Where we can... |
I am building logistic regression models of some data to test a hypothesis and using cross-validation for each one. The cross-valdiation takes place within different subjects (mice in this case) of an experiment so the CV being within different individuals lets me get that individuals behaviour. But to summarize what... |
NOTE: Revised question following suggestions from others. Thank you for taking the time to help me refine this question to make it answerable!
Background
I want to compare the performance of two versions of a device: V1 and V2. I have done two pilot studies. I used a linear mixed-effect model and found 100% of my vari... |
I have to calculate $P(X < 6)$ for $X \sim N(7,5)$. When I entered pnorm(6, mean=7, sd=5) into R, it gave me a result of [1] 0.4207403, which I knew wasn't right (it's a university practice question). I calculated $Z = \frac{X-\mu}{\sigma} = \frac{6-7}{\sqrt5} = -0.45$ myself and plugged that into R as pnum(-.45) to do... |
I have the following regression model:
$$y_{ist} = \beta_0 + \beta_1 Post_{ist} + \beta2 Post_{ist} \times Distance_{i} + \theta_i + \alpha_t + \gamma_{st} + \epsilon_{ist}
$$
Where,
$y_{ist}$ is the outcome variable for district $i$ from state $s$ and
year $t$.
$Post_{ist}$ is a binary dummy variable equal to 1 if it... |
I have a noisy linear regression model, $Y = X \beta + \epsilon$ with noise $\epsilon$ sampled from a normal distribution $N(O, \sigma)$, where $\sigma$ is unknown and in turn sampled from a uniform distribution $U(0,\rho)$.
What is the best way to estimate $\sigma$ conditioned on $\rho$ and the input data sequence $(x... |
I have the following data
str(data)
'data.frame': 768 obs. of 5 variables:
$ PIANTA : chr "C-1-R1-1" "C-1-R1-1" "C-1-R1-2" "C-1-R1-2" ...
$ Trattamento: Factor w/ 4 levels "Controllo","Lidar",..: 1 1 1 1 1 1 1 1 1 1 ...
$ Blocco : Factor w/ 2 levels "1","2": 1 1 1 1 1 1 1 1 1 1 ...
$ Replica : chr "... |
I'd like to estimate "cost" using some covariates with a weighted gamma model using svyglm. The weights sum to 1, and there are about 10,000 rows in the dataframe df total, with columns including cost, and the covariates listed in the model below. Why is predict giving only values in the range of 5-11, when half of the... |
The evaluation of the moments of doubly truncated bivariate normal distribution leads to the formulas with a great complexity. It has not been possible to derive explicit formulae for the moments except some particular cases.
|
Suppose that we have samples from $m$ different $p$-dimensional normal multivariate distributions, where they share a common covariance matrix $\Sigma$ but the mean vectors may be different for each population. That is, the distribution of the populations are $\mathrm{N}_p(\mu_i, \Sigma)$ , for $i = 1,2, \ldots, m.$ Ea... |
I read online that:
Eigenvalue: Represents the variance explained by the principal component. It equals both the sum of squared loadings for that component and the sum of squared projections of data points onto that component.
Is this true? I also read that an eigenvalue (geometrically) is the average sum of squared di... |
I like how Spearman's correlation compares rank between two variables, since it puts less weight on my outliers but doesn't completely exclude them. Is there an equivalent procedure using ranks that I can use for multiple regression?
I tried to simply rank each variable from low to high, and then perform regression us... |
Individuals in my dataset have unequal numbers of measurements; some have one annual measurement, others have four quarterly measurements. I want to estimate the mean of the population that these individuals were sampled from, assuming that time has no effect. Does the MLE for the overall mean of a mixed effects model ... |
I will preamble by saying thank for reading this, and that any commenter should feel free to criticise any aspect of this modelling specification or workflow you deem naive or uninformed.
I am simulating two groups from this double sigmoid curve process:
$$ y = \frac{y_{\text{mid}}}{1 + e^{-(a \cdot \text{time} + b)}} ... |
I have trouble distinguishing between a factor and a replicate. For instance, in my class notes, there is a question:
To study the variability in CO2 emission rate by global regions 4 countries: US, Britain, India, and Australia were chosen. From each country, 3 major cities were chosen and the emission rates for each ... |
After fitting an ARIMA model with a covariate using the auto.arima function in R, I get the following results
What could be the reason as to why my results do not include the intercept. Also, I would highly appreciate interpreting the important metrics from the summary above.
|
I do not understand properly what a spline does even in a simple situation of a piecewise regression, and I need some help. Consider the following basic example:
library(data.table)
df <- data.table(power = seq(50,250,12))
thres1 <- 120
thres2 <- 200
coef1 <- 1/10
coef2 <- 1/5
df[,lactate_raw := fcase(power < thres1... |
The marker gene XYX1 being high in breast cancer is associated with poor prognosis with higher hazard ratio : 3.5. I want to calculate sample size with 1 - β (power) = 80%, one sided, type I error? How to perform sample size calculation and arrive at the number of samples?
What are the other requirements?
|
Do we need to adjust $p$-values for subgroup analyses in a meta-analysis?
I'm wondering if the typical subgroup analysis methods, like the ones in packages such as meta and metafor in R, account for multiple comparison adjustments similar to post-hoc tests.
I've seen questions on Stack Exchange about meta-analysis wher... |
I'm working on a problem (I paraphrase),
Consider the $\text{AR}(2)$ model $$y_t=\alpha y_{t-1}-(1-\alpha)y_{t-2}+\epsilon_t, \hspace{1em} \epsilon_t\sim N(0,\sigma^2).$$ The conditional least squares likelihood estimate of $\alpha$ satisfies $$\hat{\alpha}=\frac{\sum_{t=3}^ny_ty_{t-1}+\sum_{t=3}^ny_ty_{t-2}+\sum_{t=3... |
I have the following data
str(data)
'data.frame': 768 obs. of 5 variables:
$ PIANTA : chr "C-1-R1-1" "C-1-R1-1" "C-1-R1-2" "C-1-R1-2" ...
$ Trattamento: Factor w/ 4 levels "Controllo","Lidar",..: 1 1 1 1 1 1 1 1 1 1 ...
$ Blocco : Factor w/ 2 levels "1","2": 1 1 1 1 1 1 1 1 1 1 ...
$ Replica : chr "... |
A straightforward (single level) regression model, showing the connection between the reading scores of Year 5 students and their corresponding scores when they were in Year 3. Might be formulated like so:
$$y_{i,t} = \beta_0 + \beta_1*y_{i,t-1} +e_i \tag{1}$$
Where $y_{i,t}$ represents the reading test score of the $i... |
I have the following dataset
'data.frame': 768 obs. of 2 variables:
$ Trattamento: Factor w/ 4 levels "CONTROLLO","LIDAR",..: 1 1 1 1 1 1 1 1 1 1 ...
$ Risposta : num 0 1 0 1 0 1 1 1 1 1 ...
I have four treatments (Trattamento) and a response variable (Risposta) that is binomial.
I want to check whether the tr... |
As far as I understand it, when we compute a confidence interval (say a $95$% CI), we have confidence in the procedure, not in the current data we have (as a $95$% CI means that $95$% of confidence intervals computed for many other hypothetical samples will contain the true value in the population).
So just with the sa... |
I know the test is the correct one for my data but I'm struggling to interpret the results in a way I can coherently report. Using the example from the paper (https://www.jstatsoft.org/article/view/v076i04):
Performing the Subset Algorithm based on Factor levels
The Hypothesis of equality between factor levels 3 6 8 ... |
I have a small data set (n=25) with an unknown distribution and I'm trying to find a distribution function that is as similar as possible in order to ultimately determine tolerance limits. I used the EnvStat (eevd function) and tolerance (exttol.int function with the Gumbel specification) packages to adjust an extreme ... |
I am currently working on estimating a probability density function (PDF) nonparametrically using a Gaussian kernel. My goal is to determine the optimal bandwidth $h$ that minimizes the cross-validation (CV) score. To achieve this, I plan to implement a function in Python that computes the CV score for different values... |
I'm quite familiar with multiple IRT models; however, I can't seem to understand the Nominal Response Model. How is theta estimated? For example, if we have a science test with multiple-choice items ("Which one of the following is an animal?" A) chair, B) cat, C) owl, D) sunflower), how does the model "know" which answ... |
Beginner question sorry - I'm a coder and need stats advice.
I have a dataset broken down by local area, with columns for the proportion of owners who are French, the proportion of owners who grow artichokes, and the mean house price:
area,proportion_owners_french,proportion_growing_artichokes,mean_house_price
1,... |
My data is (n:43)genotypes with block as replication (n:2). the design is randomized complete block design. and I did normality test and the result said normal, but I did homogeneity test (levenetest) and the result is not homogen.
But I don't want to delete my outlier.
What should I do?
Do I need to do independency te... |
I am not able to solve this using transformation since binomial does not have a CDF. The question has 4 options, so I tried calculating the expectation of this and then comparing it to the expectations of the options, but none matched.
The correct answer to this is that it follows chi-square with 1 degree of freedom.
C... |
Let's say I have a database with 21 patients and one of these patients has died. In such a scenario, can we apply overall survival analysis using the Kaplan-Meier model or no? Meaning that does it have any statistical interest or it would be just a waste of time ? why / why not ?
|
I don't understand the second line of the following equation
I get:
$$f(x) \propto exp(-\frac{1}{2}(x-\mu)^T \Sigma^{-1}(x-\mu))$$
$$=exp(-\frac{1}{2}x^T\Sigma^{-1}x+\frac{1}{2}x^T\Sigma^{-1}\mu+\frac{1}{2}\mu^T\Sigma^{-1}x-\frac{1}{2}\mu^T\Sigma^{-1}\mu)$$
Would be nice if somebody tells me where my mistake is - seem... |
As Blackwell and Glynn 2018 note, an interesting property of marginal structural models is their ability to estimate treatment effects that account for the dynamic properties of panel data. For example, the estimation of unbiased lagged treatment effects, the estimation of the effects of an entire treatment history, et... |
I'm sorry for the following -probably- stupid question.
I'm performing a psychological experiment and I have no idea about how to establish how many control items one has to pass to be included. My professor told me to use a binomial test. I have 12 trials in total, and in each one the probability of success is 1/3 (si... |
I'm trying without success to solve the following exercise in my econometric textbook:
Show that $\sqrt{N}\left(\widehat{\beta_1} - \beta_1 \right) \xrightarrow{d} \mathcal{N}(0,a^2)$, where $a^2$ is constant, implies that $\widehat{\beta}$ is consistent. (Hint: use Slutsky's theorem).
My attempt is to consider $Y_N \e... |
I am running a random forest model in the following variables(attached):
Is it necessary with Random Forests Classifier to remove highly correlated variables or should I leave the model as is? If I were going to remove 'redundant variables', what is the best approach?
My workflow currently is:
Calculate pearson's corr... |
Question on using latitude and longitude data in state space models in r: I have ecological data gathered over multiple years, including counts of animals (divided by male/female/young) and latitude and longitude coordinates for each observation. Do I need to divide these latitude longitude coordinates up into regions ... |
I am working with following model specifications (Regression_ Modelle, Methoden und Anwendungen-Springer-Verlag Berlin Heidelberg (2009), p. 147):
$$Y \sim MVN(X\beta, \sigma^2I)$$
$$\beta|\sigma^2 \sim MVN(m, \sigma^2M)$$
$$\sigma^2 \sim IG(a_0, b_0)$$
The author derives the joint prior as follows:
My question is how... |
Average travel time* for men = 27.2 minutes, women = 23.6 minutes
My calculations are the followings:
The problem is my calculated mean is 28.4 but chart says 27.2
I calculate the mean with this formula: (sum of products of midpoint and freq) / sum of freq
|
I am doing non-linear models with brms. My model is :
bf(y ~ (I * (N * K)^b)/area_ha,
I0 ~ 1,
b ~ 1,
nl = T,
family = gaussian())
I want to include the error on the predictor N. N is a population size estimated from mark recapture (schnabel). For eac... |
I am currently working through a book/class in quantitative genetics, and in Falconer and Mackay's Introduction to Quantitative Genetics, the following line stumped me:
"The between-group component expresses the amount of variation that is common to members of the same group and can equally well be referred to as the c... |
I am attempting to understand Mean Squared Error when evaluating point estimators for particular parameters of interest. The book we are reading for class states the following:
The mean squared error (MSE) of an estimator $W$ of a parameter $\theta$ is the function $\theta$ defined by
$$
E_{\theta} (W-\theta)^2 = \text... |
I have a classification task, with 3 classes.
A model $M$ is a classifier that outputs the probability of the input being each of these classes. For example, for input $x$, I have $M(x)=[0.1, 0.2, 0.7]$ - which means that this model thinks the probability of $x$ being of class 3 is $0.7$. I'm not concerned with maximum... |
I want to fine-tune BERT for Named Entity Recognition (NER). However, when fine-tuning over several epochs on different datasets I get a weird behaviour where the training loss decreases, eval loss increases and performance metrics such as F1, accuracy, precision and recall increase. I have tried scripts from different... |
I understand that randomised controlled trials (RCTs) are used to perform causal inference, but I'm a confused about how this is reasonable. Let's say that we have a treatment, and we want to find out if this treatment "works". We randomly allocate participants into two groups, and one group is allocated the treatment ... |
I am trying to study a problem in algebraic number theory through a set of computational experiments. I have an enormous (say, of size $X$) family $\mathcal{F}$ of polynomials and I'm trying to understand how many distinct values a certain function $g$ takes over this family.
To experiment, I randomly sample $N$ (say $... |
I have some data ($x$ and $y$) collected over multiple days for multiple people. I want to test whether the contemporaneous associations between $x$ and $y$ (measured daily) is stronger depending on variable $z$ measured at baseline. I am not sure how I should add the x*z interaction to my model using lme4 in R. Here i... |
Let be the linear model given by:
$$y_i = x_i'\beta + \varepsilon_i$$
Using its matrix form, consider strictly exogenous assumption and spherical assumption, respectivelly:
$$E[\varepsilon | X]=0, \quad E[\varepsilon \varepsilon'|X]= \sigma^2 I_n$$
We know that the spherical assumption is equivalent to i) $E[\varepsilo... |
I have two image files. One image has subplots of (100) stock price graphs with stock ticker labels. The other image has subplots of (112) stock price graphs shuffled to a different row and column in the image with a unique numeric id. 100 of the 112 stock ids are from the first image. The time periods in both the imag... |
Suppose $X=(X_1,\cdots,X_k)$ follows the multinomial distribution with a known size $n$ and an unknown probability vector $(p_1,\cdots,p_k)$.
Find the necessary conditions for the solution to the maximization of $\prod_{i=1}^n p_i$ subject to the constraints $p_1>0$, $\sum_{i=1}^np_i = 1$ and $\sum_{i=1}^np_ih(X_i) = 0... |
Trying to figure where I'm going wrong with the following. My goal is to calculate var$(\bar X_n^2)$ using $E[(\bar X_n)^4]=\frac{1}{n^4}E[(\sum X_i)^4]$ given that $X_1,...X_n$ are iid with $EX_1=\mu, E[(X_1-\mu)^k]=\alpha_k$.
$$E\left[\left(\sum X_i\right)^4\right]=E\left[\sum_i X_i\sum_jX_j\sum_kX_k\sum_lX_l\right]=... |
My sample comprises of data on accounting performance of companies that had their IPOs between 2009-22. I want to examine if companies which had more foreign investor participation in their IPOs outperform the companies which had more domestic investor participation in their IPOs. For this, my dependent variable is ret... |
There is a very nice and clear way to illustrate the geometry of PCA. Is there a similar, geometrical way to illustrate Exploratory Factor Analysis? For example, we have 3D data and we’re using 2 factors. How can one visualise what happens when we do EFA?
|
I have the following code:
from matplotlib.lines import Line2D
from sklearn.metrics import silhouette_score
from sklearn.cluster import SpectralClustering
from shapely.wkt import loads # Make sure to import loads from shapely.wkt
# Convert WKT column to geometry
gdf_coefficients['geometry'] = gdf_coefficients['WKT'].... |
Let be the linear model:
$$y_i = x_i'\beta + \varepsilon_i$$
Using its matrix form, consider strictly exogenous assumption and spherical assumption, respectivelly:
$$E[\varepsilon | X]=0, \quad E[\varepsilon \varepsilon'|X]= \sigma^2 I_n$$
We know that the spherical assumption is equivalent to i) $E[\varepsilon_i^2|X]=... |
I am designing a lab practicum to study error propagation. Let's suppose I will measure $x \pm\varepsilon_x$ and $y \pm \varepsilon_y$, where $\varepsilon_x = \varepsilon_y = \varepsilon$ for simplicity. Both variables are related to the mathematical expression:
$z=c \frac{x}{y}$, where $c$ is a constant.
I want to det... |
I am getting confused about the derivation of standard errors for the OLS estimator $\widehat{\beta}$. I have seen two different ways to derive standard errors: (i) from the exact covariance matrix of $\widehat{\beta}$ conditional on the regressors' matrix $X$ and (ii) the approximation from the asymptotic distribution... |
I am working with a non-random sample in an observational study but would like to do statistical testing to show certain trends and processes. Statistical tests assume random sampling, which is not met in my experiment so my concern is that my results (or interpretation?) are invalid. What options do I have? E.g. shoul... |
I have 50 sets of time series data, which are collected from 50 'good' runs of the fabrication process, and I would like to utilize all of these nominal datasets to train my model.
From what I`ve learned, in KDE the underlying nominal probability distribution is estimated by using just a single nominal dataset. Is ther... |
When it comes to tuning neural networks, there are lots of design options:
Optimiser
Learning rate
Activation function
Number of hidden layers
Number of nodes/neuron in each hidden layer
Regularisation, e.g. early stopping
Batch size
I know the general principle is to start simple and incrementally add complexity. Ho... |
Let $(Y_1, X_1), \dots, (Y_n, X_n)$ be iid sequence drawn from $F$. For a fixed $q\in (0,1)$, consider the linear q-quantile regression $Q_Y(q|x) = \beta_qx$, where $Q_Y(\cdot\mid x)$ is the conditional quantile of $Y$ given $X=x$. Estimating $\beta_q$ is easy for fixed $q$ using $$\hat{\beta_q} \in \arg\min_{\beta \in... |
Let $\textbf{X}_1, \dots, \textbf{X}_n$ be an (iid) random sample. From this random sample, we compute $\hat{\alpha}$ (an estimation of a certain parameter $\alpha$). Let $\textbf{Y}_1, \dots, \textbf{Y}_n$ be an (iid) random sample. From this random sample, we compute $\hat{\beta}$ (an estimation of a certain paramete... |
I am working with following model specifications (Regression, Modelle, Methoden und Anwendungen, Springer-Verlag Berlin Heidelberg (2009), p. 147):
$$Y \sim MVN(X\beta, \sigma^2I)$$
$$\beta|\sigma^2 \sim MVN(m, \sigma^2M)$$
$$\sigma^2 \sim IG(a_0, b_0)$$
The author derives the full conditional density like:
The author... |
I am trying to understand the impact of a graduate degree in mathematics on the wages of students compared to other degrees. I have been running a probability score matching model using a logarithm regression to estimate the propensity score and then following with a NN matching algorithm (1 to 5) with different calipe... |
I have fit a lmer model as follows:
m1 <- lmer(spad ~ farm * treat * stage + (1|farm:block) +
(1|farm:block:treat), data = dt)
# random effects are the blocks within farms, and treatments within
# blocks within farms.
There are 5 farms, 2 treat, and 3 stages.
Using the equatiomatic package allows... |
I'm performing a survival analysis and I have some quantitative variables that I categorized (but I also mantained the quantitative variable for the univariate analysis). For example, I have the variable age in terms of mean and SD and categorized (< 40yrs and >=40 years). My question is if I should include them both a... |
I am trying to measure if referees are biased in favor of players from the same geographic region (as themselves) in a sport. I want to see if players from the referee's region are more likely to win. For each match, I have the region of the winner, the region of the loser, the region of the ref, the seed of the winner... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.