instruction
stringlengths
9
38.7k
I would like to design a proposal of the form: $$ p(t=(t_i)|\hat{t}=(\hat{t}_i)) $$ where $t$ (and $\hat{t}$) lies in an affine hyperplane $T \subset R^n$: $$ t \in T \Leftrightarrow \sum_i t_i=1 $$ Ideally I would like to approach something like: $$ (t_i)| (\hat{t}_i) \sim \mathcal{N}((\hat{t}_i),\sigma^2 I) $$ with ...
I have a data set and keep getting $D=1$ when I use the KS-Test. It doesn't matter what distribution I use. For example, consider the following: ks.test(data,"pnorm") ks.test(data,"pexp") For these, I get: D = 1, p-value < 2.2e-16 alternative hypothesis: two-sided The data I have looks exponential. Yet the KS-Te...
I am not sure if this is the right forum to ask this. I have some data of the houses, like their size(in square meters), if they use aircondition, how many residents live in, I have their electricity consumption as well. I want to train any Machine Learning Algorithm to the dataset above, in order to create a model tha...
Consider the following code and output: par(mfrow=c(3,2)) # generate random data from weibull distribution x = rweibull(20, 8, 2) # Quantile-Quantile Plot for different distributions qqPlot(x, "log-normal") qqPlot(x, "normal") qqPlot(x, "exponential", DB = TRUE) qqPlot(x, "cauchy") qqPlot(x, "weibull"...
I am running a model selection analysis with a continuous dependent variable and a variety of continuous and categorical explanatory variables. For two of my continuous explanatory variables I am fitting curvature terms as it looks like there is a quadratic relationship between them and the dependent variable. When I ...
I have designed an idea and am looking for similar approaches in other literature/areas or if I have applied the Bayesian concepts wrongly. Here is a statement of my problem: I am modeling the influence of a single variable X on the odds of a death event. The base chance is 15%. I am going to take the approach of usin...
Let $X_1, \dots, X_n$ be independent exponential $(\theta)$ random variables. Suppose we are interested in testing $H_0: \theta = \theta_0 = 1$ versus $H_A: \theta = \theta_1>1$. Consider two tests with rejection regions: Test 1: {$ (x_1, \dots, x_n) \in \mathbb{R}^n: \sum^n_{j=1} x_j \geq k_{\alpha}$}, Test 2: {$ (x_1...
The very simple case assumes that we have a model like $y = a + bx + e$ where the condition $cov(x,e)=0$ is true. Hence one can use the relationship of the moment conditions to estimate the parameter $b$, i.e.: $b = \frac{cov(x,y)}{var(x)}$ The estimate of $b$ is then achieved by replacing the moment conditions by the ...
I have two random variables $X$ and $Y$ which follows Normal distribution , whose pdf's are given by $f(x)= \frac{1}{2 \sqrt{2 \pi} \sigma}[e^{\frac{-(x-1)^2}{2 \sigma^2}}+e^{\frac{-(x+1)^2}{2 \sigma^2}}]$ $f(y)= \frac{1}{ \sqrt{2 \pi} \sqrt{1+ \sigma^2}}[e^{\frac{-x^2}{2(1+\sigma^2)}}]$ Both Random Variables $X$ and...
I've produced a questionnaire with 3 parts, demographics, attitude questions, and then a final section on particular scenarios. I'm looking to analysis people's response to the scenarios - as in what factors affected their choices. I've used Likert scales and also categorical - however, I've been using SPSS so have arr...
Suppose I have some baseline data $X_1$ and some post-baseline $X_2$. For example, the baseline data could be blood pressure. Some intervention is added (e.g. a blood pressure medication) and the post-baseline data is $X_2$ (blood pressure after medication). Question. If I want to determine whether $X_1$ comes from a...
I am using simulations to make a calculation. I generate many random numbers from a distribution for each input and then I take the mean and standard deviation of the outputs. I noticed that the mean output from the simulations is always slightly higher than the result would be had I not used the distribution. This is ...
I am working with an image X, I apply the "adaptive median filter" in it and I get the image Y. I'd like to measure the SNR in both in order to evaluate the quantity of noise deleted. I know the formula to calculate the SNR is: SNR = Psignal / Pnoise but I don't know how to get these values from both images I have. I...
This is Problem 4(c), Chapter 2 from Thrun's Probabilistic Robotics . Note that this is self-study and not homework. Suppose I know my position $x$ to be a normal distribution with density $N(\mu_1=1000,\sigma_1^2=900)$. I query a position sensor, which outputs a measurement $z=1100$; however this sensor is faulty, an...
Let $X_1, \dots, X_n$ denote a random sample of size n from the probability distribution with pdf: $$ f_X(x|\theta_1, \theta_2) = \frac{1}{\theta_2 - \theta_1} \ I(x)_{[\theta_1,\theta_2]} \ I(\theta_1)_{(-\infty,\theta_2)} \ I(\theta_2)_{(\theta_1,\infty)}\;.$$ (1) Find a pair of sufficient statistics for $(\theta_1, ...
This is a problem I'm encountering in the context of analyzing a data set comprised of all crime locations in a city over a fixed time interval, although it could potentially arise in other types of point processes. The problem has to do with the fact that crime locations are not observed exactly. They are located by w...
I have a data set of 903 continuous observations, that I graphically visualize with a histogram. The bin and width values could be optimized, but it is logical from the distribution that I have a Gaussian function. When I do the fitting, I use the frequency values of the data as the Y-values. For example, if the observ...
The short question: Are there any studies of systems described by several hidden stochastic time dependent variables and observed variables that are given by known deterministic functions of hidden variables? More Details: I have a time dependent stochastic process in which $n$ real-valued variables depend on time: $x_...
I only found a example in which the constraind on $\beta_i, \ i=1,...k$ would make them sum up to one as well introduces a constraind such that all $\beta_i$ are all greater or equal zero. Since I dont need a condition for the summation of the $\beta_i$ I'm not quite sure how to deal with this problem. Since in this co...
I am doing a one-way ANOVA of a response variable (Y) on a treatment factor (T) of 7 levels. However, for each treatment, I have only 2 observations (or replicates). The ANOVA result shows the the means across the treatment are highly significant (p<0.001). I have check the normal and constant-variance assumptions and ...
When using a pre-test/post-test assessment to measure college learning, what is a meaningful significance level? I realize that p<.05 is the minimum criterion, yet with a correlated-groups t-test, it doesn't take much improvement to achieve this significance level. I'm getting p<.0001 by achieving only a moderate ove...
I'm looking at daily purchasing data over a period of several weeks. Specifically, we're interested in the % of users who make purchases in our app (it doesn't matter the type of purchase or amount spent for our purposes). On any given day, there might be ~10K active users and only about ~30 who actually make a purchas...
Assume that $w$ follows a lognormal distribution $f(x)$. Given $a>0$, can the function: $$ \int_ {x_0}^\infty \log(1+a\cdot x)\cdot f(x)\cdot dx $$ be written in a closed form?
I know this is a general question, but it would benefit CVers to learn about common pitfalls, things to consider and caveats on how to do rigorous GLMM modeling. Could those with experience on GLMMs share any insights they might have?
Say I have a distribution, either described by a probability density function that is integrable and continuous, or by a set of discrete probabilities over a finite set of symbols. I want to efficiently generate samples from this distribution. I don't care about references to other algorithms, I want to know if this id...
I am playing with shapiro.test from R and checking for non-normality of error variance. > shapiro.test(residuals(fit)) Shapiro-Wilk normality test data: residuals(fit) W = 0.9525, p-value = 0.0003303 > shapiro.test(residuals( lm( sqrt(V1)~V2 ,data=market) ) ) Shapiro-Wilk normality test data: re...
I have categorical count data that comes from a complex survey. Each unit of analysis in the survey (household, individual, etc.) is put into one and only category per dimension, ranging from 2 to 20 categories per dimension. The number of dimensions exceeds 50. The survey reports a variance estimate corrected based on...
I am trying to estimate ARMA(2,1) series parameters via ML, but unfortunatelly I am confused of setting up Matrix "Gamma" . I have seen plenty of articles regarding this, but it seems like this an obvious thing, that is not mentioned or described anywhere, i.e.: "$L(\Gamma, X)= (2\pi)^{-\frac{n}{2}} \det(Γ)^{-\frac{1}{...
Is it possible to carry out normal multiple linear regression when the dependent variable and one predictor variable have been transformed using square root transformation? (as they did not follow normal distribution). Is there any back transformation necessary for the R2 value, coefficients and confidence intervals?
If I were interested in fitting two-way interactions between a linear explanatory variable $a$ and another explanatory variable $b$ that has a quadratic relationship with the dependent variable $y$, would I have to include both the interaction with the quadratic component and the interaction with the linear component i...
I came across the Lewandowski method of demand forecasting in JDA Demand. Please help me understand at a high level the methodology it uses. I found a paper by Robert Hyndman titled "A state space framework for automatic forecasting using exponential smoothing methods" and it uses this method as one of methods they co...
I want to calculate cohen's d with confidence intervals for a paired samples designs. Some authors suggest that you use the paired t test value to adjust for the correlation between measures (Rosenthal, 1991). However, Dunlop et al 1996 suggest that the correlation between the paired samples should not be included....
Having the marginal distributions, say $f(x)$ and $f(y)$, how would we get the conditional distribution $f(x|y)$? The relation is given by: $$f(x)=\int f(x|y)f(y)dy$$ Do we need to find the derivatives of both sides and then solve a differential equation?!
I have the two following questions: Imagine I have two sets of observations, and both sets have a lognormal distribution. Now, given I look at the union of the two sets - is the distribution still a lognormal? Given now I have again a set of observations with lognormal distribution. Given I add or subtract a scalar to...
I am running a hierarchical model in JAGS. It is a piecewise constant survival regression model. So I have 4 sets of regression coefficients and baseline hazard rates. I would like to plot a mean curve and range using the mean and 95% highest density interval (HDI) of these parameters using the covariates from my data....
What methods/functions are available for choosing the number of breakpoints for segmented regression? Toy data/code for examples: set.seed(12) xx<-1:100 zz<-runif(100) yy<-2+1.5*pmax(xx-35,0)-1.5*pmax(xx-70,0)+15*pmax(zz-.5,0)+rnorm(100,0,2) dati<-data.frame(x=xx,y=yy) plot(dati) ### # A simple code giving a solution ...
I am trying to calculate the sample size needed with G*Power for my dissertation study. I will be doing a Repeated Measures MANOVA within/between interaction. My question is in the field "number of measurements," is this simply the number of DVs (I will have 3) or do I mutiply that by the number of times I will be co...
Sorry if this appears to be a naive question! I have three overlapping sets and I want to find the probability of finding a larger/greater intersection for 'A intersect B intersect C' (in the example below, I want to find the probability of finding more than 135 elements that are common in sets A, B & C). For a two set...
The Freedman-Diaconis Rule says that the optimal bin size of a histogram is $$ \text{Bin Size} = 2 \cdot \text{IQR}(x) n^{-1/3}$$ where $x$ is the data and $n$ is the number of observations in the data. Using this rule, can we infer the shape of the distribution? I know that, depending on bin widths, histograms can be ...
A set of telephone connections should be installed in order to connect the cities $A$ and $B$. City $A$ has $2000$ phones. Assuming that each user in city $A$ needs a telephone connection to city $B$ for $2$ minutes on average during the $10$ working hours and that these calls are completely random, what is the minimal...
I have two data-sets for same samples. But they are produced using two different instruments. I want to choose one data-set for further analysis. How can I find/prove which data-set is better? To make it more simple - let's say we took photos of 50 males and 50 females using two different types of camera, and produce ...
Our client software randomly selects a server to connect to. There are four separate addresses the software randomly chooses from. Two addresses are "old" and two are "new". As many firms need to explicitly allow outbound access to IP addresses, there will be some firms (users of some firms) that cannot connect to the ...
In an experiment with 5 technicians from different companies, we investigated effects of new equipments. The interested response variable is categorical. One thing I am considering is that the technician effect is a random effect. But it's hard to include a random effect in the multinomial logistic model. If there is ...
How is a random forest model affected if some of the variables are not independent?
Given a normal distribution of annual mean values (sunny days per year), I know the P50 and the annual uncertainty. Is there any method to calculate the monthly uncertainty? Thank you very much.
I'm working on a model with multiple covariates in R. Unfortunately, for one of the factors in the model, the data is spotty and I have a large portion of unknown values. Rouhgly around 30% are NA's. Is it recommended to simply remove these individuals from the model (I believe this is what R does by default, "10,126 o...
I have the (not necessarily veridical) impression that typical textbook independence tests of proportions are intended for use the proportions involved are not super small. In my case n may be 10^8 but the count of successes may be 10^4. N per group may also differ, which of course means the sample variances for sample...
I am teaching undergrad computer security and look for a semi-formal way to make students understand the notion of a one-time pad (OTP). To this end, consider the following exercise: Suppose you want to encrypt a message $M \in \{0, 1, 2\}$ using a shared random key $K \in \{0, 1, 2\}$. Suppose you do this by represen...
I'm new to statistics and recently I learnt about non-parametric estimation. On the estimation of empirical quantiles, many notes talk about the asymptotic behavior of sample quantiles. The proof is based on the consistency of the empirical quantile estimator, then applying Slutsky's theorem in combination with the del...
I have a general knowledge of regression, but I don't know what is the best approach to analyze these data. The dataset represents quarterly rates of inpatient use for three provider groups prov1, prov2 and prov3. The rates were measured on quarterly basis from qrt-4 2005 until qrt-3 2012. On the 3rd qrt of 2008 an int...
I have a lot of wonderfully messy data (got to love the social sciences), and realized that I was not fully prepared to bear its wrath. For the record, after reading some articles regarding ANOVA, I am extremely paranoid about violating its assumptions. So I am trying to do my best in cleaning the data. I have also, in...
I have a dataset which consists of roughly 40,000 observations grouped into 12 classes. I did a quick random forest run on a single split of 80% training and 20% testing (Dont bring up the discussion on wether or not it is necessary to split data in random forests, this is just a quick experiment) and got the following...
I would like to create a random forest using the following process: Build a tree on a random samples of the data and features using information gain to determine splits Terminate a leaf node if it exceeds a pre-defined depth OR any split would result in a leaf count less than a pre-defined minimum Rather than assign a...
I have a weekly time series representing costs for a cohort. I want to tell whether an intervention on the cohort (we can assume it happened in a single week) has decreased costs for the cohort. I happen to know that the trend over this period for the population from which this cohort was taken was -120 per week per we...
Is there any module for Python that computes the stationary distribution of a Markov chain, given the generator matrix? Thanks for any help!
I have two variables representing 1) players' predicted fantasy football points and 2) players' actual fantasy football points scored. What statistics are best for assessing the accuracy of the predictions in terms of absolute agreement (not just relative rank-order accuracy) in relation to the actual values? I'd lik...
I'm calculating a factor analysis of several variables in R. I want to determine each case's value on the latent variable. When I run the factor analysis, I receive factor scores. The factor scores do not have the same metric as the raw data or the latent variable. How can I rescale the factor scores to correspond to t...
I have data in the form given below, and I want to perform forecasting using multiple regression. I found definition of multiple regression from this link: http://otexts.com/fpp/5/1/ . I have these questions: (1) Can we forecast value of Y (the dependent variable) based on the given values of the independent variables ...
I have two sets of data and need to compare mean times for a variety of situations (i.e. time of day, day of the week, different areas, etc...). Some of the situations have small samples sizes (n=8) and need to be compared against a larger sample size (n=260). Neither data set is normally distributed (both are usually ...
I'm looking for a way to adjust the probability distribution of a uniform random function I'm using in a program. I want to find some discrete probability distribution that includes a parameter for "adjusting" how uniform the distribution is relative to the "center" event. For example, if that parameter, lets say s=0,...
I have a list of measurements that is not normal and need to be log-transformed so that parametric statistics can be applied (e.g. mean, CI). I can calculate the mean and CI without problem when the data is transformed, but the way of interpreting the log-transformed value is not straightforward to my readers. (the CI ...
I would like to build a decision tree from a training data. I have an attribute with many nominal values. For example, the department name attribute has about 20-30 values. I would like to group these values to 4-5 groups or any appropriate amount. How can I do this (in Weka is preferable)? Should I do this in prepro...
So, I'm actually a biologist trying to wrap my head around the idea of power of analysis to help design an experiment with the proper sample size. I understand that power of analysis is used to help avoid type II errors, but I came across this paper: http://www.benthamscience.com/open/toepij/articles/V003/16TOEPIJ.pd...
If I run the R code below, it will generate two independent vectors then test them to see if they are related in some way (i.e. p-value < 0.05). If I repeat this 1,000 times, then 50 of these (5%) will have a false positive, with a p-value < 0.05. This is a type 1 error. If we increase sampleSize to 1000, or even 100,0...
I have just carried out a questionnaire which has a number of questions which are multi-answer and multi-choice. That is, the respondent can tick as many of the options as apply to them - so they may choose no items, one, two, or seven! There is also an 'Other' field for those who find the options don't apply to them. ...
Say I have a multivariable (several independent variables) regression that consists of 3 variables. Each of those variables has a given coefficient. If I decide to introduce a 4th variable and rerun the regression, will the coefficients of the 3 original variables change? More broadly: in a multivariable (multiple inde...
I read some papers about recommender systems and information retrieval, where Mean Absolut Error and Mean Squared Error are mentioned. But I've found some differences between the formal definition of this two formulars. At one paper the MAE and MSE are WITH a square root and in other papers (or only resources) without....
Can anyone please tell me the difference in training and testing of a model. I have developed 5/6 different single pass online learning algorithm (ets, ets+, evolving fuzzy modelling, SOFNN, Gustafson-Kessel, participatory learning). I have collected 3000 pts of data for training and 500 points of data for testing from...
I am trying to classify a set of $p$ predictors into 5 classes. But my sample size $n$ is rather small, so I fear I won't get a very robust estimate. Now an idea would be to subset my data for each of the 5 response classes, and simulate more data in each class. I would e.g. assume a multivariate normal distribution fo...
At first I was under the impression that latent variable models and graphical models were different things altogether, but after reading some papers about the former class of models, it seems they have more in common than I thought. For instance, in both cases there's a specification of the conditional probabilies. Is ...
For analyzing data from a biophysics experiment, I'm currently trying to do curve fitting with a highly non-linear model. The model function looks basically like: $y = ax + bx^{-1/2}$ Here, especially the value of $b$ is of great interest. A plot for this function: (Note that the model function is based on a thorough ...
I have read a number of Matlab documents but to no avail I was unable to solve the following problems concerning non-linear regression. I have a single observation vector consisting of 200 measurements y. The model is unknown. The command nlinfit(x, y, modelFun) needs a model as an input but I was wondering if there is...
Does anyone know if are there some assumptions for Copula method? I heard from someone that the data should be i.i.d (independent and identically distributed). Let's say, if I want to capture the dependence structure between two variables. I have to use marginal distribution to transform data to rank space, then I can ...
As we know probabilistic Hermite polynomials are orthogonal with respect to the weight function $\frac{1}{\sqrt{2 \pi}} e^{-x^2/2}$ (density of standard normal). I have a distribution which is a mixture of two Gaussians each having $(Mean, variance) =(1 ,\sigma^2)$ and $(-1,\sigma^2)$ respectively. what are the chang...
What does having "constant variance" in the error term mean? As I see it, we have a data with one dependent variable and one independent variable. Constant variance is one of the assumptions of linear regression. I am wondering what homoscedasticity means. Since even if I have 500 rows, I would have a single variance v...
I know this is a very debated topic, even on this site, but I still couldn't find an answer to my problem. Recently I am working with large samples (300, 400 and more). For now, I am trying to use simple techniques, such as correlation, T-tests, and ANOVA, all of which require the normality assumption (from what I ha...
I tried finding an answer to this question on this and other sites but to no avail - if I am missing something please excuse my inability to locate the answer! Basically I have several dependent variables (dv) for two land management treatments (treat) measured quarterly (season). I know that I need to run a RM-ANOVA w...
Is there a way to specify two different random intercept terms for two sub-groups of subjects within a single mixed model? The reason why I'm interested is that it seems that the inter-personal variability of one group of subjects on my task is greater than the inter-personal variability of the other. I'm using lmer an...
Lets say we have a dependent variable $Y$ with few categories and set of independent variables. What are the advantages of multinomial logistic regression over set of binary logistic regressions (i.e. one-vs-rest scheme)? By set of binary logistic regression I mean that for each category $y_{i} \in Y$ we build separa...
Consider $K$ Gaussian random variables $Z_1, Z_2,\ldots,Z_K$ that are mutually independent with $Z_1 \sim \mathcal{N}(\mu,\sigma^2)$ and the remaining random variables $\sim \mathcal{N}(0,\sigma^2)$. Let $m_1({\bf Z})$ and $m_2({\bf Z})$ be functions of ${\bf Z} = (Z_1,\ldots,Z_K)$ such that $m_1({\bf Z})$ is the rando...
Imagine I am doing an experiment where I want to look at the cellular composition of tumour samples I have 3 samples with phenotype A (e.g. metastasizing) and 3 samples with phenotype B (e.g. not metastasizing) The samples with phenotype A consist of (respectively) 30%, 32% and 33% "green cells", 28%, 27% and 28% "blue...
How to know the data points are linearly separable from an SVM hyperplane? How to get the optimal classifier during iteration process? How to calculate the complexity of the SVM model?
I have logs with the following information: date-time username view action action_data These logs are generated from a web-application which consists of several views where the users can perform a variety of actions which are logged (which elements they click, if they hover somewhere, switch views etc). My desired out...
In the MATLAB stats tutorials there is a section called "Fitting a More Complicated Distribution: A Mixture of Two Normals" http://www.mathworks.com/help/stats/examples/fitting-custom-univariate-distributions.html pdf_normmixture = @(x,p,mu1,mu2,sigma1,sigma2) ... p*normpdf(x,mu1,sigma1) + (1-p)*no...
I'm new to machine learning, and I have been trying to figure out how to apply neural network to rainfall forecasting. I have found resource related to my query, but I seem to still be a bit lost. I think a basic explanation without too much detail would help. Let's say I have 10 climate features values for each month ...
I have a weighted graph in which the nodes represent users and weighted undirected edges represent the tie between a pairs of users. For a piece of content $c$, and a node $A$ in the graph, given that $A$ has viewed the content and a few of $A$'s neighbors have viewed it as well, the problem is to infer whether $A$ lik...
I have a set of data, sampled once per year from 1990 to 2008. It looks more or less linear. However, doing a Chow test results in a significant p-value (0.003 and below), wherever I test for a structural break. What is going on? (There was a similar question once before, but it didn't really receive a satisfactory ans...
I have a two kinds of data for the same geographic region. One is presence-absence data of species (for amphibians, reptiles and birds) and the other has several environmental variables for the same area (e.g. temps and precipitation). For the species I calculated the Hellinger distance and for environmental variables ...
I am currently working on a regression model where I have only categorical/factor variables as independent variables. My dependent variable is a logit transformed ratio. It is fairly easy just to run a normal regression in R, as R automatically know how to code dummies as soon as they are of the type "factor". However ...
Also, how do I find if there is a significant difference in the number of males in two populations? In SPSS please!
I have collected this data, counting how many users engage in a certain activity how many times: Activity Users Percent 1 2,005,752 62.57% 2 1,005,669 31.37% 3 616,328 19.23% 4 408,571 12.75% 5 285,103 8.89% 6 2...
I calculated the 5 year survival of two populations keeping different variable constant each time and got percentages. I wanted to determine if these percentages were significantly different from each other. Could anyone please guide me with the same?
I want to estimate the forward looking version of the Taylor rule equation using the iterative nonlinear GMM: I have the data for all the variables in the model, namely (inflation rate), (unemployment gap) and (effective federal funds rate) and what I am trying to estimate is the set of parameters , and . Where I ...
In fda package, function smooth.basis is used to construct a functional data object by smoothing data using a roughness penalty. The usage can be found here. smooth.basis(argvals=1:n, y, fdParobj, wtvec=NULL, fdnames=NULL, covariates=NULL, method="chol", dfscale=1, returnMatrix=FALSE) In the documentation...
I know that in theory for regression both the Y and factors should be continuous variables. However, I have some factors that are discrete but show both correlation and would fit a regression model. I am looking at energy consumption and my factors are the number of calls, the data transferred, temperature, customers,...
I have a function obtained by fitting some data, and I do not have access to the data itself. The fitting parameters of the function have confidence bounds. I need to obtain an expression for the integral of this function with corresponding errors. I have thought of solving the problem with a Monte Carlo approach. By ...
Say if I have two random variable X and Y and they have the same distribution, what is that suppose to mean? Is that mean they have same mean and variance?
I went to listen to a workshop and some audience asked the presenter how the moments can improve the mutual information. I am learning the MI(Mutual Information) and moments so don't have enough knowledge to understand what it means. As I know so far, the moments generating functions find moments mathematical presentat...
Tony conducts a hypothesis test on whether the proportion of all students in his highschool who bike to school (denoted as $p$) equals $30\%$. Specifically, Tony has $H_0:p=0.3$ versus $H_A:p≠0.3$. He obtains a P-value of $0.01$. On the other hand, John would like to test if there is sufficient evidence to support that...
Here's my context for this question: From what I can tell, we cannot run an ordinary least squares regression in R when using weighted data and the survey package. Here, we have to use svyglm(), which instead runs a generalized linear model (which may be the same thing? I am fuzzy here in terms of what is different). I...