js 获取上下文后面的路径

In 1824,

The Harrisburg Pennsylvanian, a newspaper from a town in Pennsylvania conducted the first known public opinion polls in history, and successfully predicted the result of the vote in the close race between Andrew Jackson and John Quincy. However, opinion polls do not always reflect the opinions of the whole electorate accurately, especially with limited sample sizes and time gaps between polls and actual voting. In 2016, many media outlets failed to predict the results of the Brexit referendum or the US presidential election accurately, for example. Below, poll tracker shows how poll results were misleading, especially in the tight Brexit race.

Since opinion polls have to be conducted with limited sample sizes, there are three key variables that could influence their accuracy.

1 - Sampling accuracy

The distribution of interviewees’ demographics such as location, educational level, gender, age, or religion should resemble the actual diversity of the population, and the sample size should be large enough to increase this accuracy. Like tasting a stew during cooking, as we stir better, all ingredients are mixed evenly, and we can accurately get the right taste of the stew from a small sample size.

2 - Interviewers’ bias

Because people want to avoid confrontations or want to look good in front of others, interviewees may respond with answers that may sound desirable socially or to interviewers. Interviewers may be able to push interviewees to answer certain ways because of how they ask, push polls.

3 - Time

People in general react more to recent occurrences. Electoral polls usually swing drastically with the latest scandals involving candidates, just as movies or music recently released tend to be selected for awards.

Pros and cons of public opinion polls — Jason Robert Jaffe | TED-ED

When we encounter poll results, it is important to understand these variables more than which side is leading. The context gives us a slightly clearer picture of why one side is leading, and the likelihood of seeing the opposite result. In this post, I collected many visualizations that give context to opinion polls or the vote results of the Brexit referendum and US presidential elections in 2016.

Opinions by Regions

Regions are the first layer representing demographic groups

National elections may be seen as a battle between each region, and their results reflect their different economic, cultural, and demographic backgrounds. Like the New York Times example below, many regions in England and Wales voted to exit, while Scotland and Northern Island, which are far away from the central government voted against. Greater London also voted to remain, reflecting its population consisting of more people with higher education, higher earners, and more foreign-born people, which I’ll discuss more later in the section about demographic distributions.

How Britain Voted in the E.U. Referendum | The New York Times

Geographically inaccurate but electorally accurate maps

The chart below by the Guardian is a more accurate representation of the map by distorting it with the population size of each area. In comparison to the New York Times’ map above, the presence of Greater London in voting counts is clearer.

EU referendum: full results and analysis | The Guardian

In the US presidential elections, results in each state are the most important factor since people vote for each state’s representing party, and the number of their seats depends on the population size of each state. Therefore, distorted US maps that represent population size of each state are used often in the US election, instead of ones with geographic accuracy. Many of these maps represent each state using a square with its area representing their electoral vote counts, but it still gives a sense of the geographical relationship between each state (Data Visualization Infographics v.s. Products).

Vox’s Liz Scheltens adapted this 2012 electoral map from the New York Times | Image source: Vox
US electoral college calculator | The Economist

Opinions by Each Demographic Group

The following two charts by the Guardian and Financial Times both try to address trends for the Brexit votes based on demographics. For example, younger voters, degree holders, and higher earners overwhelmingly voted to remain, but younger voters consisted of a small percentage to the overall vote counts, resulting in a smaller impact to the result.

EU referendum: full results and analysis | The Guardian
Brexit: voter turnout by age | Financial Times

Tracking Opinions Over Time

Changes in supporting parties by demographic groups

The New York Times captured the shift in supporting parties from 2004 by household income levels. Additionally, although lower income groups supported the democratic party historically, education levels correlated even more to shifts in a supporting party for the 2016 election. The Times tracked these shifts by various demographic attributes, such as ethnicity, gender, and education.

How Trump Won the Election According to Exit Polls | The New York Times

Demographic pattern and changes in results

The Economist’s team used the data from YouGov to illustrate how supporters for each party repositioned their opinions since 2017 based on May’s deal proposed in 2019.

British voters are unimpressed by Theresa May’s Brexit deal | The Economist

Plots of swing counties and their degrees

The Wall Street Journal plotted each county by their velocity of support to a party and how much that shifted from 2012. The chart below illustrates how the 2016 presidential election caused many swing counties.

A Divided America | The Wall Street Journal

Supporting parties for each state historically

