We investigated what young adults think about AI, financial security, and public policy.
We combined responses from several files into one table.
Today we’ll finish the policy questions and investigate a new dataset.
Today’s questions
Where do young independents fall politically?
Does money buy happiness?
We’ll use grouped summaries, reshaping, correlation, and regression.
Tuesday’s dataset
Each row gives one response category for one policy and group.
Which policy divides the parties most?
We want a table of support percentages and the gap between the parties, ordered by the size of the gap:
# A tibble: 4 × 5
item Democrat Republican gap size
<chr> <dbl> <dbl> <dbl> <dbl>
1 Increased deportations 18.5 67.2 -48.7 48.7
2 Guarantee legal abortion rights 76.5 29.4 47.1 47.1
3 School sports teams by sex at birth 34.2 79.5 -45.3 45.3
4 Trump's tariffs 9.31 46.8 -37.5 37.5
gap is Democrat minus Republican. size is the absolute value of that gap.
A new way to build data pipelines
Each block contains one step. Connect the circles to build your pipeline.
Check what each step does to the table as you go.
Click Run to inspect the result in your workspace.
Use Check progress for feedback on your steps, or Submit plot for a plot question.
Use Help if you need help with your pipeline.
Which policy divides the parties most?
Start with party_support, which has one row per policy and party. Build the table above to find the policies with the largest gaps.
Put each party’s support in its own column, with one row per policy.
Calculate gap as Democrat minus Republican, and size as the absolute value of gap.
Put the policies with the largest size first.
Display item, Democrat, Republican, gap, and size.
Which way do the gaps lean?
Build the party-gap plot
Start from policy_wide. Use the column block with size on X and policy on Y.
Calculate gap as Democrat minus Republican, and size as the absolute value of gap.
Create leaning: Democrat when gap is positive, Republican otherwise.
Order the policy labels with item = reorder(item, size), so that the largest gap appears at the top.
Draw horizontal bars with size on X, policy on Y, and fill determined by leaning.
Which party shares independents’ policy preferences?
Do policies that are popular among independents also tend to be popular among Democrats, Republicans, both parties, or neither?
Plot independent vs. parties
Add a scatterplot with Democrat on X and Independent on Y. Then try Republican on X.
Submit one of your scatterplots. Which party shows the stronger relationship between its support percentages and independents’ support percentages?
Independents and party support
Correlation with Democrats: 0.80. With Republicans: 0.17.
Find policies closer to Republicans
Measure each party’s distance from independent support.
Calculate distance_D and distance_R as the absolute differences from Independent support.
Keep the policies where distance_R is smaller than distance_D.
Display each policy and its Democrat, Independent, and Republican support percentages.
A surprising result
Independents are closer to Republicans on five of the nine policies.
# A tibble: 5 × 4
item Democrat Independent Republican
<chr> <dbl> <dbl> <dbl>
1 Congressional stock-trading ban 70.7 62.4 62.4
2 End military aid to Israel 64.7 46.6 44.1
3 Guarantee legal abortion rights 76.5 46.1 29.4
4 Medicare for All 75.0 55.5 38.9
5 Wealth tax 70.3 51.8 42.1
How can this happen when the correlation with Democrats was 0.80?
How can both results be true?
Policies with higher Democratic support generally also have higher independent support. This produces the strong correlation.
Independents often support those policies less strongly. For legal abortion rights, support is 77% among Democrats, 46% among independents, and 29% among Republicans. Independents are closer to Republicans on this policy.
Even if independent support were exactly 20 points below Democratic support on every policy, their correlation would be 1.
Correlation can be high even when the groups’ support percentages are far apart.
Q2: Does money buy happiness?
On Tuesday, only about one in four young adults (one in three in this class!) expected to be financially better off than their parents.
How closely is wealth related to how people feel about their lives?
Which country is happiest?
Which of these countries do you think has the highest average life satisfaction?
Two sources of data
The World Happiness Report asks people to rate their lives on a ladder from 0 (worst possible life) to 10 (best possible life).
The World Bank measures GDP per person, adjusted for purchasing power, in constant 2021 international dollars.
We have two tables to combine: life ratings from 2023–2025 and GDP from 2024.
# A tibble: 4 × 2
country happiness
<chr> <dbl>
1 Finland 7.76
2 Costa Rica 7.44
3 United States 6.82
4 Singapore 6.58
And from gdp:
# A tibble: 4 × 3
country gdp_per_capita gdp_year
<chr> <dbl> <dbl>
1 Costa Rica 27325. 2024
2 Finland 55901. 2024
3 Singapore 134549. 2024
4 United States 75698. 2024
Income and happiness: join and plot
Join the two sources and plot the joint distribution of income and happiness.
Join life_ratings to gdp by country, keeping countries that appear in both tables.
Make a scatterplot with gdp_per_capita on X and happiness on Y. Each point should represent one country.
Submit your plot and describe the shape of the relationship.
What do you notice?
Fit a line
Use income_data, where income_thousands is GDP per person in thousands. Add an lm block with the formula happiness ~ income_thousands.
Fit a simple regression of happiness on income_thousands and inspect the model summary.
Where does the line go wrong?
Look at the scatterplot and fitted line. Where does the line tend to predict too much happiness? Where does it predict too little?
Plot residuals against fitted values
Use income_data and the fitted model income_fit. Add a column named fitted using predict(income_fit).
Calculate resid as happiness - fitted.
Make a scatterplot with fitted on X and resid on Y. Submit your plot. Do you see a pattern?
What do the residuals show?
Is another $10,000 equally valuable everywhere?
Would an extra $10,000 of GDP per person have the same relationship with happiness in a country with GDP per person of $5,000 as in one with $80,000? What feature of our plot supports your answer?
Measure income in doublings
Going from $10,000 to $20,000 doubles income. So does going from $40,000 to $80,000.
We can use log2(gdp_per_capita / 10000) to count doublings from $10,000.
The values 0, 1, 2, and 3 correspond to $10,000, $20,000, $40,000, and $80,000.
The income_data table already contains this column, named income_doublings.
Fit the new line
Start with income_data. Add an lm block with happiness ~ income_doublings.
Fit happiness on income_doublings. Inspect the slope and R-squared in the model summary.
Does this look more linear?
Interpret the slope
(Intercept) income_doublings
5.2670116 0.5476111
According to this line, how much higher is the predicted life rating when income per person doubles? Explain using the fitted coefficient.
How much did the fit improve?
model_errors contains each country’s residual from both models. Which model has the smaller average absolute residual?
Calculate absolute_resid as abs(resid).
Group by model.
Calculate mean_absolute_residual as the mean of absolute_resid for each model.
Which countries stand out?
Some countries report much higher life satisfaction than the line predicts.
We can find them using residuals: observed happiness minus fitted happiness.
A positive residual means the country’s life rating is above its fitted value.
Find the positive surprises
happiness_residuals contains a resid column from our fitted model. Find the five countries furthest above the line.
Put the countries with the largest residuals first.
Keep the first five countries.
Display country, happiness, gdp_per_capita, and resid.
Money leaves plenty unexplained
What would you investigate next?
Choose a country whose life rating surprised you. What additional data would you want to explain its position? Describe one analysis you would try.
Two investigations
For the policy questions, we summarized support, reshaped the table, and checked how independents aligned with the parties.
For happiness, we fitted a regression, investigated a pattern in its errors, and tried a transformed predictor.
In both cases, inspecting the result helped us decide what to do next.
ARCHIVED CLASS RECORD
Week 9, Lecture 16: Politics, money, and happiness
The following slides preserve what students submitted during class. No names or login information are included.
CLASS RECORD · QUESTION 1
- Put each party's support in its own column, with one row per policy. - Calculate gap as Democrat minus Republican, and size as the absolute value of gap. - Put the policies with the largest size first. - Display item, Democrat, Republican, gap, and size.
- Calculate gap as Democrat minus Republican, and size as the absolute value of gap. - Create leaning: Democrat when gap is positive, Republican otherwise. - Order the policy labels with item = reorder(item, size), so that the largest gap appears at the top. - Draw horizontal bars with size on X, policy on Y, and fill determined by leaning.
x <- policy_wide |> mutate(gap = Democrat - Republican, leaning = ifelse(gap > 0, "Democrat", "Republican"), size = abs(gap), item = reorder(item, size)) |> arrange(desc(gap))
ggplot(x, aes(x = item, y = size, fill = leaning)) +
geom_col() +
coord_flip() +
labs(x = "Policy", y = "Size of Gap", fill = "Leaning")
CLASS RECORD · QUESTION 3
Do policies that are popular among independents also tend to be popular among Democrats, Republicans, both parties, or neither?
67 anonymous responses
Other responses67
QUESTION 3 · Other responses · 1/8
Student responses
0
0
0
0
0
0
0
0
0
QUESTION 3 · Other responses · 2/8
Student responses
1
1
1
1
1
1
1
1
1
QUESTION 3 · Other responses · 3/8
Student responses
1
1
2
2
2
2
2
2
2
QUESTION 3 · Other responses · 4/8
Student responses
2
2
2
2
2
2
2
2
2
QUESTION 3 · Other responses · 5/8
Student responses
2
2
2
2
2
2
2
2
2
QUESTION 3 · Other responses · 6/8
Student responses
2
2
2
2
2
2
2
2
2
QUESTION 3 · Other responses · 7/8
Student responses
2
2
2
2
2
2
2
2
2
QUESTION 3 · Other responses · 8/8
Student responses
2
3
3
3
CLASS RECORD · QUESTION 4
Submit one of your scatterplots. Which party shows the stronger relationship between its support percentages and independents' support percentages?
60 anonymous responses
Other responses60
QUESTION 4 · Other responses · 1/7
Student responses
QUESTION 4 · Other responses · 2/7
Student responses
QUESTION 4 · Other responses · 3/7
Student responses
QUESTION 4 · Other responses · 4/7
Student responses
QUESTION 4 · Other responses · 5/7
Student responses
democrat
democrat is a stronger plot
QUESTION 4 · Other responses · 6/7
Student responses
Democrat seems to show more of a liner trend.
Democrat shows a stronger relationship.
democrats have strong relatiobship
democrats show stronger relationships to independents
Democrats show the stronger relationship. In the Democrat plot the points line up tightly along an upward trend (correlation 0.80), so policies with high Democratic support also have high independent support.
Democrats show the stronger relationship. In the Democrat plot, points rise together in a clear positive trend: policies Democrats support more, Independents also tend to support more. In the Republican plot, points are scattered with no clear line, so knowing Republican support tells you little about Independent support.
Democrats show the stronger relationship. In this plot, as Democratic support goes up, independent support also tends to go up, with the points forming a fairly clear upward pattern. The Republican version was much more scattered, so independents' preferences track Democrats more closely.
I think Democrats have a stronger association.
Independent
QUESTION 4 · Other responses · 7/7
Student responses
It seems liek correlationm is more clear between democrat and ind than republican
Republican vs independent
seems to be a positive correlation between democrats and independents
Seems to be closer?
SHows Republican vs Indepneding for spevcifoc topics
This plot shows a possible relationship between Democrats and Independents
CLASS RECORD · QUESTION 5
- Calculate distance_D and distance_R as the absolute differences from Independent support. - Keep the policies where distance_R is smaller than distance_D. - Display each policy and its Democrat, Independent, and Republican support percentages.
72 anonymous responses
Other responses72
QUESTION 5 · Other responses · 1/16
Student responses
filtered_policies <- policy_wide %>%
# 2. Calculate the absolute distance from Independent support for both parties
mutate(
distance_D = abs(Democrat - Independent),
distance_R = abs(Republican - Independent)
) %>%
# 3. Keep only policies where distance_R is smaller than distance_D
filter(distance_R < distance_D) %>%
# 4. Display each policy alongside Democrat, Independent, and Republican percentages
select(policy, Democrat, Independent, Republican)
Which of these countries do you think has the highest average life satisfaction?
71 anonymous responses
Other responses71
QUESTION 6 · Other responses · 1/8
Student responses
0
0
0
0
0
0
0
0
0
QUESTION 6 · Other responses · 2/8
Student responses
0
0
0
0
0
0
0
0
0
QUESTION 6 · Other responses · 3/8
Student responses
0
0
0
0
0
0
0
0
0
QUESTION 6 · Other responses · 4/8
Student responses
0
0
0
0
0
0
0
0
0
QUESTION 6 · Other responses · 5/8
Student responses
0
0
0
0
0
0
0
0
0
QUESTION 6 · Other responses · 6/8
Student responses
0
0
0
0
0
0
0
0
0
QUESTION 6 · Other responses · 7/8
Student responses
0
0
0
0
0
1
2
2
3
QUESTION 6 · Other responses · 8/8
Student responses
3
3
3
3
3
3
3
3
CLASS RECORD · QUESTION 7
Join `life_ratings` to `gdp` by `country`, keeping countries that appear in both tables. Make a scatterplot with `gdp_per_capita` on X and `happiness` on Y. Each point should represent one country. Submit your plot and describe the shape of the relationship.
65 anonymous responses
Other responses65
QUESTION 7 · Other responses · 1/8
Student responses
QUESTION 7 · Other responses · 2/8
Student responses
QUESTION 7 · Other responses · 3/8
Student responses
QUESTION 7 · Other responses · 4/8
Student responses
QUESTION 7 · Other responses · 5/8
Student responses
as GDP per capita increases, its a logarithmic increase in happiness, initial big increase, then tapers out
blue
QUESTION 7 · Other responses · 6/8
Student responses
happiness rises steeply as GDP per capita goes from low to moderate levels, then flattens out among richer countries. That’s a positive relationship that is curved (concave, roughly logarithmic) rather than linear, with a fair amount of scatter around the trend
Happiness tends to increase with GDP per capita, but the relationship levels off. At low incomes, happiness rises steeply as GDP increases, while among richer countries happiness is mostly between about 6 and 7.5 and does not keep rising much with extra income. So the shape looks curved rather than a straight line.
It looks log, like it spikes up and then flatlines
logarithmic
Logarithmic relationship/shape of the plot
low income countries have a lower happiness rating but once a country reaches a certain amount of income it levels out its happiness
Past a certain gdp per capita, gdp per capita doesn't affect happiness as much(convex). Overall, money is positively associated with happiness.
QUESTION 7 · Other responses · 7/8
Student responses
positive but curved (concave), with diminishing returns. Happiness climbs steeply as GDP rises across poor and middle-income countries, then flattens out among the richest, the points level off rather than continuing up at the same rate.
positive correlation
positive relationship
positive shape, curved?
Positive, nonlinear (concave) relationship. Among lower-income countries (under about $20k), happiness rises steeply, from roughly 3–5 up to about 6. Above about $25k, the curve flattens: happiness stays around 6–7.5 even as GDP per capita grows past $100k, showing diminishing returns. Poorer countries also vary much more in happiness than richer ones. A log scale on the x-axis would likely make it look more linear.
possibly logistic relationship
Somewhat relationship, but is increasing concave down line
The plot appears to show a relationship between higher gdp_per_capita and higher happiness
the plot shows a positive non-linear relationship. Happiness increases rapidly as GDP per capita rises from low to moderate level
QUESTION 7 · Other responses · 8/8
Student responses
There is a positive relationship between GDP per capita and happiness. Countries with higher GDP per capita generally have higher happiness scores. The relationship appears nonlinear, with happiness increasing more slowly at higher income levels.
There is a positive relationship between GDP per capita and happiness. Countries with higher GDP per capita tend to have higher happiness scores, but the relationship is not perfectly linear.
There is an initial upwards trend between gdp and happiness, but relationship doesn't appear to be linear and plateaus.
This is generally a positive relationship, having a higher gdp per capita generally coorelates with a higher happiness rating.
CLASS RECORD · QUESTION 8
- Fit a simple regression of happiness on income_thousands and inspect the model summary.
66 anonymous responses
Other responses66
QUESTION 8 · Other responses · 1/8
Student responses
happiness_model <- lm(happiness ~ income_thousands, data = income_data)
summary(happiness_model)
happiness_regression <- stats::lm(happiness ~ income_thousands, data = income_data)
summary(happiness_regression)
lm(happiness ~ income_thousands, data = income_data) |>
summary()
model <- lm(happiness ~ income_thousands, data = income_data)
summary(model)
QUESTION 8 · Other responses · 8/8
Student responses
model <- lm(happiness ~ income_thousands, data = income_data); summary(model)
model_raw <- lm(happiness ~ income_thousands, data = income_data)
summary(model_raw)
x <- lm(happiness ~ income_thousands, data = income_data)
summary(x)
CLASS RECORD · QUESTION 9 · 1/2
Look at the scatterplot and fitted line. Where does the line tend to predict too much happiness? Where does it predict too little?
71 anonymous responses
Overpredicts for highs, under for lows23Respondent says the line predicts too much happiness at high income values and too little at low incomes.
Prediction error relative to zero point11Respondent refers to accuracy above/below zero or a baseline value rather than income-based misprediction patterns.
Overpredicts for middle, under for extremes8Respondent believes the line overestimates happiness for middle-income countries and underestimates it for both very low and very high incomes, implying a curved relationship.
Inaccurate mainly at tails6Respondent notes the model is inaccurate primarily at the extreme low or high ends of income (tails) without specifying direction.
CLASS RECORD · QUESTION 9 · 2/2
Response themes for question 9
Overpredicts at low, under at high6Respondent specifically says the line predicts too much happiness at low incomes and too little at high incomes.
Unclear or single-word response6Response too brief or unclear to assign to a substantive misprediction pattern.
Under for lower, over for higher incomes (swapped)6Respondent states the line underpredicts at lower incomes and overpredicts at higher incomes (opposite of some others).
Underpredicts for highs, over for lows5Respondent says the line predicts too little happiness for high-income observations and too much for low-income ones.
QUESTION 9 · Overpredicts for highs, under for lows · 1/3
Student responses
At high amounts of gdp per capita, the model overpredicts happiness. At low amounts it underpredicts
it over predicates happiness for wealthy countries and under predicates poorer countries
It predicts slightly less happiness below 75 GDP per person and slightly too much above 75 GDP per person.
It predicts too much happiness for high income, too little for low income
it predicts too much happiness for the lowest incomes and too little for the highest
It predicts too much happiness when the income is high, and too little happiness when the income is low
Its predicts too little happiness for the lowest income countries and too much happiness for the highest income countries.
once income is high, the line overpredicts happiness and line underestimates happiness in lowest income
overpredicts for high income countries
QUESTION 9 · Overpredicts for highs, under for lows · 2/3
Student responses
overpredicts how happy you are later in the scatterplot (richer) and underpredicts early on (less rich)
Tends to predict too much happiness when there is a high gdp per person. It predicts too low when the gdp per person is lower
the higher gdp, the more the line tend to predict too much happiness
The line overestimates happiness at the highest incomes and underestimates it at the mid to low incomes.
The line predicts too much happiness toward higher GDPs, overestimating the happiness in that region.
The line predicts too much happiness when income increases towards the end of the right side of the scatterplot and the model predicts too little happiness when income is smaller, or the left side of the scatterplot.
The line tend to predict too mush for very high GDP population and little for lower GDP
the line tends to predict too much happiness at higher gdp levels, and too little at low gdp levels.
The line tends to predict too much happiness for higher levels of income, while it predicts too little for low levels of income.
QUESTION 9 · Overpredicts for highs, under for lows · 3/3
Student responses
The regression line overpredicts happiness at a high gdp per capita. It predicts too little happiness for a lower gdp per capita.
to much happiness at 150 thousand and to little at 0
too much at high gdp, to little at low gdp
too much on the highs, too little on the lows
when the income is very high, the line tend to predict too much happiness
QUESTION 9 · Prediction error relative to zero point · 1/2
Student responses
Around a gpd per capita of 25000 has lots of data with a postiive trend, but data after does not show a strong positive trend as before
becomes less accurate as gdp increases
Fittness is too low
For low income(gdp), it predicts lower, and for high income countries, it predicts higher
it over predicts at the high end of gdp and under predicts in the lower end and middle.
It predicts too high when income is higher and too low when income is lower so towards the ends
Predicts too much above 5.0, too little below 5.0
The fitted line overpredicts happiness at higher GDPs and underpredicts at lower GDPs around 25,000.
The line predicts too little happiness at lower GDPs, while predicting too much happiness at higher GDPS
QUESTION 9 · Prediction error relative to zero point · 2/2
Student responses
The line predicts too much happiness when the points are too below the line
The poorest countries (near $0–5k). Many sit at happiness 3–4.5, below where the line starts. The richest countries (above about $80k). The line keeps climbing, but their actual happiness levels off around 6.5–7. Lower-middle and middle-income countries (about $10k–50k). Happiness has already jumped to about 6–7, faster than the line rises.
QUESTION 9 · Overpredicts for middle, under for extremes · 1/1
Student responses
over predicts happiness in the richest and poorest countries, under predicts in countries around 25-50 thousand GDP per capita
overpredicted at lower and higher gdp. predicts too little in the middle
The line predicts too much happiness at lower incomes and higher incomes, but it predicts too little in middle incomes because its a logarithmic curve
the line tends to predict too much happiness for countries with middle incomes and too little happiness for countries with very low or very high incomes, maybe c urve
The line tends to predict too much happiness for very low- and very high-income countries, and too little happiness for countries in the middle, because the relationship is curved rather than perfectly linear.
The line tends to underestimate happiness for some middle-income countries and overestimate happiness for some high-income countries. The relationship is not perfectly linear.
to much happiness in the middle to little at the end
too much happenies is seen at both ends. Too little happenies is seen towards the middle
QUESTION 9 · Inaccurate mainly at tails · 1/1
Student responses
at the tails
I think it is least accurate as you get more money as the real lline flatlines, so when you have a lot of money the happiness goes down, but if you dont have that much money, smaller increases and decreases are pretty constant.
Predicts too much happiness for very rich countries and too little for rather mid to poorer countries
the ends
The line predicts too much happiness for the richest countries, where most points sit below the line at high GDP per person. It predicts too little in the middle, roughly $10,000 to $30,000 per person, where many countries sit above the line. That pattern is what you would expect if the real relationship flattens out instead of staying straight.
When having high income happier, too little income little happiness
QUESTION 9 · Overpredicts at low, under at high · 1/1
Student responses
It predicts to much happiness at low gdp, and too little at high gdp
It predicts too little happiness for middle ground GDP and too much happiness for lower GDP
predicts too mich at the beggining and too little at thr end
the line predicts too much happiness at lower gdp and less at higher gdp
underpredict low and vice versa
We overpredict happiness at very low GDP, and under predict at middling levels of GDP
QUESTION 9 · Unclear or single-word response · 1/1
Student responses
at the end of the line
income
people with too much wealthy are not happier
The line tends to predict too much happiness for very high-income countries and too little happiness for some middle-income countries.
too much happiness at low GDP
When gdp is small.
QUESTION 9 · Under for lower, over for higher incomes (swapped) · 1/1
Student responses
Between 10 and 50 thousand, the model tends to underpredict happiness. Upwards of 50 thousand it tends to more frequently overpredict happiness
It predicts too little towards a large x
The line predicts too little at the beginning of the scatterplot, while it predicts too much towards the end with the richer countries.
the line predicts too much for richer,and it predicts too little around 30 gdp per capita
under predict for lower incomes and over predict for higher incomes
Underpredicts happiness in the first 25 thousands. And overpredicts in the top GDP countries.
QUESTION 9 · Underpredicts for highs, over for lows · 1/1
Student responses
The graph when its towards the end overpredicts happiness because at one point there isn't enough data points to justify our prediction
The line predicts too little happiness for low- and middle-income countries. The line predicts too much happiness for the richest countries.
The linear model tends to overpredict happiness for countries with very low GDP per capita and for countries with very high GDP per capita.
We tend to overpredict ahppaines for poor people and underpredict happiness for rich people
We tend to overpredict happiness at lower x values and underpredict at higher x values.
CLASS RECORD · QUESTION 10
Make a scatterplot with `fitted` on X and `resid` on Y. Submit your plot. Do you see a pattern?
64 anonymous responses
Other responses64
QUESTION 10 · Other responses · 1/8
Student responses
QUESTION 10 · Other responses · 2/8
Student responses
QUESTION 10 · Other responses · 3/8
Student responses
QUESTION 10 · Other responses · 4/8
Student responses
QUESTION 10 · Other responses · 5/8
Student responses
QUESTION 10 · Other responses · 6/8
Student responses
As fitted increases, residual decreases.
QUESTION 10 · Other responses · 7/8
Student responses
es, there’s a clear arch (upside-down U) instead of random scatter around 0. At the lowest fitted values (about 4.9), residuals are mostly negative, down to about -3.5. Around fitted 5.2–5.6 they’re mostly positive (up to about +1.8). At the highest fitted values (above 7), they’re all negative (about -0.4 to -2.2). So the line overpredicts happiness for the poorest and richest countries and underpredicts it for middle-income ones. The spread is also widest at low fitted values. Both patterns me
It is inversely proportional. Resid vs fitted
Resid tend to be larger when happiness level increases
The residuals vs fitted values plot shows some relationship between the two - which implies that the true model is not linear
there is a curved pattern
There is a parabolic shape
wowza, more negative as we go onward
yes
QUESTION 10 · Other responses · 8/8
Student responses
Yes, I see a pattern. The residuals are mostly positive in the middle, around fitted values of about 5.2 to 5.6, and mostly negative at low and especially at high fitted values. That curved shape suggests the straight line is missing the flattening relationship, rather than the residuals just scattering randomly around zero.
yes, there’s a clear pattern. The residuals aren’t a flat, formless band around zero, they curve. They start low, rise to positive in the middle range of fitted values, then bend back down and go negative at the high end.
CLASS RECORD · QUESTION 11 · 1/2
Would an extra $10,000 of GDP per person have the same relationship with happiness in a country with GDP per person of $5,000 as in one with $80,000? What feature of our plot supports your answer?
75 anonymous responses
Effect differs: diminishing returns43Students state that an extra $10,000 has a larger positive association with happiness in poorer countries than in richer ones, citing the plot’s curved pattern that flattens at higher incomes.
Says effect differs without detail10Student indicates the effect is not the same but gives no supporting reasoning or plot feature.
Says effect is the same5Student asserts the relationship would be the same across low- and high-income countries.
Notes fitted line decreases at high income4Student observes the fitted line initially rises but then falls at higher GDP, implying a different pattern than simple flattening.
CLASS RECORD · QUESTION 11 · 2/2
Response themes for question 11
References utility function or concave regression4Student invokes economic utility shapes or concave regression (e.g., square-root utility, concave fitted line) to explain diminishing marginal benefit of income.
States poorer person would be happier with increase4Student directly asserts that the person in the poorer country would experience more happiness from the extra $10,000, without referencing plot shape or fitted line.
Mentions parabolic/peak pattern3Student says the plot shows a peak or parabola so increases at very high incomes might decrease happiness, implying a non-monotonic relationship.
An extra 10000 GDP would more greatly benefit people in country with lower GDP as the model is fairly accurate
I think an extra 10,000 would have a higher impact on happiness in a country with 5,000 GDP per person because happiness sees a drastic increase toward the beginning of the plot
If you already have more money, the additional income would not increase happiness as much as in a lower GDP country.
no
No Diminishing returns / concave curve: The relationship between GDP per person and happiness is logarithmic/concave rather than linear. The slope is very steep
No it would have a much larger impact on the country with $5000 than $80000
no it would not be the same. 10000 would increase happiness much more for countries with a low gdp than if a high gdp country got that extra money
No the extra money would have a different impact on the two countries because that added money can be more valuable based on the current income each country already makes
No you dont got as happy as the person making 5,000. the feature thatll support this is that the curve flattens at the end
No, an extra $10,000 does not have the same relationship with happiness in both countries because in lower income countries an extra $10,000 represents a massive percentage increase in resources.
No, an extra $10,000 would probably have a bigger relationship with happiness in a lower-income country than in a higher-income country, because the plot curves and starts to flatten as GDP per person gets higher.
No, as GDP increases, there are diminishing returns. This is explained because our graph is not linear
No, as the plot is nonlinear. The marginal utility is higher for people who don't make as much money.
No, because according to the theory of diminishing marginal utility, if the person with $80,000 gets an additional 10,000 dollars, they are not as happy as the person who started with 5000 dollars and received an additional 10,000
no, because the relationship is not linear, as demonstrated by the better fit line being nonlinear. 10k of GDP would have a significantly larger effect at 5k than 80k.
No, because the scatterplot rises steeply at low GDP and flattens at high GDP, an extra $10,000 matters much more to a country at $5,000 than to one at $80,000.
No, I don't think the effect is the same. An extra $10,000 would likely have a bigger relationship with happiness in a poorer country than in a richer country. The scatterplot shows that happiness increases quickly at lower GDP levels, but the increase becomes smaller at higher GDP levels.
No, I don't think the effect would be the same. An extra $10,000 would likely make a bigger difference in happiness for a country with $5,000 GDP per person than one with $80,000. The scatterplot shows a curved relationship that starts to flatten at higher incomes. This suggests that happiness increases with income, but the increase gets smaller as countries become wealthier.
No, increasing the amount of money at higher GDP has diminishing returns because the relationship is not linear. There is a horizontal asymptote of happiness.
No, it is like diminishing marginal returns in econ, because if you have less you are more happy
no, it would give more happiness to ppl with less gdp, as we can see by the hgiher residual there
No, it would not be the same. An extra $10,000 would matter much more at $5,000 per person, where happiness rises steeply with income, than at $80,000, where the curve has flattened out. The scatterplot supports this because happiness climbs quickly at low GDP per person and then levels off among richer countries.
No, the 10,000s has a different impact depending on the local economy. The poor fit of the linear model supports my answer, we should use a non-linear model instead
no, the changing slope for different x supports this answer, it's not exactly linear from the plot
No, the curve in the plot
No, the extra 10,000 would be much more impactful for the country with a gdp of 5,000
No, the extra GDP would be more significant for individuals with 5000 average GDP. The plots whows that the model is not linear
No, the plot is nonlinear meaning the marginal utility is different depending on how much money you have
No, the regression line is concave down which indicates diminishing marginal benefit to each dollar earned.
no, the slope of the plot at different points shows that increasing the gdp by 10,000 for different countries with different current gdps would have different effects
No, with lower income, the relationship with happiness is more linear, but with higher income, the relationship with happiness is more flat.
No! This does not mean the same to all. The benefit of the additonal good is not as high for the person that already has a higher GDP per person. We see this by the model showing it constantly thinking higher income countries will be happier than they actually are and lower income countries with less happiness than observed
No. An additional $10,000 in GDP per capita appears to be associated with a larger increase in happiness for lower-income countries than for higher-income countries.
No. An extra $10,000 buys much more happiness at $5,000 than at $80,000.The feature that supports this is the curvature of the scatterplot.
No. An extra $10,000 of GDP per person is likely to have a larger positive relationship with happiness in a poorer country than in a richer country. The scatterplot shows a curved pattern that becomes flatter at higher income levels, suggesting diminishing returns to income.
No. In the scatterplot, going from about $5k to $15k is linked to happiness rising from roughly 4.5 to about 6, a gain of about 1.5 points. Going from $80k to $90k shows almost no change, since happiness is already flat around 7. The feature that shows this is the curve’s shape: it’s steep at low incomes and flattens at high incomes (diminishing returns). The residual plot backs this up, because its arch shows a single straight-line slope can’t describe both ends. This suggests happiness relates
No. We see this in the negative residual in high income countries. The same increase in income appears to contribute less to their happiness than for low income countries.
The 15k will have a larger increase in happiness than the 90k. Our line shouldnt be linear because as GDP increase the rate at which happiness is increasing decreases.
The extent of the person who earn $80,000 will be less happy than the one who earn less
utility functions are usually square root of consumption so increase in already high consumptions have a much smaller effect than the same jump when your consumption is already low
QUESTION 11 · Says effect differs without detail · 1/2
Student responses
I think no? Not really sure what the question is saying. I think the plot shows a inverse relationship that the lower negative residual tends to be vad. Residual is happiness - fitted, so being overpredicted makes you sadded
it would have a different relationship because of scale
no
No
no it would not have the same relationship
No it wouldny be the same, that amount of money is different for each of teh situations in that 10k is much more a help to teh 5k gdp than the 80k gpd population
no, it would affect the person of 5000 gdp more than the 80000, since it is a greater relative increase
No. There is no linear relationship because income would matter less in a country with $80k versus 5k
not the same
QUESTION 11 · Says effect differs without detail · 2/2
Student responses
Probably, not, since different countries would have different standard of living.
QUESTION 11 · Says effect is the same · 1/1
Student responses
it would negatively impact
No, GDP is viewed differently in different countries depending on their utlity.
No, since there would still be the added affects of living in that country versus the other. Independent
yes
yes
QUESTION 11 · Notes fitted line decreases at high income · 1/1
Student responses
According to our graph, happiness may increase but then decrease as the GDP goes higher.
It would not have the same relationship because our fitted line indicates that as GDP increases happiness decreases.
It would not have the same relationship because the slope would be positive for the first group but could be negative for the second group.
No. Because the fitted line increases first, then decreases.
QUESTION 11 · References utility function or concave regression · 1/1
Student responses
1
Its different the fittingline support this
no the wealthy diff is too big the guy with 5000 would only feel pain living around with other rich guy
No, if you have 5000, the plot is good at showing the relationship with happiness, but not with higher incomes
QUESTION 11 · States poorer person would be happier with increase · 1/1
Student responses
It would not have the same relationship because the plot shows that happiness is more associated with income at lower income levels.
No, because there is a bigger increase among rthe person with less money
No, the person in the poorer country would give more happiness, the model is not linear
The person with 5,000 would be happier with the 10,000. In our plot we see bigger residuals at lower incomes
Absolutely not. Adding $10,000 to a country with a lower GDP benefits way more according to our non-linear model than a higher GDP country, which could arguably become less happy as a result based on our model!
No it would not, there is a clear parabolic peak of happiness at a certain GDP, so at 5,000 increasing money will increase happiness but at 80,000 increasing money will actually decrease happiness
No, having a different GDP per person will end up having different relationship with happiness based on the residual plot as it shows a trend of going down after a specific income
CLASS RECORD · QUESTION 12
- Fit happiness on income_doublings. Inspect the slope and R-squared in the model summary.
64 anonymous responses
Other responses64
QUESTION 12 · Other responses · 1/8
Student responses
#income_data |>
lm(formula = happiness ~ income_doublings, data = income_data)
check_income <- stats::lm(happiness ~ income_doublings, data = income_data)
summary(check_income)
income_data |>
lm(happiness ~ income_doublings, data = _) |>
summary()
income_data |>
lm(happiness ~ income_doublings, data = _) |>
summary()
income_data |>
lm(happiness ~ income_doublings, data = _) |>
summary()
QUESTION 12 · Other responses · 2/8
Student responses
income_data |>
lm(happiness ~ income_doublings, data = _) |>
summary()
income_data |>
lm(happiness ~ income_doublings, data = df)
To inspect the slope and R-squared:
income_data |>
lm(happiness ~ income_doublings, data = df) |>
summary()
income_data |>
lm(happiness ~ income_doublings, data = income_data) |>
summary()
lm(
happiness ~ income_doublings,
data = income_data
)
lm(happiness ~ income_doublings, data = income_data)
lm(happiness~income_doublings, data = income_data)
model <- lm(happiness ~ income_doublings, data = income_data)
coef(model)["income_thousands"]
summary(model)$r.squared
model <- lm(happiness ~ income_doublings, data = income_data); summary(model)
model_doublings <- lm(happiness ~ income_doublings, data = income_data)
summary(model_doublings)
QUESTION 12 · Other responses · 8/8
Student responses
summary(lm(happiness ~ income_doublings, data = income_data))
CLASS RECORD · QUESTION 13 · 1/2
According to this line, how much higher is the predicted life rating when income per person doubles? Explain using the fitted coefficient.
67 anonymous responses
About 0.55 with more precision13Respondents state the coefficient value more precisely (around 0.5476 or 0.548) and connect it to the increase per doubling.
Around 0.54 increase12Respondents interpret the fitted coefficient as implying about a 0.54 increase in predicted life rating when income doubles.
Around 0.55 increase9Respondent interprets the fitted coefficient as implying about a 0.55 increase in predicted life rating when income doubles.
Precise 0.5476 statement8Explicit single-sentence statements asserting the predicted increase equals 0.5476 when income doubles.
CLASS RECORD · QUESTION 13 · 2/2
Response themes for question 13
About 1 or ~5 (overestimates)7Responses that give rounded or larger estimates (around 1 or about 5), indicating overestimation relative to the fitted coefficient.
Other responses7Responses the model could not place reliably.
Interprets as 54 increase (scale confusion)6Respondent gives 54, indicating a likely confusion about decimal placement or coefficient scaling rather than the small fractional increase.
Negative five (sign confusion)5Respondent states a negative five, indicating confusion about the sign or magnitude of the coefficient.
QUESTION 13 · About 0.55 with more precision · 1/2
Student responses
0.5476
0.5476111
0.5476111 higher every time the gdp doubles
0.5476111, which means the rating is about 0.54 higher when income doubles
fitted coefficient for income_doublings is 0.5476, meaning each doubling of income is associated with a 0.55-point increase in predicted happiness
It increases by an average of 0.548 points.
Since the coefficient on income_doublings is 0.548, each doubling of income per person raises the predicted life rating by about 0.55 points
THe predicted life rate is 0.548 higher when income per person doubles.
The predicted life rating is 0.55 points higher (or approximately 0.548 points higher) each time income per person doubles
QUESTION 13 · About 0.55 with more precision · 2/2
Student responses
When GDP per capita doubles, the predicted life satisfaction rating increases by approximately 0.548 points.
When income doubles, predicted life rating increases by 0.548
When income per person doubles, the predicted life rating increases by approximately 0.548 points. This is because the fitted coefficient for income_doublings is 0.5476111, meaning each additional doubling of income is associated with a 0.548-point increase in predicted happiness.
When income per person doubles, the predicted life satisfaction rating increases by about 0.55 points, because the slope for income_doublings is 0.5476.
QUESTION 13 · Around 0.54 increase · 1/2
Student responses
.54
.54
.54 higher
0.54
0.54
0.54
It is higher by .54 points when income doubles.
Life rating is .54 higher when income doubles.
The predicted life rating increases by 0.54
QUESTION 13 · Around 0.54 increase · 2/2
Student responses
When income doubles, predicted life is higher by 0.54 years.
When income doubles, the predicted life rating is 0.54 points higher
When income per person doubles, the predicted life rating increases by 0.54
QUESTION 13 · Around 0.55 increase · 1/1
Student responses
.5
.5 points more
.55
0.5 points higher.
0.55
Each time income doubles, life ratings increases by about 0.55 points
income per person doubles, the model predicts life rating to be about 0.55 points higher
it goes up by 0.55 every time income doubles per person explained by out model
the predicted life rating increases by 0.55 when income doubles.
QUESTION 13 · Precise 0.5476 statement · 1/1
Student responses
0.5476 values of happiness
0.5476111 happiness units (slope of the fit)
Increases by 0.547 every time income doubles.
It would be .547, that's the coefficient for income_doublings
The life rating is predicted to be 0.5476 higher when the income per person doubles.
The predicted life rating is higher by 0.5476.
when income per person doubles the predicted life rating increases by about .547
When income per person doubles, the predicted life rating goes up by 0.5476 when compared to the average life rating
QUESTION 13 · About 1 or ~5 (overestimates) · 1/1
Student responses
~5
0.54. it is this much higher becasue fo the coefficient
1.8
5.26+0.54
about 0.54 pts, meaning a double in income leads to 1/2 pt increase in happiness
Basically you increase by half a life point
When income per person doubles, predicted life rating increases by about 5.27
QUESTION 13 · Other responses · 1/1
Student responses
0.548
0.55 * income_doublings + 5.27, every 0.55 point rise in life rating would clarify the prediction better.
About .54 increase
About 0.55 points higher on the 0 to 10 scale. The fitted line is happiness = 5.267 + 0.5476 × income_doublings. The predictor income_doublings counts how many times income has doubled from $10,000, so increasing it by 1 means income per person doubles. The slope is the change in predicted happiness per one-unit increase in the predictor, so each doubling of income raises the predicted life rating by the slope, 0.5476, roughly half a point.
about half as high
less than 1 point
When the income per person doubles, the predicted life rating increases by 1/2 of the previous value
The predicted life rating increases by about 0.55 points when income per person doubles, because the fitted coefficient for `income_doublings` is 0.5476.
The slope coefficient for income_doublings is 0.5476111. Because the predictor variable income_doublings tracks the number of times income doubles. A 1-unit increase in income_doublings represents a doubling of GDP per person
When GDP per person doubles, the predicted life rating increases by about 0.55 points. This is because the slope coefficient for income_doublings is 0.5476.
QUESTION 13 · Negative five (sign confusion) · 1/1
Student responses
-5
0.547
0.5476
it increases by 0.547, or half a point, via the coef
Predicted life rating (or happiness?) is a half-year longer when income doubles. へ ♡ ╱|、 ૮ - ՛ ) (` - 7 / ⁻ ៸| |、⁻〵 乀 (ˍ, ل ل じしˍ,)ノ
CLASS RECORD · QUESTION 14
- Calculate absolute_resid as abs(resid). - Group by model. - Calculate mean_absolute_residual as the mean of absolute_resid for each model.
model_errors["absolute_resid"] = model_errors["resid"].abs()
# 2 & 3. Group by model and calculate the mean of absolute_resid
summary = (
model_errors.groupby("model")["absolute_resid"]
.mean()
.reset_index(name="mean_absolute_residual")
)
print(summary)
CLASS RECORD · QUESTION 15
- Put the countries with the largest residuals first. - Keep the first five countries. - Display country, happiness, gdp_per_capita, and resid.
Choose a country whose life rating surprised you. What additional data would you want to explain its position? Describe one analysis you would try.
70 anonymous responses
Named country plus demographic note14Student names Costa Rica and mentions population size as a relevant factor to investigate.
Individual income and happiness link10Student suggests analyzing individual-level earnings alongside personal happiness scores to explain life ratings.
Named country: China10Student names China as the surprising country with no additional details or analyses offered.
Named country: Singapore9Student simply names Singapore as the surprising country without further data or analysis suggestions.
CLASS RECORD · QUESTION 16 · 2/2
Response themes for question 16
Requests data on work, housing, health, poverty8Students ask for specific socioeconomic and health variables—hours worked, housing, healthcare access, life expectancy, poverty rates—to explain life ratings.
Suggests crime or healthcare data7Student proposes examining crime rates or measures of healthcare quality to explain a country's life rating.
Costa Rica with desire for experiments or demographics6Student names Costa Rica and requests controlled studies or mentions demographic/education/employment variables as relevant.
Unclear or no content6Responses that are empty, punctuation-only, or too vague to infer a viewpoint or suggested data/analysis.
QUESTION 16 · Named country plus demographic note · 1/2
Student responses
costa rica
costa rica and population size
Costa Rica surprised me. I think we would need something like climate to explain more of this data.
Costa Rica surprises me; I'd like to check cost of living to see if it anti-correlates
Costa Rica. I'd want to look at the cost of living and the cost of healthcare, because income isn't the only factor that can explain the ratings. I would construct another linear regression model.
I am surprised by Costa Rica, as it is a very poor country. I would be interested in looking at its quality of life or other similar stats.
I think Costa Rica, I can't imagine this, since it's located in Latin America
I want to look at the disparity between the wealthy and those who aren't, maybe looking at the median for income rather than average
i would look at the cost of living in each country and see if including that in the model would increase the accuracy. Also climate and location
QUESTION 16 · Named country plus demographic note · 2/2
Student responses
I would want to look at how peaceful that country is maybe. Not really shocked by any of them.
I'm surprised by how high costa rica is because it is such a small island, and I would think there would be a lower quality of life
Mozambique, I'd want to look at other characteristics included in the table like number of pets.
Other data like crime and housing rates, as well as cost of living would be important. Costa Rica was by far the biggest suprise out of the countres for me
Qualityb of living could be another data piece we could use, analyzing those residuals based on another factor
QUESTION 16 · Individual income and happiness link · 1/2
Student responses
Costa Rica Surprised me, I would want to see data about government spending/ public works, I would analyze approval of government spending
Costa Rica surprised me. I would run a more detailed linear relationship on jsut Costa Rica
Costa Rica surprised me. I would want to examine life expectancy, political freedom.
finland I wanna try it's population policy
I did not know that Costa Rica would have such a high life rating.
I think the US surprised me I would want to look into what its like for different incomes
I was surprised by Costa Rica. It may be interesting to examine climate data, and rank the countries by a set temperature or precipitation range.
I would look into the rights that citizens have in each country, to see if more individual rights/freedoms contributes to higher overall happiness
Maybe on an individual basis, the money you earn and your happiness score
QUESTION 16 · Individual income and happiness link · 2/2
Student responses
Singapore is quite surprising due to its higher GDP with lower happiness. We can do a multiregression test, adding more variables social support freedom health / life expectancy corruption perception work-life balance inequality
QUESTION 16 · Named country: China · 1/3
Student responses
china
Costa Rica surprised me because its life rating is 7.44 even though GDP per person is only about $27,000, well above what the line predicts. I would want data on social support, healthy life expectancy, and perceived freedom or corruption, which the World Happiness Report also measures. I would fit a multiple regression adding social support to income doublings and check whether Costa Rica's residual gets smaller and whether the model's R-squared improves.
Costa Rica surprised me because its life satisfaction is very high even though its GDP per person is much lower than many other highly ranked countries. I would look at factors like social support, health, life expectancy, and work-life balance, and compare those measures with countries that have similar GDP levels to see what might explain Costa Rica’s higher happiness.
finland. I would also like to see average days of sunlight
QUESTION 16 · Named country: China · 2/3
Student responses
I would investigate Costa Rica. I would collect data on social support, healthcare, and life expectancy. Then, I would use multiple linear regression to examine whether these factors help explain Costa Rica's higher-than-predicted happiness.
living cost, competition pressure
Mozambique, id want to know why it has the highest residual. maybe data on the level of healthcare or education and run a linear regression on it and the happiness
osta Rica surprised me: its life rating sits well above what its GDP per person predicts (a large positive residual), so income alone doesn’t explain why it’s so happy. Additional data I’d want: measures that capture quality of life beyond raw output. Social support and trust (do people have someone to count on), healthy life expectancy, freedom to make life choices, inequality (a Gini coefficient, since average GDP hides how income is spread), and generosity or corruption levels.
The U.S.'s position surprised me, so I would look at the difference between good lives and bad lives within America.
QUESTION 16 · Named country: China · 3/3
Student responses
United States supresied me the most beause it was right on the line and in the middle. Some more data that would be nie is other facotrs that play a role in deciding the happiness becasue our variable was already simply defined.
QUESTION 16 · Named country: Singapore · 1/2
Student responses
I was surprised by Costa Rica as you normally only hear about the Nordic countrys being very happy and not much in the west as much. I would want to see what the quality of life actually looks like to see how many hours people work a week, what their healthcare system is like, and the amount of income inequality they experience.
I would investigate categorical variables such as which factors are causing the most unhappiness like cost of living, healthcare, politics, etc. and then perform and independence test to see whether these variables are independent or not
other things like health, freedom of speech, etc
Singapore surprised me the most. I would look into cost of living and CPI in that country to investigate people's buying power, maybe marriage/divorce rates, and level of education. I would do this by plotting points on a boxplot to seperate effects.
Singapore, because I was expecting it to be a higher life rating
Singapore, probably wealth distribution , laws
QUESTION 16 · Named country: Singapore · 2/2
Student responses
Singapore. I really like its strict laws to protect overall safety, but maybe the area is too limited and the climate is too hot, and people too busy so the happiness level is not as high as I expected, I think we can add a working load analysis
Singapore. Maybe woking time per week. (High gdp could due to long working time, thus making happiness less). I will fit a new model using all variables
singnapore, it was lower thsan expected; one analysis would be anova
QUESTION 16 · Requests data on work, housing, health, poverty · 1/2
Student responses
Costa Rica surprised me because it has a high happiness score even though its GDP per person is much lower than many wealthy countries. I would want data on social support, healthcare, and work-life balance to understand why. I would try a regression analysis that includes these factors along with GDP per person to see whether they help explain Costa Rica's high happiness rating.
Costa Rica. Because its happiness rating is surprisingly high compared to its GDP per person. I would like to look at data on social support, healthcare, and work-life balance. I would try adding these factors to the regression model to see if they help explain why Costa Rica has such a high happiness rating.
Could investigate population statistics, employment, health, etc.
I think that Costa Rica was quite surprising. I think I'd want to use life quality factors like crime rate and social pressure to investigate them.
I think we need to see life expectancy as well as also poverty rates and any other quality of life factors
I would try and get data on hours worked per week for each country.
QUESTION 16 · Requests data on work, housing, health, poverty · 2/2
Student responses
it surprised me that kosovo had such a large residual, I would want to look at life expectancy or cost of living, and regress happiness on income, gdp, cost of living, and life expectancy to see if they explain more of the variance
other current events happening within the country
QUESTION 16 · Suggests crime or healthcare data · 1/1
Student responses
data on crime and safety in that country
I want to analyze the correlation between education level or itensity with happiness.
I would collect data on healthcare. While the GDP of a country is telling of its healthcare, it's not always the most accurate. In some cases, countries could be investing more into healthcare than expected of their GDP, so the people might be happier despite having less income because the health system will still take care of them.
I would look at crime rates or healthcare quality, using similar analysis like scatterplots and regression on a country with a high residual in our current analysis, like costa rica.
I would want to investigate data related to housing and healthcare.
Maybe try the meat demind or "Big mac" price score
zimbabwe
QUESTION 16 · Costa Rica with desire for experiments or demographics · 1/1
Student responses
Costa Rica, I would investigate healthcare and life expectancy amd make another linear model w more predictors
costa rica, i would want more controlled experiments man idk
Employment and Education Data, average amount of kids , healthcare, ertc. I am interested in costa rica. I would test on scatterplots and lms for associations between these and happiness.
I was mostly surprised with Costa Rica, as its economy I would say is more dependent on things such as tourism. I would thus want to filter out certain economic areas.
I'm surprised by how high Costa Rica's life rating is given its current GDP, I would want to learn more about its healthcare system specifically to help explain its position, I would try to quantify where in the world its healthcare system lies
Mozambique, they are generally happy despite having a really low gdp per capita. I would like to see if maybe money is not a huge thing in their culture and they barter rather than buy things. I would like to see the amount of transactions done with money.
QUESTION 16 · Unclear or no content · 1/1
Student responses
A country like Mozambique surprised me, since I expected countries affected by colonialism to have lower happiness scores. I am curious if we added the factor of colonized by European powers, what would our plot look like.
Afghanistan. I would survey threat to life, feeling of safety, living condition, you might have to separate based on gender
Costa Rica. I would also like to investigate its geographical position, i.e. it is located in Latin America. I will try to compare countries in different regions (Asia/Europe/Africa/Australia/North America/Latin America/South America).
Health
I think more layered data would be helpful, like some indirect factor could reveal more things
Political satisfaction could be a useful way to analyze life rating. If most people feel their government is doing a relatively good job/ they feel their taxes are supporting them then they could be happier even if they have a relatively low income.