instruction stringlengths 9 38.7k |
|---|
I've segmented my data using UMAP (dimensionality reduction, with a fixed random seed) and subsequently HDBSCAN to generate a number of clusters.
I've also looped through different values to fine-tune both UMAP and HDBSCAN to generate the optimal solution based on the relative_validity score embedded within HDBSCAN. I ... |
I am trying to understand why the impliedConditionalIndependencies function of the rethinking package returns the same value for a mediator and confounder. They both return that D is independent of M, given A. Here is some reproducible code to show the output:
library(rethinking)
library(dagitty)
mediator <- dagitty('d... |
I am struggling to prove that the quantile function of Irwin-Hall distribution is subadditve over n (the number of uniform distributed random variables that the Irwin-Hall distribution is created of).
$$
Q_{n+m}(p)\leq Q_{n}(p)+Q_{m}(p)
$$
in which $Q_n(p)=F_n^{-1}(z)$ and $F_n(z)$ is the CDF of the random variable $\t... |
So gglasso in R appears to allow the user to implement adaptive group lasso by specifying group-wise penalty factors as you would with a typical adaptive lasso. Typically, when I want to train an adaptive lasso then I train a ridge regression and use the ridge coefficients more or less like this, but in this situation ... |
Having looked at the discussions for similar questions I find none quite equate with this apparently simple case I present here.
It has been calculated that the average age between female generations in the past is 23.2 years +/-3 (1 sigma).
So if I go back two generations this will be on average 46.4 years, but what i... |
I want to investigate the statistical properties of the signal from a radar sensor, both simple quantities (e.g. mean, std dev, PSD) as well as investigating distributions between different measured quantities.
My question mostly relates to sampling frequency dependent metrics, like power spectral density.
If we say th... |
I have a set of two-dimensional shapes, each represented by one or more closed paths, which enclose one continuous area. My objective is to establish a measure of similarity between these shapes. I do not have a rigid definition of similarity; it might encompass characteristics such as slightly jagged edges or a small ... |
Cureently, I am conducting a regression study of household expenditure (target variable) from a set of determiants (income, household size, ...) in Malaysia using OLS and Random Forest. It is a long question...
In my study, result shows that OLS regression (0.853) performs slightly better than Random Forest regresion (... |
I'm developing a mathematical (SIR-style) model for cholera transmission in the Bengal Delta which is fit to data using MCMC.
The purpose of the model is more explanatory rather than predictive, and I would like to find out which parameters are most influential to the output (and especially how particular combinations ... |
My question is around applying undersampling methods to an imbalanced, and highly dimensional dataset, with mixed data. Lets say as an example, I have 150 features, also a highly imbalanced binary target variable.
I want to apply a sophisticated undersampling method, not random undersampling. Lets say something like OS... |
How do we calculate sample sizes (and power) for an outcome that is discrete and is only measurable between two individuals of a group?
Suppose we have $n_A$ individuals in group A, and $n_B$ individuals in group B. The outcome we measure is the number of metabolites that are common between any two individuals within g... |
I am using proc autoreg in SAS to conduct an ITS analysis and I have a question about stationarity. Proc autoreg is able to perform the augmented Dickey-Fuller (ADF), the Phillips-Perron (PP), and the KPSS test for stationarity. I believe I have a good understanding of the difference in their interpretations between th... |
New to meta-analysis. I am conducting a systematic review and meta-analysis which is investigating a single health score across both interventional studies and observational studies in different patient populations. I am unsure of how to conduct the meta-analysis as the reviewed studies do not posses a control group wh... |
I am super stuck on the question. I looked up on how to find the mean on a Box-and-whisker plot, and never got a clear answer.
|
There are two random variables defined as follows:
$X \in \mathbb{R}^n$ ($n$-dimensional random vector) and $X \sim N(0, I)$ where $I$ is an identity matrix
$Y \in \mathbb{R}^m$ ($m$-dimensional random vector) and $Y|x \sim N(\mu+W x, \Psi)$ where $\Psi=\sigma I$ is a diagonal matrix
$n \ll m$
What are the ways to sh... |
One of the hyperparameter tunning approaches that I came across recently is Sequential Model-Based Optimization (SMBO), which is a very smart approach that uses previous iterations in order to find the best values for the hyperparameter.
I just want to make sure I understand it right. So there are several steps and fac... |
I'm developing a mathematical (SIR-style) model for cholera transmission which I am fitting to data using MCMC. The model is reasonably complex (4 compartments, 6 parameters, simulation over 11200 days, fit to 270 data points) and is externally forced by time-varying temperature and precipitation time-series. When I ru... |
The number of significant terms in ACF = 17
The number of significant terms in PACF = 8
We are going to use AR in this model since PACF is less than ACF. AR is 8 and MA is 17. Since we only took the first difference for the trend, then d is 1. P is the number of significant terms in PACF for trend. Q is the number of ... |
If a stochastic process is generated by a vector autoregressive process of order $d$, can it be strictly stationary. I know that under the stability condition, that this is weakly stationary process.
$\begin{align}
\mathbf{y}_t = A_1\mathbf{y}_{t-1} + \dots + A_d\mathbf{y}_{t-d} + \boldsymbol{\epsilon}_t, \quad t \in ... |
I am trying to formally evaluate and visualize the satisfaction of the positivity assumption when estimating the ATT using R and I am having a tricky time figuring out how to do so. As Greifer and Stuart point out, the positivity assumption can be relaxed a bit for estimating the ATT because we would only need counterf... |
If $\boldsymbol{X} \sim \mathcal{N}_N(\boldsymbol{\mu},\boldsymbol{\Sigma})$ is an $N$-dimensional gaussian vector, where $\boldsymbol{\mu} \in \mathbb{R}^N$ and $\boldsymbol{\Sigma} \in \mathbb{R}^{N \times N}$, what is the distribution of
$$Y=\lVert X \rVert^2$$
where $Y=\lVert \cdot \rVert$ denotes the $L_2$-norm (... |
I have some data that I have modeled as a function of two Gaussian Process Regression models $X_i(p_i)$, where $p_i$ is a parameter, so my regression models is: $y(p_1, p_2) = f(X_1, X_2) = X_1(p_1)*(1 - exp(a/X_2(p_2)) $
I know how to compute confidence intervals for $X_i(p_i)$ for a given value of parameter $p_i$, bu... |
I'm conducting an experiment in which participants receive either an object A or an object B. Next, we ask participants if they want to trade their objects with the alternative object (i.e., object B for participants receiving object A, and Object A for participants receiving object B). I want to compare the proportion... |
The above picture is an excerpt from a paper I am reading. (Roads and Loans, Review of Financial Studies). I think based on the reporting of the results from the authors, beta1 is their interest? Is that correct? But even if so, what are the other variables doing here? Also, if one wants to include an interaction effe... |
I am running a hypothesis test, and I am trying to share the statistics on this test to business user. I have calculated effect size using Cohen's d. Now I want to find a way to convert this effect size back into original units of measurement, something more consumable for the business user.
Means of the two groups are... |
I have a dataset containing geolocation and time of purchase information for buyers of a new product (Product X). I'd like to determine the unit of spatial provision when this product was offered to customers. In other words, I want to find out whether:
The product was provided to all potential customers at once,
The ... |
I'm new to econometrics and this might be a dumb question.. but if I were to include an interaction term, do I also have to input the variables separately as a control variable?
For example, Y = a + beta1 + beta2 + beta1beta2. This contains all of the variables separately as a control. Is this always the right way to g... |
I am writing a thesis now, and I ran into a problem - I understand the basic concepts of time series econometrics and what models and tests exist, what exactly they check, but I can not find good structured information on how to choose a model for multinomial regression. I'm looking for something like a practical guide... |
Based on my studies, Hoeffding inequality is used for bounded or sub-Gaussian random variables which are explained on the Wikipedia page. I am reading the book Introduction to Multi-Armed Bandits by Aleksandrs Slivkins. In page 161, he provides a general inequality without the assumption that a random variable is bound... |
In the following i am studying life expectancy as an example: where I have dummies for a person being male, female, smart, wealthy. The base reference is a child who is not smart or wealthy.
Life expectancy=β_1 Male+β_2 Female+β_3 Wealthy+β_4 Smart+β_5 (MALE Wealthy)+β_6 (FEMALE Wealthy)+β_7 (SMART Wealthy)+β_8 (MALE W... |
In [4D U-Nets for Multi-Temporal Remote Sensing Data Classification] they give the following formula for the traditional 2D CNN. But I’m confused about the w_i,j in this formula:
From my knowledge I would say that if you have a NxNxd input, your kernel will have shape HxWxd in this case. So the ‘depth’ of the kernel m... |
Suppose you draw a random sample from a probability distribution, with the objective of gaining information about a parameter of that distribution. The inferential usefulness of the probabilistic information (Fisher information about the parameter) of the sample is obvious. Likewise, if we examine a set of messages sen... |
A characterization of the multivariate Gaussian distribution with a fixed mean and covariance matrix is that it is the unique probability distribution that maximizes differential entropy. That is, the Gaussian PDF is the unique solution to the following maximization problem:
$$
\text{argmax} \{\mathbb{E}_f[\log(f(x))] ... |
I'm still learning about mixed effects models, so bear with me here. I'm interested in modelling a binary response using a generalized additive mixed effects model with "year" as a covariate and random effect, but I've seen far smarter people than I argue for and against it (a covariate can't be both). For example:
Ab... |
I am working on a problem that gives me a joint pdf:
$$f_{x,y}(x,y) = 6xy, 0<x<1, 0<y<\sqrt{x} $$
I am asked to find $P(X < 0.5)$ with three decimal places.
My approach was to integrate: $\int_{0}^{\sqrt{x}} 6xy\ dy = 3x^2 = f_{x}(x)$ to get the marginal pdf of $x$. Then, I integrated again: $\int_{0}^{0.5} 3x^2 dx$ to... |
I've learned that ANOVA is simply a t-test but can compare more than 2 groups. However, I recently saw someone including an interaction term in an ANOVA test. What exactly is this doing? Do I interpret the ANOVA with Interaction effects the same way as a regular ANOVA? (simply compare the means of the groups, where one... |
We're working with Wooldridge Econometrics without matrix algebra.
My professor introduces a simple static time series model:
$$y_t = \beta_0 +\beta_1x_t+u_t$$
In the presence of serial correlation, we adjust for variance with the presence of autocorrelation:
$$Var(\sum_{t=1}^nw_tu_t | X) = \sum_{t=1}^nVar(w_tu_t|X) + ... |
Let $\{X_n\}$ be a sequence of independent random variables such that $\mathbb P(X_n=\pm 1)=\frac 14$, $\mathbb P(X_n=\pm n)=\frac 1{4n^2}$ and $\mathbb P(X_n=0)=\frac 12 - \frac 1{2n^2}$ for all $n\ge 1$. Define the triangular array $\{X_{nj}:1\le j\le n\}_{n\ge 1}$ by setting $X_{nj}=\frac{X_j}{\sqrt n}$. Check whet... |
Let there be a repeatable real world experiment with two outcomes denoted by $0,1$ for convenience (Tossing a coin for example). Let $X_i$ be the random variable that models the ith repetition of the experiment. It is an assumption of our model of that real world phenomenon that $X_1,X_2,X_3,...$ are independent ident... |
Let $\{X_n\}\xrightarrow{d}X$ and for some $p>0$, we have
$$\sup_{n\ge 1} \mathbb E[|X_n|^p]<\infty$$
Show that for any $r\in (0,p)$, we have
a. $\mathbb E[|X|^r]<\infty$
b. $\mathbb E[|X_n|^r]\to \mathbb E[|X|^r]$ as $n\to \infty$
[Note: You must not use (b) to prove (a)]
I am pretty sure we need to use Skorohod Rep... |
I am attempting to classify people as pregnant or non-pregnant. The business case requires that someone be considered in the model if they meet certain criteria (morning sickness, missed ovulation, etc.). Additionally, the business case requires that someone be classified as pregnant if that individual has a terminati... |
i have a data set that is being generate by a Bernoulli distribution let say $\mathbf{X} \sim x \in \{ 0,1 \}$, where x=1 with probability p. I dont have any information what is the 'p' parameter of this distribution and i am gathering sample to estimate it.
My goal is to find the best estimation for 'p' in a sample of... |
I want to conduct a simulation study on double machine learning in Partial linear regression setup as described in Chernozukov's paper for Double machine learning. I want to use lasso and want the number of covariates to be larger than the number of sample . Can you please give a scenario? I can't find any example rela... |
Network Meta analysis is mostly applied within the medical field. What about applying it to the business or marketing field ? Would that be possible ?
|
Consider the following item:
3.1 Resources and expertise availability
4 – High availability of resources and expertise
3 – Moderate availability of resources and expertise
2 – Low availability of resources and expertise
1 - No availability of resources and expertise
Respondents have to select one option. Numeric values... |
I was reading this paper and the book "Introduction to Quantum State Estimation" by Yong Siah Teo and I am facing some issues trying to understand how the definition of the cost function given in these two references can match each other and how the likelihood function can rise from this definition.
The paper reads:
A... |
I would like to model the Value-at-Risk of U.S. sector indices and the U.S. Broad Dollar Index using the variance-covariance method. To achieve this, I model the conditional means and variances of the returns using ARMA-GARCH models. Here is the issue: I first need to determine whether ARMA orders are necessary to elim... |
I am trying to solve Exercise 4.8 in Cowpertwait-Metcalfe: Introductory Time Series with R. (For self study, not for coursework.)
We are given a time series model
\begin{align*}
x_t & = x_{t - 1} + b_{t - 1} + w_t\\
b_{t - 1} & = 0.167 (x_{t - 1} - x_{t - 2}) + 0.833 b_{t - 2}
\end{align*}
where $w_t$ is white noise. W... |
Show that if $X$ and $Y$ are independent random variables with $X+Y\stackrel{d}{=}X$, then show that $\mathbb P(Y=0)=1$. Can the independence condition be dropped?
I could solve the first part using characteristic functions, but I am stuck on the second part where I need to give a counterexample. I think we need to u... |
I'm looking for where best to start on the following problem.
I have a graph of N nodes and each node as a weight. I need to group all nodes into X groups such that the sum of weights in each group are approximately even and that each group is a connected component of the original graph.
After some simple searching I c... |
In my understanding, the ROC curve plots the True positive rate and the False positive rate.
However, I've also read in other places that the ROC curve helps determine where the threshold for classifying something as "1" should be. Eg. Lets say if the probability of an an object is a "dog" is greater than 50% or 0.5, ... |
I'm reading on Control chart rules and there is a rule which says: "7 or more consecutive points on one side" in considered "out of control". However, does it take into account the amount of data points? For example, if I have 100 data points (i.e does In-process control tests 100 times), the probability of having <=6 ... |
In Bishop's PRML on page 259 he discusses a L2 regularizer for each layer of a 2-layer neural network, given by
$$
\begin{equation}
\frac{\lambda_1}{2}\sum_{w\in W_1}w^2 + \frac{\lambda_2}{2}\sum_{w\in W_2}w^2
\end{equation}
$$
He then explains that this corresponds to the prior distribution
$$
\begin{e... |
I need to compare the significance of Gender between the two groups.
Here is the table:
df <- data.frame(No = c(1:15),
Group = sample(1:2, 15, replace=T),
Gender = sample(c("F","M"), 15, replace=T))
Ge_M <- df %>%
filter(Gender == "M") %>% group_by(Group) %>%
summarise(Value = n(... |
I am working on an attrition dataset which has a large number of categorical parameters. Each categorical parameter has a high cardinality, so one-hot encoding them is out of question. I was looking for models which can handle categorical data with high cardinality and came across CatBoost and LightGBM. Catboost is wor... |
Suppose I have a model (Model_A) that can predict the net weights of products from an arbitrary input X.
Weight = Model_A(X)
Model_A has a mean absolute error of a.
I have a set of ground truth weights for a bunch of packages with many individual products. My objective is to use Model_A to predict the weights of the p... |
Given that $X\sim\text{Bernoulli}(\nu)$, for some $\nu\in(0,1)$, and $Y\sim N(0,1)$ are independent random variables. What is the entropy $H(CX+Y)$, where $C$ is some fixed constant? I am a bit confused about how to derive this since we are adding discrete and continuous random variables together. Thanks.
|
i have 2 data frames, an old training data set, and a new training data set.
Both have the same features and order of the features used for training the model along with the ground truth column.
something like so:
f1 f2 f3 ... Ground_Truth
v1 v2 v3 ... |
I want to correct for alpha error accumulation for my 10 crossed linear mixed models. The random parameters are specified as follows: random intercepts for subject and stimulus and a random slope for factor1,factor2, ... to factor10 in subject are estimated. The R-Code looks like this.
m1<-lmer(outcome1 ~ factor1 + (fa... |
I would like to know if there is a statistical model to analyze my problem:
I want to test if the location of the tumor is related to the level of a particular biomarker
A patient may have multiple tumours (tumor sites can be correlated but let's ignore this point to start).
It is not a competitive model, since the ap... |
Here is a graph of the 29 patients in my study, with three follow-up periods.
Not all patients completed all three follow-ups
I want to test the overall trend to see if it is significantly different from 0 and if it is increasing or decreasing. I'm wondering if the best test to do is the Mann-kendall test or if it's th... |
I have about 200 test items that contribute to 8 sections of a test, called Brain_Test. The 8 sections are converted to standardised scores. The standardised scores are individually interpreted, or added to provide an overall test score and interpretation.
I am interested in a small part of a section. Let's call it Sec... |
So I am doing a project where the response variable is the number of days in which a product is rebought. Explanatory variables are the weight of the product, serving size etc.
So basically I am predicting the number of days in which customers will likely rebuy, given the product weight, and serving size. All products ... |
In an intervention study, I have the following information - % of students passing an exam pre- and post intervention, sample size for control group and intervention group at pre- and post intervention, how can I work out the effect size?
|
The Pareto Type II distribution, also known as the Lomax distribution, has the following density,
$$f(x|\alpha,\lambda)=\frac{\alpha\lambda^{\alpha}}{(\lambda+x)^{\alpha+1}}, \qquad x>0,\ \alpha>1,\ \lambda>0$$
with $\lambda$ known. I'm trying to find an approximate confidence interval for $\alpha$. For context this is... |
I have a model for which the lower bound takes the following form
$
\log p(x) \geq \mathbb{E}_{recog}[\log \frac{gen}{recog}] + \mathcal{c}
$
where recog and gen denote the factorization in the recognition and generative models, respectively, and c is
$
\mathcal{c} \propto \log(2),
$
i.e., a constant term. Given that ... |
I want to study the uncertainty propagation through a nonlinear function $Y = f(X)$. I am assuming that $X$ is normally distributed and I am using the moment method approximating $f(X)$ by its first (or second) order Taylor approximation. By using this method I would obtain the output mean and standard deviation $\mu_Y... |
I was wondering if any have advice on what the correct steps/interpretation are with regards to the following questions on Cox regression.
As a side note, I am using STATA MP 15.1 to analyse the data and I am quite new to survival analyses.
Are my covariates assumed to be time-variant? I have a dataset that has quarte... |
The formula for the Z-score combination is,
$$
Z_w = \frac{\sum_{i=1}^k w_i Z_i}{\sqrt{\sum_{i=1}^k w_i^2}}
$$
Euclidean norm was used as the dividend. Why isn't it absolute-value norm ($\sum |w|$)?
Though it was called Stouffer's method, it was invented by Liptak, T. (1958). In the paper, I could not find any discussi... |
I have a question with respect to running multiple linear regressions for the entire sample and different subsamples:
I have a dataset that includes a dependent variable y and several explanatory variables x1, ..., xN and z. I am interested particularly in the binary explanatory variable z. If I split the entire datase... |
I'm working with the survreg() function of the R survival package, and I understand that the default scale parameter for the Weibull distribution generated by this function is on the log-linear scale. In the code snippet at the bottom of this post, you can see I transform the scale parameter to the original scale of th... |
I'm looking for an association between 2 variables before and after manipulation. I ran 2 separate crosstabs and I'm able to see for which cells there's an association. Additionally, I want to see whether the association change from before (part1) to after (part2) manipulation is significant. I'm attaching a screenshot... |
This code create the linear bondary between two classes.
% Töm
clear all
close all
clc
x1 = randn(50, 2);
x2 = 10 + randn(50, 2);
x = [x1; x2];
y = [linspace(1, 1, 50)'; linspace(-1, -1, 50)'];
% Träna en linjär SVM med quadprog
C = 10;
H = (y*y').*(x*x');
H = H + 10*eye(size(H));
f = -ones(size(y));
Aeq = y';
beq = ... |
I have a sample of stroke patients and I want to find the education effect on their performance in a neuropsychological tool. The total sample is n=19. I have divided the sample into 3 groups according to their years of education, so I have 3 groups (1st group: n=5, 2nd: n=5, 3rd: n=9). Shall i do a Mann Whitney U test... |
I need some help understanding how to write a variance equation.
I have the general variance equation written as
$$
\sigma_{t}^2=\alpha_0+\alpha_1u_{t-1}^2+\beta_1\sigma_{t-1}^2.
$$
I am wondering how to make this specific such as if I used returns on the S&P500 index. For example in this study I entered the following ... |
Given the IV estimator for $\beta_1$ (From $y = \beta_0 +\beta_1x + u$):
$$\beta_1 = \frac{Cov(z, y)}{Cov(z, x)}$$
And it's sample analog:
$$\hat{\beta_1} = \frac{\hat{Cov}(z, y)}{\hat{Cov}(z, x)}$$
Which simplifies to:
$$\hat{\beta_1} = \frac{\sum_{i=1}^n(z_i-\bar{z})(\beta_0 +\beta_1x_i + u)}{\sum_{i=1}^n(z_i - \bar{... |
I have some survival data and need to fit survival models to it and extrapolate. I plotted the log cumulative hazard and empirical hazard plot (using muhaz). There appears to be a change in the hazard around 400 days, but the two curves appear to be parallel.
I'm considering my options as, fitting standard proportional... |
I have two stationary time series $X(t)$ and $Y(t)$ that I know are correlated to each other but they also each have autocorrelations. Each has a credible interval band for each time series at every time $t$ defined by their respective means $\mu_x(t)$ and $\mu_y(t)$ and standard deviations $\sigma_x(t)$ and $\sigma_y... |
I'm working on a problem statement which involves ranking some short-lived items in an order such that the items expected to sell the most in the next n days are ranked on top - basically ranking based on expected sales.
I've labelled historical data for such items. The data includes information about the items themsel... |
I developed an ABM to evaluate land use change and I tested 4 different scenarios, each scenarios contains some stochasticity and I therefore run each scenarios 40 times.
The 4 scenarios are made of 2 times 2 constrasting scenarios : 2 climate scenarios (1 and 2) and 2 economical scenarios (A and B). We therefore have ... |
I recently came across this study describing the benefits of the author's relaxed adaptive LASSO regression. The author describes a simple algorithm (which appears to be glmnet, effectively), as well as a newer algorithm which is slightly optimized for speed. It occurs to me that you could possibly do something similar... |
You have a basket of $n$ assets whose returns are multivariate normal with zero mean. The correlation between any pair of assets is 1/2. What is the probability that $k$ of the assets will have positive return?
I think the answer should be $\frac{n!}{k!(n-k)!} \frac{1}{2^n}$, regardless of what the correlation is. Is t... |
I have data which reports the relative performance (in percentage) of several candidate objects with respect to a standard object. In other words, the performance of the standard object is always reported as 100%, while that of the candidate objects could be below or above 100% , i.e. the performance could be 200% ,it ... |
I'm just exploring Generalized Linear Models for the first time, and trying to see if I can correctly fit the simplest model I can think of. So I'm generating random values from some NegativeBinomial distribution and then fitting it with a GLM.
np.random.seed(5555555)
weeks = np.arange(np.datetime64("2020-01-01"),np.da... |
Working on VARX model and I want to include MA term here but I have not found any package in R to build VARMAX model. MTS package can be used to fit VARMA model but I want to include exogenous variables while fitting the model.
is there any R package available for VARMAX modeling? if not then any alternative for this?
|
Say that I have a vector of success rates, which are each ratios bound by [0,1]. I know how to get a normal approximation of this data; however, I'm interested in getting the MLE fit for Beta(a,b) which best described this distribution of rates.
I'm well aware of the Beta-Binomial Bayesian model. However, I do not have... |
I am trying to measure the relationship between the price of a futures-contract and the current price of the underlying asset on the day of purchasing said futures-contract. For this I have a dataset with daily data on both, amassing about 8000 observations, where 3500 of them have values for both variables.
The variab... |
I am conducting a research study on sex differences in the physical limitations of patients with ankylosing spondylitis (AS), using the Bath Ankylosing Spondylitis Metrology Index (BASMI). The BASMI is a composite score that consists of five components, including cervical rotation (measured in degrees), tragus-to-wall ... |
I am dealing with a binary classification problem (class 0/1) with class imbalance. Given the vector of predictions, I would like to compute:
F1-Score for class 0
F1-Score for class 1
Weighted Average F1-Score
Inverse Weighted Average F1-Score
The last one is a custom metric that I think could be useful: it works exa... |
How do you explain a box plot with categorical variables on the x-axis? For example, I have these two box plots, how do you interpret relative comparison of each category within the box plot?
Sample data:
# Create a Pandas dataframe
df = pd.DataFrame({
'demand': ['low', 'medium', 'high', 'extreme']... |
Among the binary strings of length $n$, what is the distribution of the lengths of the homogeneous runs ?
E.g., for $n=4$ the possible strings and run lengths are
$$0000: 4;0001: 1,3;0010: 1^2,2;0011:2^2;
\\0100: 1^2,2;0101: 1^4;0110: 1^2,2;0111:1,3;
\\1000: 1,3;1001: 1^2,2;1010: 1^4;1011:1^2,2;
\\1100: 2^2;1101: 1^2,2... |
Someone I know are using linear regression to estimate differences-in-mean for parental stress, given a binary explanatory variable $X_i=[0,1]$. They have found a small, but significant effect.
They have a sample of 3000 parents, but the sample is very uneven, with 2700 parents with $X_i=0$ and 300 with $X_i=1$. So it'... |
I was hoping someone could help me confirm or correct me on my interpretation of my estimated coefficients of ARDL model.
All my variables are converted into natural log form, ln, both Y and Xs.
My interpretation of say a coefficient on varibale Y first lag, L1, of .726
will be: a 1% change in the first lag of Y is ass... |
One parameter survival distribution with increasing hazard rate is (for example) Rayleigh and Lindley, where Rayleigh's hazard rate increases linearly and Lindley's hazard rate increases with a concave trend.
The total time on test (TTT) transform procedure is used as a tool to identify the hazard behavior of the data ... |
I am a bit confused with the following problem of probability:
"We select 3 phones of a sample in which we know that the 60% of them contain one mistake and the 10% contain more than one mistake. We define the variables $X$="number of phones with some mistake" and $Y$="number of products with less than two mistakes". O... |
Suppose I obtained two survey data $D_1,D_2$. (I did not design surveys and I am told to conduct analysis. The survey sample is not a probability sample but a "census" of convenient sampling.) In $D_1$, the survey collected population characteristics. I found some outcomes of interest is related to population character... |
Given a multivariate regression, in a form bellow, what would be the minimum number of observations ($n$)?
$$\mathbf{Y}=\mathbf{X}\mathbf{B}+\mathbf{E},$$
where $\mathbf{Y}, \mathbf{X}$ and $\mathbf{E} \in R^{n\times m}$ $(n>m)$ and $\mathbf{B}\in R^{m \times m}$. You can treat each column of $\mathbf{Y}$ and $\mathbf{... |
Suppose you have 3 or more tables with different observations or hypotheses to be merged with a inner join. The tables have partially overlapping columns, and when completely merged yield a reduced set of combined conditions. What are some algorithms for joining multiple tables (more than two at a time) so that they ... |
can someone direct me to a paper etc. that states the assumptions of ARDL that need to hold for parameters to be valid?
ARDL is an OLS based model , does that mean the regular assumptions of Gauss-Markov are also assumptions of ARDL?
|
I have a question about using the anova function and Anova from the car package. I know there is a question about Type 1, 2 and 3, but the question is this: I am doing an analysis where I want to compare the average interactions in networks of floral visitors in three treatments (three categories). I am using three cov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.