Swing states, which don’t have a huge gap between their active supporters for either party, are significant in predicting the US presidential elections. The below chart by the Wall Street Journal illustrates the historical differences between each party’s supporters for each state. This chart can inform us of the trend of the support for party and political directions that are significant for each state.

A Field Guide to Red and Blue America | The Wall Street Journal

Mapping various poll results over time

Voters’ opinions don’t only change between each election — they may change drastically within a single campaign period. Similar to the opinion poll tracker by the Telegraph from the top of this entry, the Guardian mapped various poll results for the 2015 UK election, and drew median lines out of these plots to estimate positions for each party throughout the campaign.

Election 2015: The Guardian poll projection | The Guardian

How each county swung in 2018 from 2016

The Guardian used a shifting arrow map to illustrate Democrats’ gain for the House of Representatives by showing how each region swung for the 2018 midterm since the last election. Democrats increased their support in large areas where Donald Trump dominated in 2016. Larger blue arrows demonstrate greater regrets in 2016, and tracking these velocities similarly by polls could suggest the next electoral results.

Blue wave or blue ripple? A visual guide to the Democrats’ gains in the midterms | The Guardian

Chance of Misleading Poll Results

In 1948, Gallup predicted that 49.5% of the public would vote Thomas Dewey for the presidency, but the real result was almost the reverse: Truman for 49.6% and Dewey for 45.1%. Chicago Daily Tribune published the famous headline “Dewey Defeats Truman” based on the polling data. Although Gallup mentions that their accuracy improved dramatically after the 60s, they were wrong in recent elections including 2000, 2012, and 2016.

Nowadays, voters are online and have closer access to information including numbers of opinion polls conducted by various media outlets. If poll results suggest your supporting side was going to win, these poll results may discourage you to bother going to vote. Closer access to data is also true and crucial for candidates — last minute stories drastically influence voters’ minds, and this velocity is getting greater as modern campaigns become more online with the greater access to real-time data.

Illustrating the likelihood to swing participants’ opinions

The Economist’s team used a “ternary” plot instead of the common two-dimentional plot for the Brexit poll data — their attempt was to portray how poll participants were likely to position for supporting remain, leave, or leave without the deal based on their responses and their likelihood to change their opinions based on their demographics.

Plotting the Brexit conundrum — When two-dimensional scatters aren’t sufficient, turn to the ternary chart | The Economist on Medium

Elections also do not always represent the public opinion accurately

The Economist’s analytical team ran a model based on various polls to suggest how the 2016 US election would have resulted if all Americans voted. The simulation suggests Clinton would win over Trump, which was also suggested by predictions based on polls before the actual election.

Would Donald Trump be president if all Americans actually voted? | The Economist on Medium

在1824年,

宾夕法尼亚州一个小镇的报纸《哈里斯堡宾夕法尼亚州》进行了历史上首次已知的民意测验,并成功预测了安德鲁·杰克逊和约翰·昆西之间亲密比赛的投票结果。 但是,民意调查并不总是能准确反映出全体选民的意见,特别是在样本量有限以及民意调查与实际投票之间的时间间隔有限的情况下。 例如,2016年,许多媒体未能准确预测英国退欧公投或美国总统大选的结果。 下面,民意调查跟踪器显示民意调查结果如何产生误导,尤其是在激烈的英国退欧竞赛中。

由于民意测验必须以有限的样本量进行,因此存在三个可能影响其准确性的关键变量。

1-采样精度

受访者的人口统计信息(例如位置,教育水平,性别,年龄或宗教信仰)的分布应类似于人口的实际多样性,并且样本量应足够大以提高准确性。 就像在烹饪过程中品尝炖肉一样,随着我们更好地搅拌,所有成分均被混合均匀,并且我们可以从少量样品中准确地获得炖菜的正确口味。

2- 观众的偏见

因为人们想要避免对抗或想在别人面前看起来很好,所以受访者可能会做出听起来可能是社会上或受访者希望的答案。 采访者可能会因为他们的询问方式, 推动民意测验而促使受访者回答某些问题。

3-时间

人们通常对最近发生的事情有更多的React。 选举通常与涉及候选人的最新丑闻大相径庭,就像最近发布的电影或音乐往往被选为奖项一样。

舆论民意测验的利与弊— Jason Robert Jaffe | 泰德

当我们遇到民意测验结果时,重要的是要了解这些变量,而不是领先于哪一方。 通过上下文,我们可以更清楚地了解到一侧为何领先以及看到相反结果的可能性。 在这篇文章中,我收集了许多可视化内容,这些内容为民意调查或英国退欧公投和2016年美国总统选举的投票结果提供了背景信息。

