instruction stringlengths 9 38.7k |
|---|
Why in Shrinkage, due to an overfitted prediction model, do we tend to overestimate risk for "high risk" subjects and to underestimate risk for "low risk" subjects ?
Intuitively I would expect an error in both directions due to poor calibration for the model overfitted on data.
|
I am running pooled regression for 67 group my dependent variable is gini disposable and independent variable is women empowerment (economic,social,political) and institutional quality ( government stability,democratic accountability,law & order)
When I run regression without interaction term women empowerment and inst... |
Basically, the title of the question is all there is.
quoting from bishop's pattern recognition and machine learning:
In both the Bayesian and frequentist paradigms, the likelihood functions $p(D/w)$ plays a central role. However, the manner in which it is used is fundamentally different in the two approaches. In a fr... |
I was training a simple NN with 1 hidden layer for binary classification for a simple dataset (XOR). Later, I found that the loss goes down, plateaus then goes down again. Same goes with accuracy, it goes up, plateaus, then goes up again.
Here is the loss and accuracy:
I experimented with different number of hidden la... |
I have a dataset with: ID, years, $Y$ (dependent variable), treatment, a matching-group variable and a control variable $X$.
I have created the matching-group variable using $X$, the idea is to compare only comparable treated and control individuals (the control group is individuals with a higher or just a bit smaller ... |
I am trying to analyze the cost and risk implied by an insurance for occupational disability. I know that for people in their 30s the probability of attaining some degree of occupational disability is 42%. What I would like to know is, how to calculate the monthly probability of an event happening that causes me to be ... |
I am writing with a question about understanding difference-in-differences estimates. I am using a DID approach for my Bachelor's thesis to measure the impact of TBTF reforms on SRISK of G-SIBs in the EU (the substance is not really important though, I need help with the technical part of my model), however, I have not... |
The problem:
It has been said that it is difficult to distinguish Coke and Pepsi by taste alone, without the visual cue of the bottle or can. In an experiment that I did in a class at Stanford, 10 cups were filled at random with either Coke or Pepsi. A student volunteer tasted each of the 10 cups and correctly named th... |
Let's assume we have an ODE $\dot{x}=F(x)$ where $F: \mathbb{R}^n \rightarrow \mathbb{R}^n$ is a vector field. And we observe a trajectory $\gamma: [t_0,t_1] \rightarrow \mathbb{R}^n$ from this ODE but just a finite number of data points $\{x_0,x_1,...,x_N\}$. These data points might have some noise.
My goal is to esti... |
i'm doing a project with a non-stationary time series. i used BoxCox trasformation and differences to make it stationary
selling_boxcox<-BoxCox(selling,lambda=2)
selling_stationary<-diff(diff(selling_boxcox,lag=12,differences=1),differences=1)
and i've made this ARIMA model:
model<-arima(selling_stationary,order=c(1,1... |
In SPSS, you can calculate means for cases that responded to a minimum number of questions. Some example SPSS syntax would be:
COMPUTE variable_new = MEAN.4(x1, x2, x3, x4, x5, x6, x7).
This generates a new variable (i.e., variable_new) only for cases that had a value present for 4 or more of the array x1 - x7. That's ... |
I have a dataset of 10 columns and approx 4,5k rows, each row representing a sampling point. As sampling points share some common features, a categorical variable with 27 levels were created to address some random effects. The columns contain information related to the sex ratio at birth (SRB; number of sons/number of ... |
I have mortality data for municipalities in my country and I would like to know if an approach such as modelling with a Linear Regression and if the assumptions like normality, equal variance and more specially, the spatial independence of residuals are not met, I should try a global model like Spatial Lag or Spatial E... |
Say you have measured three conditions (x, y, and z) together and at three separate times (three replicates). These raw values are normally distributed and in a linear space.
You use those three measurements to determine a mean value of x, y, and z and then express the fold change of y and z compared to x; otherwise kn... |
I am following the paper https://axon.cs.byu.edu/Dan/678/miscellaneous/SVM.example.pdf and trying to solve the SVM on paper using mathematical equations.
When I try to solve them, I get different set of w and b..
My doubt is : how do I know the w and b that I get from equation is optimal one?
α1Φ(s1) · Φ(s1) + α2Φ(s2) ... |
I'm a physics undergrad who started becoming curious about this question after exam season. After any exam, we're typically given the following parameters: Min, max, mean, median, std. deviation, and the total number of students who took the test.
Clearly this isn't enough information to determine the distribution of... |
It seems to be a common method in deep learning papers to measure the similarity of features coming from the backbone using cosine similarity.
However, in my opinion, since in most cases, the features coming from the backbone are put into the fc (fully connected) layer and applied to various downstream tasks, measuring... |
I'm not sure if this is a question for StackOverflow or CrossValidated, as the question relates both to coding and statistics.
I have a panel data with information about sewage and water privatization in 82 municipalities between 1998 and 2020. For each year and municipality, I have the hospitalization per inhabitants ... |
I got the answer as $\lambda^2e^{-\lambda t}s(t-s)$ using the properties like independent increment and stationary increments. But I can't seem to understand the steps in the solution of the book.
For reference, the definition followed in the book is, let $\eta_1,\eta_2,\ldots$ be a sequence of independent random vari... |
Consider the beta-binomial model (beta prior, binomial likelihood). So we have$$
\begin{align}
P(\theta)&\sim \text{Beta}(\theta|\hat a,\hat b)
\propto \theta^{\hat a-1}(1-\theta)^{\hat b-1}\\
P(Y|\theta) &\propto \theta^{N_1}(1-\theta)^{N_0}
\end{align}
$$
where $N_1, N_0$ are the usual empirical counts for the likeli... |
I am trying to estimate the costs required for hosting a fine tuned large language model for real time inference. There will be 100s of users querying the endpoint concurrently for multiple use cases like classification or text generation. How to determine AWS EC2 instance type, memory requirements (both GPU and RAM) a... |
Say we have a stochastic process from which we take finite samples to build up some sample probability distribution. As we include more time steps, the sample distribution converges to that of the "true" underlying distribution. I'm curious about the nature of this convergence, particularly how it scales with the total... |
I have a report of a machine in which it is documented how many parts it has produced each day in the last year. From this I could calculate the mean with its standard deviation in [parts/day].
However, I need the mean and the standard deviation in [days/part], so mathematically "1/x".
Normally, I would first convert a... |
I'm modelling a process for which the probability of the event (stop) not happening before time $t$ is $e^{-\lambda\cdot t }|\lambda>0$. When the event happens, the process stops running for a constant time $\kappa > 0$. After this time has passed, the process restarts.
For a time horizon, $\tau > 0$, using $N = \left\... |
I'm trying to think of a method i could use to generate the random numbers between 0 and N in a random order and with uniqueness that would use the smallest footprint of memory at the beginning and only increase the more numbers are generated.
The existing solution i have is (python code):
def _generate_random_sequence... |
I am in the process of modeling the predicted immune response since time to last drug dose. Please note that this is illustrative and not really the real context. I have been using LMM to model the regression equations
I noticed that, from day 30-60, the slope is (+) which does not really make sense (i.e., it's counter... |
Suppose I have a noisy observation $Z$ of a covariance matrix $F$, given a prior on $F: p(F)$, I would like to find the posterior of $p(F|Z)$, does the following specification forms conjugacy?:
$$ F \sim IW(v, F_0)$$
$$Z|F \sim W(v_k , \frac{F}{v_k})$$
$IW$ denotes Inverse-Wishart, $W$ denotes Wishart. $Z$ is a noisy o... |
Assume that we have a time series that we want to model as a stationary real-valued stochastic process: $$X_t , t \in \{0, 1, \dots \}.$$
Two complementary measures of linear dependence between the lagged versions of $X_t$ $(X_{t-1}, X_{t-2}, \dots)$ and $X_t$ would be the autocorrelation and partial autocorrelation fu... |
A definitive proposal can be found in:
Elo, Arpad E. (August, 1967).
The Proposed USCF Rating System,
Its Development, Theory, and Applications.
Chess Life XXII (8): 242-247.
How exactly are
THE PERCENTAGE EXPECTANCY CURVE (Fig. 1),
TABLE I - RATING DIFFERENCES, and
TABLE II- WINNING EXPECTANCIES
(page 243-244) calc... |
I wonder in clustering, what does algorithms like KMeans do with missing value data? For example, if in one of our samples, the information for one of the dimensions is NaN, what KMeans do with that dimension when compare it to others? Does it give a value like average of others or just ignore this dimension when compa... |
I am estimating a panel logit model, which looks like this:
$logit(P(event_it = 1)) = β₀ + β₁X_{i,t-1} + µ₁Z_i + α_i + ε_{i,t}$
where:
$P(event_it = 1)$ represents the probability of a flood occurring for catchment i in month t.
$X_{i,t-1}$ represents the independent variables for catchment i at time t-1, specifically ... |
I'm trying to implement a simple VAE by following several tutorials
like this and this. This is the code that I came up with:
class VAE(torch.nn.Module):
def __init__(self,input_shape,h_dim,z_dim):
super(VAE,self).__init__()
#Encoder, image to hidden space
self.img_2hid = Modules.Linear(input_shape,h_dim)
... |
I have two different experimental setups with three replicas each. The data describes the growth of bacteria over time. I am looking for a test to determine whether the time series of the two setups are significantly different (p<0.05). I tried several approaches but did not find a clear solution by now. This is what I... |
How does one specify the model in the following question:
Are there subgroups of patients for which the trajectories of five biomarker behave similar in relation to the outcome(s) while accounting for characteristics like sex, age at injury and GCS?
The R-package that I am using is lcmm and more specifically the hlcmm(... |
Suppose $X_i\stackrel{IID}\sim N(\mu,\sigma^2)$ for $i=1,...,n$, where $\mu$ is known. We want to apply the likelihood ratio test to decide between the hypotheses
$$
H_0: \sigma=\sigma_0 \\
H_1: \sigma\neq \sigma_0
$$
for a given fixed $\sigma_0$.
Doing some computation and writing $t=\sum_{i=1}^n (x_i-\mu)^2/n\sigma_0... |
I am a beginner into additive models and GAMs, but have good enough knowledge of linear regression. I was going through this wikipedia article to understand more, but can't seem to understand the identifiability problem for multiple smooths in this section. To Quote, Wikipedia says
This makes sense to me. However when... |
I am using a GAM with ordered categorial data to estimate temporal trends in shifts from one category to another. I would like to add the model fit to my data, but I don't know what to do with what I get from predict.gam - how do I get from the linear predictor to something like the blue line in the left panel?
Or shou... |
Let's suppose that I'm trying to predict a stochastic forecast with machine learning models, and I don't have missing, null/NaN values and outliers. Also suppose that there is an error for the predictive model which decreases if I normalize and standardize the data:
a) I put the raw data in the machine learning model
... |
I am new to time series but for my project I wonder if there is something along those lines:
My aim is to classify each datapoint of a time-dependent time series. In practical terms, I have arrays of variable lengths. Those capture the progression of a signal in time. Now I want to use deep learning to classify the dif... |
The question here is about a passage in the very frequently (10,000+) cited paper by Storey and Tibshirani "Statistical significance for genomewide studies" (https://doi.org/10.1073/pnas.1530509100).
For their method they need to estimate a parameter named $\pi_0$, which is more or less the overall false discovery rate... |
I'm having a bit of a hard time interpreting the results of this linear mixed-effects model:
happy_prob ~ height_shuffle * height_original + (1 | template)
Where height_shuffle and height_original are two categorical variables with three levels (high, mid, low) referring to vowel height (e.g., /i/ is high while /a/ is... |
I was hoping someone could help with a problem in my area of Optometry. We use visual fields/perimetry to assess patients visual function. This consists of patient responses (or not) to points of light projected onto various locations on the retina at various stimulus intensities. The dimmest light seen is recorded as... |
Let $X$ be a normal random variable with mean $\mu$ and variance $\sigma^2$.
What is the $E\left [ \frac{1}{e^X-1} \right ]$ and $Var\left [ \frac{1}{e^X-1} \right ]$?
Any thoughts or references are welcome.
|
Given a random variable $X$ such that for some $p$, we have
$$
|| X ||_{L_p} = (E |X|^p )^{1/p} \le C_p < \infty.
$$
Supposedly then the following statement is true: for any $v>0$
$$
E (X^2 1_{|X| > v}) \le \text{min} \left ( ||X||^2_{L_2}, \frac{||X||^p_{L_p}}{v^{p-2}} \right).
$$
For the first, I can see that
$$
E (X... |
I have data indicating quality of life (QOL) as a percentage score from questionnaire data. The data is longitudinal (collected at baseline, 3, 6, 9 and 12 months) and there are other covariates such as site and cancer type. To model these percentage scores I used a glm with binomial family and logit link. In R this wa... |
I am setting up a Hierarchical model whose target distribution is $p(\theta,w|y)$, $\theta$ being a reduced set of high-level parameters, $w$ being a data augmentation of very high dimension, and $y$ being the data.
The big problem is that there is a coupling between $w$ and $\theta$ making vanilla Gibbs sampler unusa... |
My goal is to evaluate the evolution of the COVID-19 effect using a triple difference estimator
First, I am using a differences-in-differences model to evaluate the effect of COVID-19 on student test scores. I am interested in the progression of students between grade 2 and grade 5 for a cohort exposed to COVID-19 in g... |
I am curious as to why a likelihood ratio cannot give positive evidence for the null, since it is a model comparison.
Indeed, this is more confusing given the fact that Bayes Factors are similar comparisons (nearly equivalent in some cases) and yet can give evidence for the null.
Why can a likelihood ratio not give evi... |
I have a list of data that consists of the difference between two groups' averages (list C). The two original lists consist of averages across ~20 samples per group (list A and list B). In other words: list A - list B = list C.
I want to find observations in list C such that they are significantly different from 0, whi... |
I'm wondering how to interpret residual deviance from a Poisson regression on 0 degrees of freedom?
I have a dataframe with count data on events and number of people at risk for the disease, with ten observations, representing 10 years.
This is the code I used:
p <- glm(df$n_events ~ df$year, family = "poisson", offset... |
Let $X_t$ be a stationary time series. We have computed $\rho_1 = 0.8, \rho_2 = 0.5, \rho_3 = 0.4$. If we assume that an AR(3) model without a constant is appropriate, get estimates of $\phi_1$, $\phi_2$ and $\phi_3$ using Durbin-Levinson.
We have $$Y_t=\phi_1Y_{t-1} + \phi_2Y_{t-2}+ \phi_3 Y_{t-3} + \varepsilon_t$$
Du... |
I am currently proofreading my master's thesis, but I came across a thing I wanted to make sure I am doing right. So, for my experiment, I mainly wanted to test the effect of X on Y, but effect X has 2 types. I hypothesized a difference in main-effect between these 2 types, which I tested using two-way repeated measure... |
In "An Introduction to Statistical Learning" by James, Witten, Hastie, Tibshirani on page 39 the authors explain why the Bayes error rate is greater than zero - "It is greater than zero because the classes overlap in the true population so $max_j Pr(Y=j|X=x_0)<1$ for some values of $x_0$". I don't understand this expla... |
Sliced Wasserstein distance (SWD) depends on Radon transform, which is defined as $\mathbb{R}I(t,\theta) = \int \delta(t-\theta^Tx)I(x) \, dx$. The definition of SWD, however, does not use the variable $t$ and it assumes it is zero. This means that the slicing direction always pass through zero: $$\int_{\mathbb{S}^{d-1... |
In an attempt to check my understanding, I've been attempting to tweak and reproduce the results of this analysis (data found here). In this original analysis, the author fit a linear mixed effects model to a longitudinal experiment where the residual errors within participants follow an $AR(1)$ pattern.
My goal was to... |
In brief, I have a dataset that has dubious residuals, can anyone help me diagnose them, and maybe find a better modeling solution, or just general advice?
The data has 8,419,694 rows and 5 columns. The R commands to generate the model is
form <- formula(cbind(success,failure) ~ log(Q1+1)*log(Q2+1) + control)
m <- glm(... |
I have a few parameters; each is measured imprecisely with a known but unique random
measurement error. We can assume that the error is normally distributed, with mean 0 and known variance (different for each parameter).
I have two problems
I would like to estimate an average of these parameters. I think the solution ... |
Question: I want to clarify my understanding of OLS regression using Matrix Algebra.
Let's assume we have 2 different independent variables $x_1$ and $x_2$.
Our 'model' will be the plane that lives in $\mathbb{R^3}$ that minimises the sum of squared distances between each point on the plane corresponding to observation... |
I have a quantile regression model that gives me prediction intervals (PI), and I also need to have a point estimate for all sorts of reasons (or at least something as close to a point estimate in a point-prediction model).
What I'm doing now is to just change the loss function of the model to the L2 loss so that I can... |
In Cortes et al. “Sample Selection Bias Correction Theory.” In Algorithmic Learning Theory, 5254:38–53. Lecture Notes in Computer Science. 2008., they describe how inverse probability weights can be used to correct for sampling biases when training machine learning models.
In feature/trait based machine learning models... |
Hi guys I want to calculate the pointwise mutual information for related search queries on an e-commerce website.
In order to calculate that I need to fist calculate the co occurrence matrix for the search queries.
We say an event is a set of query, user and a product that the user has searched for the query and clicke... |
If BMI is calculated from measures of patient height as well has weight, do statistical tests and resulting p values around BMI changes need adjusting for multiple comparisons? I.e. Two tests were performed 1) height and 2) weight
Is a correction needed to account for possible family wise error rates from measuring two... |
AIC is normally calculated using the maximum likelihood, so you must have some probability distribution to work with. But I saw some formulas using the sum of squared residuals or the mean absolute deviation.
From my understanding the formula using the sum of squared residuals is valid when your data is normally distri... |
I am trying to cluster a very large set of data points, of roughly (20000, 100) shape. I could not run density based DBSCAN or SpectralClustering due to the enormous amount of memory required. However when I do K-Means (with appropriate K selected with the 'elbow' method) or GMM, I see that points that are visually far... |
Background information: I am analyzing a dataset with about 120 unique animals that were radio-tracked 1-6 years. Most of them were radio-tracked for a year, but a handful of them (about 20) were radio-tracked for max 6 years. I used a generalized linear mixed model because the residuals were not normally distributed.... |
I am encountering an issue with the downsampling in the Conv2D layer when running my code on an AWS SageMaker Notebook. The code runs fine on my local machine and in Google Colab, but I am facing this specific problem in the SageMaker environment.
Here is the relevant code snippet:
# Define the model
inputs = Input(sha... |
I am using the following data
https://docs.google.com/spreadsheets/d/1ovl8oQnIi_uApVCo93BN_UOUY3F1YoKw/edit?usp=sharing&ouid=117026321594556045652&rtpof=true&sd=true
and the ClusterBootstrap package to perform hierarchical clustering to compare my treatments and sexes.
I ran the following:
library(ClusterBootstrap)
set... |
I have a very simple question for those who are familiar with scale ranges. I am interpreting a psych assessment taken for an assessment class. The assessment includes 24 different wellness scales. The scales are said to be "equalized to a range between 25-100." I'm not quite sure what this quote means. Thanks for any ... |
[![the picture is pdf and realibility formula]
1how to use the formula in picture for matlab?
1
|
As part of my work I've gathered biological data for a set of (n=3) mice under two conditions ~ treatment and control. Since there is some inherent variability in behavioral research, I collected data from each mouse under both treatment and control on multiple occasions.
For example, consider I'm looking at total dist... |
According to the article here, we have two disjoint distributions as shown below.
.
KL divergence for the distributions are
I don't understand why denominators are 0 for both.
|
I want to know how to calculate power in Cochran’s Q test. I performed an experiment designed within-participants. Participants respond to one question in each three conditions. The number of participants is 54. The result showed a significant difference between the conditions (Q(2)=11.8, p <.01). However, reviewers as... |
I was asked to find a p-value for difference in means of a given data using 1,000,000 permutations and p-value using z-score of 1,000 permutations. In the beginning I received different results and tried to explain this, thought it has to do with CI of the permutations. However, after a long search I understand it is s... |
I have a continuous variable and a factor variable, and would like to build a tensor product interaction between the two with a cubic regression spline bs="cr" and a random effect smoother bs = "re".
I understand ti(x) re-parameterised marginal smooth, and but NOT to bs = "cr".
However, when I applied s(x) + s(y) + ti(... |
I am deriving likelihoods of class membership after LDA dimensionality reduction.
I understand from ttnphns's answer to this question that the pooled covariance matrix between discriminants is the identity matrix, allowing for simplification of the multivariate normal distribution from
$$f(x|k)= \frac{1}{\sqrt{(2\pi)^k... |
I have simulated a Gaussian curve in 50 bins of data. I have then repeated this many times, drawing the amplitude of the Gaussian from a log-normal distribution. Here are a 10 realizations:
(IMAGE 1)
I actually create 10,000 realizations, I take the sum of the 50 bins (that you see above) for each of the 10,000 realiz... |
In any non-cross-sectional, prospective (whether it be longitudinal, survival, etc) study there are baseline variables which contain the status of the variable at the beginning of the study, and these remain fixed for the duration of observation. But these are distinct from other time-invariant predictors which may con... |
I conducted an experiment in which students rated sentences and I would like to fit a mixed effects model using lme4. My response variable is RATING (i.e. the judgements given by the students), the two predictors (SENTENCE_TYPE (3 levels) and WORD_ORDER (2 levels)) are categorical variables. In addition, I would like t... |
I am understanding why likelihoods are not PDFs using links such as What is the reason that a likelihood function is not a pdf. However I am getting more confused.
For instance, the likelihood of I.I.D. Normals which can be seen as
$$
\prod^N \mathcal N(x_n|\mu,\sigma^2)
=\frac{1}{Z^N}\prod
\frac{1}{2}
(X-\mu)^\top
(\... |
How can I decide on the importance of various categories in GLM?
In many cases it is recommended to use the absolute value of the standardized coefficients as a measure of importance. However, this depends on the choice of reference coefficient.
In the example below, depending on the reference level ill determine that ... |
I am performing a meta-analysis of survival outcomes (expressed as % progression-free survival or overall survival at 1/2 years) from single-arm studies. I am using R package 'meta' with function 'metaprop', following the methodology of some other meta-analyses in the field. I was pointed out that the measures of effec... |
Im using multiple linear models/regressions and wondering whats the best way to report a model in a scientific manuscript? I see so many versions. Should i go for the info in summary() or anova()? If I use anova() and get df and SSQ etc, categorical values only give one value, but if I run summary, then I get one estim... |
Suppose we have some population of individuals, each having X and Y variable. I know that in the population, most individuals have low values of X, but I want to find regression formula for low as well as for high values of X.
Consider 2 scenarios:
A) I take random sample from the population, measure X and Y, and estim... |
I am developing a prediction model for prognosis in 90 patients after an intervention. The result is almost 50% were recovered. However, this intervention consists of two different treatments. Since this is not a randomised trial, patients were applied to each treatment depending on the severity of their condition. So ... |
I have two regressions:
$y_{i} = \beta_{1} \cdot x_{i} + \beta_{0}$ and $y^{*}_{i} = \beta_{1}^{*} \cdot x_{i} + \beta^{*}_{0}$
$x_{i}$ is the same in both equations, but $\overline{y} = k \cdot \overline{y^{*}}$. In other words, we know the relationship between the means of $y_{i}$ and $y_{i}^{*}$. The question is if... |
I am wondering how to correctly interpret Kaplan Meier Curves, the log-rank test respectively. I calculated a log-rank test to compare two survival curves and got an insignificant p-value from this. My medians of the two curves are 527 (Ci.: 445, 682) and 832 (Ci.: 404, 1332).
Does the insignificant log-rank test mean ... |
I'm using the bootstrap percentile method to frequently do hypothesis testing (two-tailed test for independent sample where H0 marketing KPI of group A - marketing metric of group B = 0; H1 is ≠ 0) and build the confidence intervals to get statistical significance.
Before starting the test, I'm always asked by my stake... |
The following 2 theorems (from Bayesian Data Analytics 3rd edition by Gellman, appendix B) show proofs for why Bayesian posteriors converge to a point mass around θ0. Where θ0 is the true parameter value or the value that minimises the KL divergence from the true data generating process, f(y). In these theorems the θ... |
I have designed and run an online experiment in which we've slightly changed parts of a web page. Let's say users visit our website to place food orders and the order funnel looks like this: home --> menu --> basket --> checkout --> order. In this experiment we're making changes to the basket.
The success metric of the... |
The hazard function in survival analysis is represented as (https://in.mathworks.com/help/stats/cox-proportional-hazard-regression.html):
Here the exponential term is termed as hazard ratio as mentioned here:(https://in.mathworks.com/help/stats/cox-proportional-hazard-regression.html):
However, in some other document... |
I have a list of binary labels (0 or 1) for a number of examples and the corresponding predicted probabilities for class 1. My first goal is to estimate pearson correlation between binary labels and predicted probabilities. My second goal is to perform a two-sample independent t-test between the probabilities assigned ... |
I am trying to use PSM for program evaluation. My data is at the individual level and I would like to do the PSM at the district level (match districts with each other rather than individuals).
Based on the literature I could find online, I have done the following:
Calculate propensity score using score at the individ... |
I want to do a risk evaluation of (I'm making this up) the price of tea and the temperature. My first approach is to use a multivariate normal random number generator where I tell it the means and covariances of my two variables. I now have simulated data to assess some semblance of probability of outcomes.... or do I.... |
I'm using prophet model for one of my time series analysis. I learnt that it optimizes the parameters by MAP approach. The fundamental idea of when to use MAP vs MLE is that when we have a strong prior probability. If we fail to have a prior probability then MLE is the parameter estimation technique that is used. Havin... |
I am looking for a fast model that can fit several predictors $X$ to a non-linear response $y$.
To show examples of the non-linearity of the response, I have generated the plots below by sampling different values of only a single predictor at a time (e.g., occDens or THeatDay). These are rather extreme cases of non-lin... |
I am quite unsure how to interpret the r2c and r2m results from a linear mixed model that measures the effect of size and beta on debt ratio on some companies.
The model looks like this:
lmmodel <- lmer(Debt_ratio ~ size + Beta_value + (1|company), data = df).
Using the r.squaredGLMM function I get the following outpu... |
I am analyzing a dataset that includes sequences of patients and their associated health values, both provided by different doctors. Each sequence represents the treatment order, and the health values indicate the patients' health status as evaluated by the doctors. The higher the health value, the better the patient's... |
Say we have a Markov Decison Process (MDP) with countably infinite state space $S$, continuous action space $A$, well-defined transition matrix $T_a(s,s') = P(s'\mid s,a)$ and some stochastic policy $\pi(a\mid s) \in [0,1]$.
Question: If we observe an agent following policy $\pi$ in this system long enough, are the mea... |
I want to control for the effects of confounds in an observational study (using self-report questionnaires), however, I do not want to imply a causal relationship between my two constructs. Therefore, I am unsure if I can conduct a regression without inferring causality, and so I do not know how to control for confound... |
I'm facing a situation where I'd like to do Bayesian conjugate updating, but both the prior and the likelihood (a Student-t) can only be approximated by a finite mixture of normals. I know that a normal likelihood + mixture prior is a straightforward case (see e.g. old Persi Diaconis and Donald Ylvisaker paper) or the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.