各地区意见

区域是代表人口群体的第一层

全国大选可以看作是每个地区之间的斗争,其选举结果反映了不同的经济,文化和人口背景。 就像下面的《纽约时报》的例子一样,英格兰和威尔士的许多地区投票退出,而远离中央政府的苏格兰和北岛投票反对。 大伦敦地区也投票决定保留,以反映其人口,其中包括更多受过高等教育的人,收入更高的人以及更多在外国出生的人,我将在后面有关人口分布的部分中讨论更多。

英国如何在欧盟公投中投票 纽约时报

地理上不准确但选举上准确的地图

《卫报》下方的图表通过将每个区域的人口规模进行扭曲来更准确地表示地图。 与上面的《纽约时报》的地图相比,大伦敦的投票人数更加清楚。

欧盟公投:完整结果与分析| 守护者

在美国总统选举中,自从人们投票支持每个州的代表党以来,每个州的选举结果都是最重要的因素,其席位数量取决于每个州的人口规模。 因此,代表美国各州人口规模的失真的美国地图通常会在美国大选中使用,而不是使用具有地理准确性的地图。 这些地图中的许多地图都使用正方形来表示每个州,其面积代表其选举人的票数,但仍然可以看出每个州之间的地理关系( 数据可视化图表与产品 )。

Vox的Liz Scheltens改编了《纽约时报》的这张2012年选举地图| 图片来源: Vox
美国选举学院计算器| 经济学家

每个人口群体的意见

《卫报》和《金融时报》的以下两张图表都试图根据人口统计数据来解决英国退欧投票的趋势。 例如,年轻的选民,学位持有者和收入较高的选民压倒性地选择留下,但年轻的选民在总投票数中所占的比例很小,对结果的影响较小。

欧盟公投:完整结果与分析| 守护者
英国脱欧:按年龄划分的选民投票率| 金融时报

随时间跟踪意见

人口统计群体对支持方的变化

《纽约时报》从2004年开始根据家庭收入水平反映了支持政党的转变。 此外,尽管低收入群体在历史上一直支持民主党,但教育水平与2016年大选支持党的转变甚至更多相关。 泰晤士报通过各种人口统计属性(例如种族,性别和教育)跟踪了这些变化。

根据出口民意测验,特朗普如何赢得选举 纽约时报

人口特征和结果变化

《经济学人》团队使用YouGov的数据来说明自2019年以来,各方的支持者如何根据2019年5月提出的交易重新定位自己的观点。

英国选民对特蕾莎·梅的脱欧协议印象深刻| 经济学家

摇摆县的情节及其程度

《华尔街日报》根据每个县对政党的支持速度以及自2012年以来的变化情况来绘制每个县。下图说明了2016年总统大选如何导致许多摇摆县。

分裂的美国 华尔街日报

历史上每个州的支持方

摇摆不定的州在对任何一方的积极支持者之间没有很大差距,对预测美国总统大选具有重要意义。 《华尔街日报》(Wall Street Journal)下图显示了各州支持者之间各州之间的历史差异。 该图可以告诉我们支持对每个州都重要的政党和政治方向的趋势。

《红色和蓝色美国》实地指南| 华尔街日报

随时间映射各种民意调查结果

选民的意见不仅会在每次选举之间发生变化,而且可能在单个竞选期间发生巨大变化。 与《电讯报》从顶部开始的民意测验追踪器类似,《卫报》绘制了2015年英国大选的各种民意测验结果,并从这些情节中绘制了中位数线,以估计整个竞选期间各方的立场。

2015年大选:《卫报》民意测验| 守护者

从2016年开始,每个县在2018年如何变化

《卫报》使用不断变化的箭头地图,通过显示自上次大选以来各地区在2018年中期选举中的变动情况,来说明民主党在众议院的利益。 民主党人在2016年唐纳德·特朗普(Donald Trump)统治的广大地区增加了支持。较大的蓝色箭头在2016年表示更大的遗憾,而通过民意调查追踪这些速度可能暗示下一次选举结果。

蓝色波浪还是蓝色波纹? 民主党中期选举成果的视觉指南| 守护者

产生误导性投票结果的机会

盖洛普(Gallup)在1948年预测,有49.5%的公众将投票选举托马斯·杜威(Thomas Dewey)为总统,但真正的结果几乎是相反的:杜鲁门(49.6%)和杜威(45.1%)。 根据民意调查数据,《芝加哥每日论坛报》发表了著名的标题“杜威击败杜鲁门”。 尽管盖洛普(Gallup)提到他们的准确性在60年代后大为提高,但在包括2000年,2012年和2016年在内的最近选举中,他们的说法是错误的。

如今,选民已经上网,可以更紧密地访问各种媒体所进行的民意调查等信息。 如果民意调查结果表明您的支持方将获胜,这些民意调查结果可能会阻止您去投票。 对候选人而言,更紧密地访问数据也至关重要,这是至关重要的-最后一刻的故事会极大地影响选民的思想,并且随着现代竞选活动越来越在线化,对实时数据的访问越来越多,这一速度越来越大。

说明摆动参与者意见的可能性

经济学家团队使用“三元”图代替通用的二维图来获得英国脱欧民意测验数据–他们的尝试是根据受访者的React描绘民意测验参与者在未达成协议情况下如何支持留任休假休假的立场以及他们根据人口统计资料改变看法的可能性。

绘制英国退欧难题-当二维散射还不够时,请转到三元图| 中等经济学家

选举也并不总是能准确地代表民意

《经济学人》的分析团队根据各种民意测验运行了一个模型,以表明如果所有美国人都投票,2016年美国大选将会如何。 模拟表明克林顿将赢得特朗普,这是根据在实际选举之前的民意测验得出的预测。

如果所有美国人都实际投票,唐纳德·特朗普(Donald Trump)将担任总统吗? | 中等经济学家

翻译自: https://uxdesign.cc/visualizing-public-opinions-by-surfacing-context-behind-data-5f962531f020

js 获取上下文后面的路径


http://www.taodudu.cc/news/show-4568844.html

相关文章:

  • 论文阅读-(ECCV 2018) Second-order Democratic Aggregation
  • [半监督学习] Democratic Co-Learning
  • Few-Shot Semantic Segmentation with Democratic Attention Networks阅读笔记
  • Hello Akita0
  • push代码到git上报错failed to push some refs to ‘远程仓库地址‘问题
  • Java的GUI编程---贪吃蛇游戏实现
  • Java的GUI编程---AWT介绍
  • Java的GUI编程---Swing介绍
  • Java方法---定义,重载,传参,递归
  • 2. 内核解压-关中断进入svc模式
  • FGF21 类似物 PF-05231023 改善糖尿病并发症
  • Jenkins遇到的坑——如何爬出来
  • Java集合---Collection接口的常用方法
  • Java的IO流---File类的使用
  • qemu学习之添加一个新machine
  • 使用qemu在windows系统下搭建树莓派3b环境运行RT-Thread
  • java 请求超时处理_android 网络请求超时简单处理(基于rxjava)
  • 平安好医生技术栈的分析
  • react 生命挂钩_秋田+ React挂钩=耸人听闻的国家管理食谱
  • 9 个超实用的 JavaScript 原生插件工具
  • CVPR 2021 论文解读I 动态区域感知卷积,进一步提升分类/检测/分割性能|Dynamic Region-Aware Convolution
  • 记前端状态管理库Akita中的一个坑
  • RxJS结合vue-rx, Akita的介绍和使用
  • Akita与脉冲云的关系
  • Manthan, Codefest 17 B. Marvolo Gaunt‘s Ring(线段树+思维)
  • Marvolo Gaunt‘s Ring
  • Marvolo Gaunt's Ring CodeForces - 855B+线段树+维护区间最大值和最小值
  • Codeforces 855B - Marvolo Gaunt's Ring
  • Marvolo Gaunt's Ring ---CodeForces - 855B(思维题)
  • Marvolo Gaunt's Ring(类似于dp的做法)

js 获取上下文后面的路径_通过在数据后面显示上下文来可视化公众意见相关推荐

  1. js获取当前应用根路径contextPath完美方案

    最近在升级华丹开发平台,想通过js直接获取上下文路径contextPath,而不用通过参数配置的方式,减少用户配置麻烦. 上网查了一下,没有理想的方案.比如(节选自网上资料): 方法一: 在JSP页面 ...

  2. 如何使用Node.js获取当前脚本的路径?

    我如何获得Node.js中脚本的路径? 我知道有process.cwd ,但这只是指调用脚本的目录,而不是脚本本身. 例如,假设我在/home/kyle/运行以下命令: node /home/kyle ...

  3. js获取html中图片路径,用js快速的获取html页面中图片的地址

    这次给大家带来用js快速的获取html页面中图片的地址,用js快速获取html页面中图片的地址的注意事项有哪些,下面就是实战案例,一起来看一下. 这篇文章主要介绍了js获取html代码中图片地址的实现 ...

  4. 前端js获取图片大小 扩展名_前端 JS 获取 Image 图像 宽高 尺寸

    前端 JS 获取 Image 图像 宽高 尺寸 简介 项目中用到获取图片的原始尺寸,然后适配宽高:网上的大部分前端解决方案,都是new Image()后,在onload事件中获取image的尺寸. 在 ...

  5. js 获取dom离页面编剧_页面对象之外:具有宁静性和编剧模式的下一代测试自动化

    js 获取dom离页面编剧 在当今快节奏的软件交付世界中,自动化的验收测试至关重要. 一组高质量的自动验收测试可帮助您减少浪费在手动测试和修复错误上的时间,从而更快地交付有价值的功能. 与行为驱动开发 ...

  6. Node.js Express博客项目实战 之 前台页面数据的显示

    前台页面数据通过连接数据库信息将数数据显示在页面上: 最终实现的效果: 前台的路由: 1 // 导入express 2 3 let express = require("express&qu ...

  7. js获取request中的值_基于node.js的开发框架 — Koa

    一.简介 Koa 基于nodeJs平台的下一代web开发框架,由 Express 幕后的原班人马打造,致力于成为一个更小.更富有表现力.更健壮的 Web 框架.使用 koa 编写 web 应用,通过组 ...

  8. js获取iframe中的元素_在 HTML 中包含资源的新思路

    作者:scott jehl 翻译:疯狂的技术宅 原文:https://www.filamentgroup.com/lab/html-includes/未经许可严禁转载 注意:这篇文章描述了一种我们仍需 ...

  9. c获取当前程序的路径_漏洞挖掘|使用AFL Fuzzing网络程序

    AFL基于代码插桩来生成测试用例,这样生成的样本就比较的好,而且针对 linux 做了许多性能优化使得速度也非常快. AFL(American Fuzzy Lop)是由安全研究员Michał Zale ...

最新文章

  1. python骨灰教学_python+mongodb+flask的基本使用
  2. 百度贴吧10亿量级LAMP架构分享
  3. linux架设subversion(svn)版本控制
  4. 反射 字段_一次简单的Go反射实战经历分享
  5. Discuz修改笔记-Discuz代码的使用
  6. 【面试题7】用两个栈实现队列
  7. Centos6.5 安装 Mysql-5.6.41
  8. python图书管理实训报告总结_结对项目 —— 图书管理系统实验报告
  9. Wechat + unbuntu
  10. 东山再起的男人一般都有这七个表现
  11. 我爷爷来了都能看懂的数据库主键,候选键,外键,非空和check的几种约束方式及使用方法
  12. 怎样修复计算机系统声音,电脑没声音了如何恢复?电脑突然没声音修复方法汇总...
  13. QQ音乐PB级ClickHouse实时数据平台架构演进之路
  14. maven学习笔记之配置(黑马程序员)
  15. iS-RPA 从起步到飙速(二)—— 通往新世界
  16. 3dmax和python做3d动画_Autodesk 3ds Max 2015(3D动画制作3dsmax2015)官方中文版下载 - 下载吧...
  17. mysql高级-4-深入InnoDB
  18. 半导体材料 MOOC学习记录 第十章 III-V族化合物半导体
  19. 使用U盘重装Windows系统
  20. 【软件测试】淘宝购物车的测试用例 以及 为什么淘宝购物车会设置宝贝上限?

热门文章

  1. echarts实现刻度尺
  2. 复旦大学邱锡鹏:若优化顺利,MOSS三月底开源;库克或被踢出苹果董事会;华为云联合CSDN发布智能化编程助手Snap|极客头条...
  3. 耳机声控,以及耳机拔出或者插入控制播放暂停
  4. Matlab中plot画图线型、标记和颜色
  5. neo4j启动命令的小tips
  6. 小白如何制作一个微信小程序
  7. 当当网页制作html代码,网页制作语言:HTML
  8. Oddball 怪人一个
  9. LTE中REG和CCE概念
  10. 阅文java面试_【上海阅文集团Java面试】阅文后端Java,二轮技术一轮HR-看准网